Skip to content

Commit

Permalink
testsuite: do not install or remove formula if in container
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto authored and cbosdo committed Sep 1, 2023
1 parent 711a33f commit 46e59c8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Feature: Setup Uyuni for Retail branch network

@proxy
@private_net
@skip_if_container_server
Scenario: Install or update branch network formulas on the server
When I manually install the "branch-network" formula on the server
And I manually install the "dhcpd" formula on the server
Expand Down
1 change: 1 addition & 0 deletions testsuite/features/secondary/allcli_system_group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Feature: Manage a group of systems

# Red Hat-like minion is intentionally not removed from group

@skip_if_container_server
Scenario: Cleanup: uninstall formula from the server
When I manually uninstall the "locale" formula from the server

Expand Down
1 change: 1 addition & 0 deletions testsuite/features/secondary/min_salt_formulas.feature
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Feature: Use salt formulas
And the keymap on "sle_minion" should be "us"
And the language on "sle_minion" should be "en_US.UTF-8"

@skip_if_container_server
Scenario: Cleanup: uninstall formula package from the server
When I manually uninstall the "locale" formula from the server

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
@scope_salt
Feature: Create organizations, users, groups, and activation keys using Salt states

@skip_if_container_server
Scenario: Apply configuration salt state to server
When I manually install the "uyuni-config" formula on the server
And I apply "setup_users_configuration" local salt state on "server"

Scenario: Apply setup_users_configuration state to server
When I apply "setup_users_configuration" local salt state on "server"

Scenario: Organization my_org was correctly created
Given I am authorized as "my_org_user" with password "my_org_user"
Expand Down Expand Up @@ -66,6 +69,9 @@ Feature: Create organizations, users, groups, and activation keys using Salt sta

Scenario: Cleanup: apply configuration teardown salt state to server
When I apply "teardown_users_configuration" local salt state on "server"

@skip_if_container_server
Scenario: Cleanup: uninstall the uyuni-config formula from the server
And I manually uninstall the "uyuni-config" formula from the server

Scenario: Cleanup: all organizations were successfully removed
Expand Down
1 change: 1 addition & 0 deletions testsuite/features/step_definitions/salt_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
end

# Salt formulas

When(/^I manually install the "([^"]*)" formula on the server$/) do |package|
get_target('server').run('zypper --non-interactive refresh')
get_target('server').run("zypper --non-interactive install --force #{package}-formula")
Expand Down

0 comments on commit 46e59c8

Please sign in to comment.