@skip_if_github_validation
@sle_minion
@scope_onboarding
Feature: 0129 - Negative tests for bootstrapping normal minions
Description: In order to register only valid minions
As an authorized user
I want to avoid registration with invalid input parameters
File name: min_bootstrap_negative.feature
Relative path: secondary/min_bootstrap_negative.feature
@skip_if_github_validation
@sle_minion
@scope_onboarding
Scenario: Bootstrap should fail when minion already exists
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.155
Then
I should see a "Bootstrap Minions" text
00:00:00.067
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.060
And
I enter "root" as "user"
00:00:00.063
And
I enter "linux" as "password"
00:00:00.065
And
I click on "Bootstrap"
00:00:00.072
And
I wait until I see "A salt key for this host" text
00:00:00.279
Then
I should not see a "GenericSaltError" text
00:00:00.067
And
I should see a "seems to already exist, please check!" text
00:00:00.064
@skip_if_github_validation
@sle_minion
@scope_onboarding
Scenario: Bootstrap a SLES minion with wrong hostname
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.071
Then
I should see a "Bootstrap Minions" text
00:00:00.067
When
I enter "not-existing-name" as "hostname"
00:00:00.089
And
I enter "22" as "port"
00:00:00.055
And
I enter "root" as "user"
00:00:00.058
And
I enter "linux" as "password"
00:00:00.062
And
I click on "Bootstrap"
00:00:00.063
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:02.549
Then
I should see a "Details" button
00:00:00.019
When
I click on "Details"
00:00:00.083
And
I wait at most 10 seconds until I see modal containing "Error Details" text
00:00:00.012
Then
I should see a "Standard Error" text
00:00:00.071
And
I should see "Could not resolve hostname not-existing-name: Name or service not known" in the stderr textarea
00:00:00.018
When
I close the modal dialog
00:00:00.059
@skip_if_github_validation
@sle_minion
@scope_onboarding
Scenario: Bootstrap a SLES minion with wrong SSH credentials
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.070
Then
I should see a "Bootstrap Minions" text
00:00:00.068
The hostname of localhost is uyuni-master-controller.sumaci.aws
And
I enter "22" as "port"
00:00:00.053
And
I enter "FRANZ" as "user"
00:00:00.062
And
I enter "KAFKA" as "password"
00:00:00.061
And
I click on "Bootstrap"
00:00:00.061
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:09.638
Then
I should see a "Details" button
00:00:00.015
When
I click on "Details"
00:00:00.065
And
I wait at most 10 seconds until I see modal containing "Error Details" text
00:00:00.009
Then
I should see a "Standard Error" text
00:00:00.073
And
I should see "Permission denied (publickey" or "Password authentication failed" in the stderr textarea
00:00:00.014
When
I close the modal dialog
00:00:00.051
@skip_if_github_validation
@sle_minion
@scope_onboarding
Scenario: Bootstrap a SLES minion with wrong SSH port number
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.067
Then
I should see a "Bootstrap Minions" text
00:00:00.069
The hostname of localhost is uyuni-master-controller.sumaci.aws
And
I enter "11" as "port"
00:00:00.053
And
I enter "root" as "user"
00:00:00.059
And
I enter "linux" as "password"
00:00:00.060
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:02.025
Then
I should see a "Details" button
00:00:00.015
When
I click on "Details"
00:00:00.065
And
I wait at most 10 seconds until I see modal containing "Error Details" text
00:00:00.008
Then
I should see a "Standard Error" text
00:00:00.071
And
I should see "port 11: Connection refused" or "port 11: Network is unreachable" in the stderr textarea
00:00:00.015
When
I close the modal dialog
00:00:00.051