@skip_if_github_validation
@sle_minion
@scope_onboarding
Feature: 0130 - 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.165
Then
I should see a "Bootstrap Minions" text
00:00:00.079
The hostname of sle_minion is uyuni-master-suse-minion.sumaci.aws
And
I enter "22" as "port"
00:00:00.081
And
I enter "root" as "user"
00:00:00.079
And
I enter "linux" as "password"
00:00:00.076
And
I click on "Bootstrap"
00:00:00.086
And
I wait until I see "A salt key for this host" text
00:00:00.192
Then
I should not see a "GenericSaltError" text
00:00:00.070
And
I should see a "seems to already exist, please check!" text
00:00:00.075
@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.082
Then
I should see a "Bootstrap Minions" text
00:00:00.070
When
I enter "not-existing-name" as "hostname"
00:00:00.097
And
I enter "22" as "port"
00:00:00.054
And
I enter "root" as "user"
00:00:00.063
And
I enter "linux" as "password"
00:00:00.066
And
I click on "Bootstrap"
00:00:00.071
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:02.207
Then
I should see a "Details" button
00:00:00.022
When
I click on "Details"
00:00:00.105
And
I wait at most 10 seconds until I see modal containing "Error Details" text
00:00:00.015
Then
I should see a "Standard Error" text
00:00:00.076
And
I should see "Could not resolve hostname not-existing-name: Name or service not known" in the stderr textarea
00:00:00.022
When
I close the modal dialog
00:00:00.071
@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.085
Then
I should see a "Bootstrap Minions" text
00:00:00.076
The hostname of localhost is uyuni-master-controller.sumaci.aws
And
I enter "22" as "port"
00:00:00.067
And
I enter "FRANZ" as "user"
00:00:00.076
And
I enter "KAFKA" as "password"
00:00:00.077
And
I click on "Bootstrap"
00:00:00.079
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:09.644
Then
I should see a "Details" button
00:00:00.021
When
I click on "Details"
00:00:00.086
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.078
And
I should see "Permission denied (publickey" or "Password authentication failed" in the stderr textarea
00:00:00.020
When
I close the modal dialog
00:00:00.067
@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.087
Then
I should see a "Bootstrap Minions" text
00:00:00.070
The hostname of localhost is uyuni-master-controller.sumaci.aws
And
I enter "11" as "port"
00:00:00.062
And
I enter "root" as "user"
00:00:00.071
And
I enter "linux" as "password"
00:00:00.075
And
I click on "Bootstrap"
00:00:00.077
And
I wait until I see "An error has occurred during salt execution: unable to establish ssh connection." text
00:00:02.191
Then
I should see a "Details" button
00:00:00.018
When
I click on "Details"
00:00:00.101
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.076
And
I should see "port 11: Connection refused" or "port 11: Network is unreachable" in the stderr textarea
00:00:00.020
When
I close the modal dialog
00:00:00.064