@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
@flaky
Feature: 0051 - Register a Salt system to be managed via SSH tunnel
File name: minssh_tunnel.feature
Relative path: secondary/minssh_tunnel.feature
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Delete the Salt minion for SSH tunnel bootstrap
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.765
When
I follow "Delete System"
00:00:00.642
Then
I should see a "Confirm System Profile Deletion" text
00:00:00.058
When
I click on "Delete Profile"
00:00:00.060
And
I wait until I see "has been deleted" text
00:00:15.991
Then
"ssh_minion" should not be registered
00:00:00.997
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Register this minion for push via SSH tunnel
When
I follow the left menu "Systems > Bootstrapping"
00:00:00.079
Then
I should see a "Bootstrap Minions" text
00:00:00.071
The hostname of ssh_minion is uyuni-master-suse-sshminion.sumaci.aws
And
I enter "22" as "port"
00:00:00.052
And
I enter "root" as "user"
00:00:00.058
And
I enter "linux" as "password"
00:00:00.060
And
I select "1-SUSE-SSH-TUNNEL-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 check "manageWithSSH"
00:00:00.079
And
I click on "Bootstrap"
00:00:00.058
And
I wait at most 480 seconds until I see "Bootstrap process initiated." text
00:00:46.302
And
I wait until onboarding is completed for "ssh_minion"
00:01:43.506
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Install a package from this SSH tunnel minion
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.730
When
I follow "Software" in the content area
00:00:00.075
And
I follow "Install"
00:00:00.640
And
I enter "milkyway-dummy" as the filtered package name
00:00:00.056
And
I click on the filter button
00:00:00.585
And
I wait until I see "milkyway-dummy" text
00:00:00.070
And
I check row with "milkyway-dummy" and arch of "ssh_minion"
00:00:00.066
And
I click on "Install Packages"
00:00:00.577
And
I click on "Confirm"
00:00:00.726
Then
I should see a "1 package install has been scheduled for" text
00:00:00.058
Then
I wait until event "Package Install/Upgrade scheduled" is completed
00:00:55.119
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
@flaky
Scenario: Remove a package from this SSH tunnel minion
Given
I am on the Systems overview page of this "ssh_minion"
00:00:03.284
And
I follow "Software" in the content area
00:00:00.077
And
I follow "List / Remove"
00:00:00.834
And
I enter "milkyway-dummy" as the filtered package name
00:00:00.055
And
I click on the filter button
00:00:00.935
Text 'milkyway-dummy' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:40:in `/^I wait until I see "([^"]*)" text$/' features/secondary/minssh_tunnel.feature:66:in `I wait until I see "milkyway-dummy" text'
And
I check "milkyway-dummy" in the list
0s
And
I click on "Remove Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "1 package removal has been scheduled" text
0s
Then
I wait until event "Package Removal scheduled" is completed
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Run a remote command on this SSH tunnel minion
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Salt')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/minssh_tunnel.feature:74:in `I follow the left menu "Salt ) Remote Commands"'
Then
I should see a "Remote Commands" text in the content area
0s
When
I enter command "echo 'My remote command output'"
0s
And
I enter the hostname of "ssh_minion" as "target"
0s
And
I click on preview
0s
Then
I should see a "Target systems (1)" text
0s
When
I wait until I do not see "pending" text
0s
And
I click on run
0s
And
I wait until I see "show response" text
0s
And
I expand the results for "ssh_minion"
0s
Then
I should see "My remote command output" in the command output for "ssh_minion"
0s
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Cleanup: delete the SSH tunnel minion
When
I delete "ssh_minion" system using the api
00:00:04.269
And
I perform a full salt minion cleanup on "ssh_minion"
00:00:04.864
And
I wait until Salt client is inactive on "ssh_minion"
00:00:00.473
Then
"ssh_minion" should not be registered
00:00:00.979
@skip_if_github_validation
@scope_salt_ssh
@ssh_minion
Scenario: Cleanup: register a SSH minion after SSH tunnel tests
When
I call system.bootstrap() on host "ssh_minion" and salt-ssh "enabled"
00:00:49.735
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/minssh_tunnel.feature:94:in `I follow the left menu "Systems ) System List ) All"'
And
I wait until I see the name of "ssh_minion", refreshing the page
0s
And
I wait until onboarding is completed for "ssh_minion"
0s