@skip_if_github_validation
@sle_minion
@scope_salt
Feature: 0039 - Salt master integration with Git pillar
File name: srv_salt_git_pillar.feature
Relative path: secondary/srv_salt_git_pillar.feature
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Pre-requisite: Enabling repositories for installing git-core
When
I add repository "SLE-Module-Basesystem15-SP7-Updates" with url "http://minima-mirror-ci-bv.mgr.suse.de/SUSE/Updates/SLE-Module-Basesystem/15-SP7/x86_64/update/" on "server" without error control
00:00:02.963
And
I add repository "SLE-Module-Basesystem15-SP7-Pool" with url "http://minima-mirror-ci-bv.mgr.suse.de/SUSE/Products/SLE-Module-Basesystem/15-SP7/x86_64/product/" on "server" without error control
00:00:04.579
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Preparing Git pillar configuration for Salt master
FAIL: mgrctl exec -i 'sh /tmp/salt_git_pillar_setup.sh setup' returned status code = 104. Output: Setting up git_pillar environment and restarting Salt master and Salt API Warning: Skipping repository 'SLE-Module-Basesystem15-SP7-Pool' because of the above error. Warning: Skipping repository 'SLE-Module-Basesystem15-SP7-Updates' because of the above error. Loading repository data... Reading installed packages... 'git-core' not found in package names. Trying capabilities. Warning: Skipping repository 'SLE-Module-Basesystem15-SP7-Pool' because of the above error. Warning: Skipping repository 'SLE-Module-Basesystem15-SP7-Updates' because of the above error. Loading repository data... Reading installed packages... 'git' not found in package names. Trying capabilities. (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/salt_steps.rb:83:in `/^I setup a git_pillar environment on the Salt master$/' features/secondary/srv_salt_git_pillar.feature:15:in `I setup a git_pillar environment on the Salt master'
And
I wait until Salt master can reach "sle_minion"
0s
Then
file "/etc/salt/master.d/zz-testing-gitpillar.conf" should exist on server
0s
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Check for the expected pillar data after enabling Git pillar
When
I refresh the pillar data
00:00:04.074
And
I wait until there is no pillar refresh salt job active
00:00:04.865
Then
the pillar data for "org_id" should be "1" on "sle_minion"
00:00:03.622
And
the pillar data for "git_pillar_foobar" should be "12345" on "sle_minion"
00:00:03.540
+ Show Error
+ Screenshot
Output value wasn't found: uyuni-master-suse-minion.sumaci.aws: (ScriptError) ./features/step_definitions/salt_steps.rb:382:in `/^the pillar data for "([^"]*)" should be "([^"]*)" on "([^"]*)"$/' features/secondary/srv_salt_git_pillar.feature:23:in `the pillar data for "git_pillar_foobar" should be "12345" on "sle_minion"'
And
the pillar data for "git_pillar_foobar" should be "12345" on the Salt master
0s
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Cleanup: Remove Git pillar configuration for Salt master
When
I clean up the git_pillar environment on the Salt master
00:00:05.487
+ Show Error
+ Screenshot
FAIL: mgrctl exec -i 'sh /tmp/salt_git_pillar_setup.sh clean' returned status code = 1. Output: Cleaning git_pillar environment and restarting Salt master and Salt API (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/salt_steps.rb:94:in `/^I clean up the git_pillar environment on the Salt master$/' features/secondary/srv_salt_git_pillar.feature:27:in `I clean up the git_pillar environment on the Salt master'
And
I wait until Salt master can reach "sle_minion"
0s
Then
file "/etc/salt/master.d/zz-testing-gitpillar.conf" should not exist on server
0s
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Cleanup: Check for the expected pillar data after disabling Git pillar
When
I refresh the pillar data
00:00:03.946
Then
the pillar data for "git_pillar_foobar" should be empty on "sle_minion"
00:00:03.505
And
the pillar data for "org_id" should be "1" on "sle_minion"
00:00:04.471
And
the pillar data for "git_pillar_foobar" should be empty on the Salt master
00:00:04.592
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Pre-Cleanup: Disabling repositories for uninstalling git-core
When
I remove repository "SLE-Module-Basesystem15-SP7-Updates" on "server" without error control
00:00:02.633
And
I remove repository "SLE-Module-Basesystem15-SP7-Pool" on "server" without error control
00:00:02.505