@skip_if_github_validation
@sle_minion
@scope_salt
Feature: 0055 - Management of minion keys
Description: In Order to validate the minion onboarding page
As an authorized user
I want to verify all the minion key management features in the UI
File name: min_salt_minions_page.feature
Relative path: secondary/min_salt_minions_page.feature
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Delete SLES minion system profile before exploring the onboarding page
Given
I am on the Systems overview page of this "sle_minion"
00:00:04.029
When
I follow "Delete System"
00:00:00.455
Then
I should see a "Confirm System Profile Deletion" text
00:00:00.062
When
I click on "Delete Profile"
00:00:00.059
And
I wait until I see "has been deleted" text
00:04:03.036
And
I wait until Salt client is inactive on "sle_minion"
00:00:00.862
Then
"sle_minion" should not be registered
00:00:01.175
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Minion is visible in the Pending section
When
I configure salt minion on "sle_minion"
00:00:00.487
And
I restart salt-minion on "sle_minion"
00:00:00.754
And
I wait at most 10 seconds until Salt master sees "sle_minion" as "unaccepted"
00:00:03.695
And
I follow the left menu "Salt > Keys"
00:00:00.060
And
I refresh page until I see "sle_minion" hostname as text
00:00:10.143
Then
I should see a "Fingerprint" text
00:00:00.065
And
I see "sle_minion" fingerprint
00:00:02.242
And
I should see a "pending" text
00:00:00.062
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Reject and delete the pending key
And
I follow the left menu "Salt > Keys"
00:00:00.052
And
I reject "sle_minion" from the Pending section
00:00:00.285
And
I wait at most 10 seconds until Salt master sees "sle_minion" as "rejected"
00:00:04.524
Then
I should see a "rejected" text
00:00:00.065
When
I stop salt-minion on "sle_minion"
00:00:03.209
And
I delete "sle_minion" from the Rejected section
00:00:00.045
And
I refresh page until I do not see "sle_minion" hostname as text
00:00:13.547
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Accepted minion shows up as a registered system
When
I start salt-minion on "sle_minion"
00:00:01.073
And
I wait at most 10 seconds until Salt master sees "sle_minion" as "unaccepted"
00:00:03.739
Then
"sle_minion" should not be registered
00:00:01.270
When
I follow the left menu "Salt > Keys"
00:00:00.074
Then
I should see a "pending" text
00:00:00.479
When
I accept "sle_minion" key
00:00:00.048
And
I wait at most 10 seconds until Salt master sees "sle_minion" as "accepted"
00:00:03.480
And
I wait until onboarding is completed for "sle_minion"
00:01:22.181
Then
"sle_minion" should be registered
00:00:01.207
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: The minion communicates with the Salt master
It took 4 seconds to contact the minion
When
I get OS information of "sle_minion" from the Master
00:00:04.570
Then
it should contain the OS of "sle_minion"
00:00:00.000
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Delete profile of unreacheable minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.783
When
I stop salt-minion on "sle_minion"
00:00:01.963
And
I follow "Delete System"
00:00:00.360
Then
I should see a "Confirm System Profile Deletion" text
00:00:00.060
When
I click on "Delete Profile"
00:00:00.061
Then
I wait until I see "Cleanup timed out. Please check if the machine is reachable." text
00:00:07.627
When
I click on "Delete Profile Without Cleanup" in "An error occurred during cleanup" modal
00:00:01.426
And
I wait until I see "has been deleted" text
00:00:00.071
Then
"sle_minion" should not be registered
00:00:01.525
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Cleanup: bootstrap again the minion
When
I perform a full salt minion cleanup on "sle_minion"
00:00:07.092
And
I follow the left menu "Systems > Bootstrapping"
00:00:00.073
Then
I should see a "Bootstrap Minions" text
00:00:00.073
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.049
And
I enter "root" as "user"
00:00:00.056
And
I enter "linux" as "password"
00:00:00.057
And
I select "1-SUSE-KEY-x86_64" from "activationKeys"
00:00:00.071
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:43.029
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_salt_minions_page.feature:91:in `I wait until onboarding is completed for "sle_minion"'