@skip_if_github_validation
@scope_onboarding
@susemanager
@uyuni
Feature: 0052 - Bootstrap a Salt minion via the GUI with an activation key
File name: min_bootstrap_activation_key.feature
Relative path: secondary/min_bootstrap_activation_key.feature
@skip_if_github_validation
@scope_onboarding
Scenario: Delete SLES minion system profile
When
I delete "sle_minion" system using the api
00:00:05.243
And
I perform a full salt minion cleanup on "sle_minion"
00:00:09.690
And
I wait until Salt client is inactive on "sle_minion"
00:00:00.494
Then
"sle_minion" should not be registered
00:00:00.961
@skip_if_github_validation
@scope_onboarding
Scenario: Create a configuration channel for the activation key
When
I follow the left menu "Configuration > Channels"
00:00:00.136
And
I follow "Create Config Channel"
00:00:00.247
And
I enter "Key Channel" as "cofName"
00:00:00.058
And
I enter "keychannel" as "cofLabel"
00:00:00.053
And
I enter "This is a configuration channel for the activation key" as "cofDescription"
00:00:00.088
And
I click on "Create Config Channel"
00:00:00.613
Then
I should see a "Key Channel" text
00:00:00.059
@skip_if_github_validation
@scope_onboarding
Scenario: Add a configuration file to the key configuration channel
When
I follow the left menu "Configuration > Channels"
00:00:00.063
And
I follow "Key Channel"
00:00:00.409
And
I follow "Create Configuration File or Directory"
00:00:00.398
And
I enter "/etc/euler.conf" as "cffPath"
00:00:00.061
And
I enter "e^i.pi=-1" in the editor
00:00:00.004
And
I click on "Create Configuration File"
00:00:00.058
@skip_if_github_validation
@scope_onboarding
@susemanager
Scenario: Create a complete minion activation key
When
I follow the left menu "Systems > Activation Keys"
0s
And
I follow "Create Key"
0s
And
I wait for child channels to appear
0s
And
I enter "Minion testing" as "description"
0s
And
I enter "MINION-TEST" as "key"
0s
And
I enter "20" as "usageLimit"
0s
And
I select "SLE-Product-SLES15-SP7-Pool for x86_64" from "selectedBaseChannel"
0s
And
I wait for child channels to appear
0s
And
I include the recommended child channels
0s
And
I check "SLE-Module-DevTools15-SP7-Pool for x86_64"
0s
And
I check "Fake-RPM-SUSE-Channel"
0s
And
I click on "Create Activation Key"
0s
And
I follow "Configuration" in the content area
0s
And
I follow first "Subscribe to Channels" in the content area
0s
And
I check "Key Channel" in the list
0s
And
I click on "Continue"
0s
And
I follow "Packages"
0s
And
I enter "orion-dummy perseus-dummy" as "packages"
0s
And
I click on "Update Activation Key"
0s
Then
I should see a "Activation key Minion testing has been modified" text
0s
@skip_if_github_validation
@scope_onboarding
@uyuni
Scenario: Create a complete minion activation key
When
I follow the left menu "Systems > Activation Keys"
00:00:00.130
And
I follow "Create Key"
00:00:00.275
And
I wait for child channels to appear
00:00:01.698
And
I enter "Minion testing" as "description"
00:00:00.083
And
I enter "MINION-TEST" as "key"
00:00:00.085
And
I enter "20" as "usageLimit"
00:00:00.055
And
I select "openSUSE Tumbleweed (x86_64)" from "selectedBaseChannel"
00:00:00.080
And
I wait for child channels to appear
00:00:00.447
And
I check "Uyuni Client Tools for openSUSE Tumbleweed (x86_64) (Development)"
00:00:00.105
And
I check "Fake-RPM-SUSE-Channel"
00:00:00.073
And
I click on "Create Activation Key"
00:00:00.636
And
I follow "Configuration" in the content area
00:00:00.074
And
I follow first "Subscribe to Channels" in the content area
00:00:00.076
And
I check "Key Channel" in the list
00:00:00.055
And
I click on "Continue"
00:00:00.494
And
I follow "Packages"
00:00:00.309
And
I enter "orion-dummy perseus-dummy" as "packages"
00:00:00.066
And
I click on "Update Activation Key"
00:00:00.056
Then
I should see a "Activation key Minion testing has been modified" text
00:00:00.495
@skip_if_github_validation
@scope_onboarding
Scenario: Bootstrap a SLES minion with an activation key
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.064
Then
I should see a "Bootstrap Minions" text
00:00:00.061
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.050
And
I enter "root" as "user"
00:00:00.052
And
I enter "linux" as "password"
00:00:00.055
And
I select "1-MINION-TEST" from "activationKeys"
00:00:00.058
And
I select the hostname of "proxy" from "proxies" if present
00:00:00.059
And
I click on "Bootstrap"
00:00:00.058
And
I wait until I see "Bootstrap process initiated." text
00:00:41.969
And
I follow the left menu "Systems > System List > All"
00:00:00.146
And
I wait until I see the name of "sle_minion", refreshing the page
00:00:57.629
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:70:in `/^I wait until I see "([^"]*)" (text|regex), refreshing the page$/' ./features/step_definitions/common_steps.rb:157:in `/^I wait (\d+) seconds until the event is picked up and (\d+) seconds until the event "([^"]*)" is completed$/' ./features/step_definitions/setup_steps.rb:218:in `/^I wait at most (\d+) seconds until onboarding is completed for "([^"]*)"$/' ./features/step_definitions/setup_steps.rb:230:in `/^I wait until onboarding is completed for "([^"]*)"$/' features/secondary/min_bootstrap_activation_key.feature:96:in `I wait until onboarding is completed for "sle_minion"'
@skip_if_github_validation
@scope_onboarding
Scenario: Verify that minion bootstrapped with Salt key and packages
When
I follow the left menu "Salt > Keys"
00:00:00.135
Then
I should see a "accepted" text
00:00:00.325
It took 3 seconds to contact the minion
When
I wait for "orion-dummy" to be installed on "sle_minion"
00:04:10.842
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/support/remote_node.rb:189:in `run_until_ok' ./features/step_definitions/command_steps.rb:248:in `/^I wait for "([^"]*)" to be (uninstalled|installed) on "([^"]*)"$/' features/secondary/min_bootstrap_activation_key.feature:102:in `I wait for "orion-dummy" to be installed on "sle_minion"'
And
I wait for "perseus-dummy" to be installed on "sle_minion"
0s
@skip_if_github_validation
@scope_onboarding
Scenario: Verify that minion bootstrapped with configuration channel
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.515
When
I follow "Configuration" in the content area
00:00:00.071
Then
I should see a "1 configuration channel" text
00:00:00.066
When
I follow "View Files" in the content area
00:00:00.081
Then
I should see a "/etc/euler.conf" text
00:00:00.065
And
I should see a "Key Channel" text
00:00:00.068
@skip_if_github_validation
@scope_onboarding
Scenario: Cleanup: remove the package states
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.485
When
I follow "States" in the content area
00:00:00.067
And
I follow "Packages"
00:00:00.521
Then
I should see a "Package States" text
00:00:00.059
When
I change the state of "orion-dummy" to "Unmanaged" and ""
00:00:00.125
And
I change the state of "perseus-dummy" to "Unmanaged" and ""
00:00:00.037
Then
I should see a "2 Changes" text
00:00:00.064
When
I click save
00:00:00.048
Then
I wait until I see "Package states have been saved." text
00:00:00.265
And
I click apply
00:00:00.045
And
I remove package "orion-dummy" from this "sle_minion"
00:00:01.382
And
I remove package "perseus-dummy" from this "sle_minion"
00:00:01.120
@skip_if_github_validation
@scope_onboarding
Scenario: Cleanup: remove the key configuration channel
When
I follow the left menu "Configuration > Channels"
00:00:00.125
And
I follow "Key Channel"
00:00:01.322
And
I follow "Delete Channel"
00:00:00.790
And
I click on "Delete Config Channel"
00:00:00.637
@skip_if_github_validation
@scope_onboarding
Scenario: Cleanup: delete the activation key
When
I follow the left menu "Systems > Activation Keys"
00:00:00.126
And
I follow "Minion testing" in the content area
00:00:00.068
And
I follow "Delete Key"
00:00:00.318
And
I click on "Delete Activation Key"
00:00:00.492
Then
I should see a "Activation key Minion testing has been deleted." text
00:00:00.075