Skip to content

Commit

Permalink
Reboot SLE micros through the web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed Oct 25, 2023
1 parent 6c6183b commit 6282307
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Bootstrap a SLE Micro 5.1 Salt minion
And I wait until I see "Bootstrap process initiated." text

Scenario: Reboot the SLE Micro 5.1 minion and wait until reboot is completed
When I reboot the "slemicro51_minion" minion through SSH
When I reboot the "slemicro51_minion" minion through the web UI

Scenario: Check the new bootstrapped SLE Micro 5.1 minion in System Overview page
When I wait until onboarding is completed for "slemicro51_minion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Bootstrap a SLE Micro 5.2 Salt minion
And I wait until I see "Bootstrap process initiated." text

Scenario: Reboot the SLE Micro 5.2 minion and wait until reboot is completed
When I reboot the "slemicro52_minion" minion through SSH
When I reboot the "slemicro52_minion" minion through the web UI

Scenario: Check the new bootstrapped SLE Micro 5.2 minion in System Overview page
When I wait until onboarding is completed for "slemicro52_minion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Bootstrap a SLE Micro 5.3 Salt minion
And I wait until I see "Bootstrap process initiated." text

Scenario: Reboot the SLE Micro 5.3 minion and wait until reboot is completed
When I reboot the "slemicro53_minion" minion through SSH
When I reboot the "slemicro53_minion" minion through the web UI

Scenario: Check the new bootstrapped SLE Micro 5.3 minion in System Overview page
When I wait until onboarding is completed for "slemicro53_minion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Bootstrap a SLE Micro 5.4 Salt minion
And I wait until I see "Bootstrap process initiated." text

Scenario: Reboot the SLE Micro 5.4 minion and wait until reboot is completed
When I reboot the "slemicro54_minion" minion through SSH
When I reboot the "slemicro54_minion" minion through the web UI

Scenario: Check the new bootstrapped SLE Micro 5.4 minion in System Overview page
When I wait until onboarding is completed for "slemicro54_minion"
Expand Down
10 changes: 1 addition & 9 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1434,14 +1434,6 @@
end
end

When(/^I reboot the "([^"]*)" minion through SSH$/) do |host|
node = get_target(host)
node.run('reboot > /dev/null 2> /dev/null &')
reboot_timeout = 120
check_shutdown(node.public_ip, reboot_timeout)
check_restart(node.public_ip, node, reboot_timeout)
end

When(/^I reboot the "([^"]*)" minion through the web UI$/) do |host|
steps %(
Given I am on the Systems overview page of this "#{host}"
Expand All @@ -1457,7 +1449,7 @@

When(/^I reboot the "([^"]*)" if it is a SLE Micro$/) do |host|
if slemicro_host?(host)
step %(I reboot the "#{host}" minion through SSH)
step %(I reboot the "#{host}" minion through the web UI)
end
end

Expand Down

0 comments on commit 6282307

Please sign in to comment.