@skip_if_github_validation
@scope_onboarding
Feature: 0049 - Bootstrap a Salt minion via the GUI using SSH key
File name: min_bootstrap_ssh_key.feature
Relative path: secondary/min_bootstrap_ssh_key.feature
@skip_if_github_validation
@scope_onboarding
Scenario: Delete SLES minion system profile before bootstrap with SSH key test
When
I delete "sle_minion" system using the api
00:00:05.264
And
I perform a full salt minion cleanup on "sle_minion"
00:00:08.329
And
I wait until Salt client is inactive on "sle_minion"
00:00:00.453
Then
"sle_minion" should not be registered
00:00:00.951
@skip_if_github_validation
@scope_onboarding
Scenario: Bootstrap a SLES minion using SSH key with wrong passphrase
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.141
Then
I should see a "Bootstrap Minions" text
00:00:00.080
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.053
And
I enter "root" as "user"
00:00:00.055
And
I check radio button "SSH Private Key"
00:00:10.079
And
I attach the file "ssh_keypair/id_rsa_bootstrap-passphrase_linux" to "privKeyFile"
00:00:00.037
And
I enter "you-shall-not-pass" as "privKeyPwd"
00:00:00.087
And
I click on "Bootstrap"
00:00:00.062
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:07.799
Then
I should see a "Details" button
00:00:00.016
When
I click on "Details"
00:00:00.074
And
I wait at most 10 seconds until I see modal containing "Error Details" text
00:00:00.011
Then
I should see a "Standard Error" text
00:00:00.072
And
I should see "Permission denied, no authentication information" or "Permission denied (publickey,password,keyboard-interactive)" in the stderr textarea
00:00:20.032
+ Show Error
Text 'Permission denied, no authentication information' and 'Permission denied (publickey,password,keyboard-interactive)' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:736:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:735:in `/^I should see "([^"]*)" or "([^"]*)" in the ([^ ]+) textarea$/' features/secondary/min_bootstrap_ssh_key.feature:41:in `I should see "Permission denied, no authentication information" or "Permission denied (publickey,password,keyboard-interactive)" in the stderr textarea'
When
I close the modal dialog
0s
@skip_if_github_validation
@scope_onboarding
Scenario: Bootstrap a SLES minion using SSH key
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.077
Then
I should see a "Bootstrap Minions" text
00:00:00.062
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.055
And
I check radio button "SSH Private Key"
00:00:10.071
And
I attach the file "ssh_keypair/id_rsa_bootstrap-passphrase_linux" to "privKeyFile"
00:00:00.035
And
I enter "linux" as "privKeyPwd"
00:00:00.062
And
I select the hostname of "proxy" from "proxies" if present
00:00:00.070
And
I click on "Bootstrap"
00:00:00.066
And
I wait at most 480 seconds until I see "Bootstrap process initiated." text
00:00:49.194
@skip_if_github_validation
@scope_onboarding
Scenario: Check new minion bootstrapped with SSH key in System Overview page
When
I follow the left menu "Salt > Keys"
00:00:00.134
Then
I should see a "accepted" text
00:00:00.337
When
I am on the Systems page
00:00:00.266
And
I wait until I see the name of "sle_minion", refreshing the page
00:01:11.762
And
I wait until onboarding is completed for "sle_minion"
00:00:08.016
It took 5 seconds to contact the minion