@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:03.450
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:02.726
@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 = 106.
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...
Resolving package dependencies...
The following 2 NEW packages are going to be installed:
git-core libsha1detectcoll1
The following 2 packages are not supported by their vendor:
git-core libsha1detectcoll1
2 new packages to install.
Package download size: 6.0 MiB
Package install size change:
| 33.9 MiB required by packages that will be installed
33.9 MiB | - 0 B released by packages that will be removed
Backend: classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: libsha1detectcoll1-1.0.3-2.18.x86_64 (SLE_BCI) (1/2), 23.2 KiB
Retrieving: libsha1detectcoll1-1.0.3-2.18.x86_64.rpm [..done]
Retrieving: git-core-2.51.0-150600.3.12.1.x86_64 (SLE_BCI) (2/2), 6.0 MiB
Retrieving: git-core-2.51.0-150600.3.12.1.x86_64.rpm [.done]
Checking for file conflicts: [...done]
(1/2) Installing: libsha1detectcoll1-1.0.3-2.18.x86_64 [..done]
(2/2) Installing: git-core-2.51.0-150600.3.12.1.x86_64 [...........done]
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...
Resolving package dependencies...
The following 3 NEW packages are going to be installed:
git perl-Error perl-Git
The following 3 packages are not supported by their vendor:
git perl-Error perl-Git
3 new packages to install.
Package download size: 344.6 KiB
Package install size change:
| 306.7 KiB required by packages that will be installed
306.7 KiB | - 0 B released by packages that will be removed
Backend: classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: perl-Error-0.17025-1.20.noarch (SLE_BCI) (1/3), 40.5 KiB
Retrieving: perl-Error-0.17025-1.20.noarch.rpm [..done]
Retrieving: perl-Git-2.51.0-150600.3.12.1.x86_64 (SLE_BCI) (2/3), 184.6 KiB
Retrieving: perl-Git-2.51.0-150600.3.12.1.x86_64.rpm [.done]
Retrieving: git-2.51.0-150600.3.12.1.x86_64 (SLE_BCI) (3/3), 119.5 KiB
Retrieving: git-2.51.0-150600.3.12.1.x86_64.rpm [.done]
Checking for file conflicts: [...done]
(1/3) Installing: perl-Error-0.17025-1.20.noarch [..done]
(2/3) Installing: perl-Git-2.51.0-150600.3.12.1.x86_64 [..done]
(3/3) Installing: git-2.51.0-150600.3.12.1.x86_64 [..done]
(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:05.539
And
I wait until there is no pillar refresh salt job active
00:00:04.793
Then
the pillar data for "org_id" should be "1" on "sle_minion"
00:00:03.487
And
the pillar data for "git_pillar_foobar" should be "12345" on "sle_minion"
00:00:04.388
+ 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:03.630
+ 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:04.559
Then
the pillar data for "git_pillar_foobar" should be empty on "sle_minion"
00:00:03.423
And
the pillar data for "org_id" should be "1" on "sle_minion"
00:00:03.415
And
the pillar data for "git_pillar_foobar" should be empty on the Salt master
00:00:04.568
@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:04.406
And
I remove repository "SLE-Module-Basesystem15-SP7-Pool" on "server" without error control
00:00:02.528