@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Feature: 0065 - Action chains on several systems at once
File name: allcli_action_chain.feature
Relative path: secondary/allcli_action_chain.feature
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Pre-requisite: downgrade packages before action chain test on several systems
When
I enable repository "test_repo_rpm_pool" on this "sle_minion"
00:00:00.786
And
I enable repository "test_repo_rpm_pool" on this "ssh_minion"
00:00:00.884
And
I remove package "andromeda-dummy" from this "ssh_minion" without error control
00:00:00.929
And
I remove package "andromeda-dummy" from this "sle_minion" without error control
00:00:00.909
And
I install package "andromeda-dummy-1.0" on this "sle_minion"
00:00:03.073
And
I install package "andromeda-dummy-1.0" on this "ssh_minion"
00:00:02.043
And
I refresh the metadata for "sle_minion"
00:00:01.762
And
I refresh the metadata for "ssh_minion"
00:00:00.896
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Pre-requisite: refresh package list and check installed packages before action chain test on several systems
When
I refresh packages list via spacecmd on "sle_minion"
00:00:07.836
And
I wait until refresh package list on "sle_minion" is finished
00:00:14.179
Then
spacecmd should show packages "andromeda-dummy-1.0" installed on "sle_minion"
00:00:09.288
When
I refresh packages list via spacecmd on "ssh_minion"
00:00:07.561
And
I wait until refresh package list on "ssh_minion" is finished
00:00:30.078
Then
spacecmd should show packages "andromeda-dummy-1.0" installed on "ssh_minion"
00:00:09.208
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Pre-requisite: wait until downgrade is finished before action chain test on several systems
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.751
When
I follow "Software" in the content area
00:00:00.070
And
I follow "List / Remove" in the content area
00:00:00.064
And
I enter "andromeda-dummy" as the filtered package name
00:00:00.230
And
I click on the filter button until page does contain "andromeda-dummy-1.0" text
00:00:00.277
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Pre-requisite: ensure the errata cache is computed before action chain test on several systems
When
I follow the left menu "Admin > Task Schedules"
00:00:00.153
And
I follow "errata-cache-default"
00:00:01.220
And
I follow "errata-cache-bunch"
00:00:01.576
And
I click on "Single Run Schedule"
00:00:01.234
Then
I should see a "bunch was scheduled" text
00:00:00.268
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:12.123
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.988
When
I follow the left menu "Admin > Task Schedules"
00:00:00.111
And
I follow "errata-cache-default"
00:00:01.303
And
I follow "errata-cache-bunch"
00:00:01.342
And
I click on "Single Run Schedule"
00:00:01.495
Then
I should see a "bunch was scheduled" text
00:00:00.266
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:00.959
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Create a custom action chain for two systems
When
I create an action chain with label "two_systems_action_chain" via API
00:00:01.160
And
I follow the left menu "Schedule > Action Chains"
00:00:00.141
Then
I should see a "two_systems_action_chain" text
00:00:00.069
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Add an action chain using system set manager for SSH minion and SLE minion
When
I follow the left menu "Systems > System List > All"
00:00:00.193
And
I check the "sle_minion" client
00:00:00.492
And
I check the "ssh_minion" client
00:00:00.059
And
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.485
And
I follow "Install" in the content area
00:00:00.069
And
I follow "Fake-RPM-SUSE-Channel" in the content area
00:00:00.065
And
I enter "andromeda-dummy" as the filtered package name
00:00:00.058
And
I click on the filter button
00:00:00.401
And
I check "andromeda-dummy" in the list
00:00:00.054
And
I click on "Install Packages"
00:00:00.333
Then
I should see "sle_minion" hostname
00:00:00.086
Hostname uyuni-master-suse-sshminion.sumaci.aws is not present (ScriptError) ./features/step_definitions/navigation_steps.rb:711:in `/^I should see "([^"]*)" hostname$/' features/secondary/allcli_action_chain.feature:72:in `I should see "ssh_minion" hostname'
When
I check radio button "schedule-by-action-chain"
0s
And
I click on "Confirm"
0s
Then
I should see a "Package installations are being scheduled" text
0s
When
I follow the left menu "Systems > System Set Manager > Overview"
0s
And
I follow "remote commands" in the content area
0s
And
I enter as remote command this script in
0s
#!/bin/bash touch /tmp/action_chain_done
And
I check radio button "schedule-by-action-chain"
0s
And
I click on "Schedule"
0s
Then
I should see "sle_minion" hostname
0s
And
I should see "ssh_minion" hostname
0s
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Verify action chain for two systems
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.773
When
I follow "Schedule"
00:00:00.288
And
I follow "Action Chains"
00:00:00.280
And
I follow "two_systems_action_chain"
00:00:00.228
And
I should see a "1. Install or update andromeda-dummy on 2 systems" text
00:00:10.402
+ Show Error
+ Screenshot
Text '1. Install or update andromeda-dummy on 2 systems' not found (ScriptError) ./features/step_definitions/navigation_steps.rb:697:in `/^I should see a "([^"]*)" text$/' features/secondary/allcli_action_chain.feature:93:in `I should see a "1. Install or update andromeda-dummy on 2 systems" text'
And
I should see a "2. Run a remote command on 2 systems" text
0s
And
I click on "Save and Schedule"
0s
Then
I should see a "Action Chain two_systems_action_chain has been scheduled for execution." text
0s
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Verify that the action chain from the system set manager was executed successfully
When
I wait until file "/tmp/action_chain_done" exists on "ssh_minion"
00:04:10.004
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/command_steps.rb:822:in `/^I wait at most (\d+) seconds until file "([^"]*)" exists on "([^"]*)"$/' ./features/step_definitions/command_steps.rb:817:in `/^I wait until file "([^"]*)" exists on "([^"]*)"$/' features/secondary/allcli_action_chain.feature:99:in `I wait until file "/tmp/action_chain_done" exists on "ssh_minion"'
And
I wait until file "/tmp/action_chain_done" exists on "sle_minion"
0s
Then
"andromeda-dummy" should be installed on "ssh_minion"
0s
And
"andromeda-dummy" should be installed on "sle_minion"
0s
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Cleanup: remove package and repository used in action chain for several systems
When
I remove package "andromeda-dummy" from this "sle_minion" without error control
00:00:02.043
And
I remove package "andromeda-dummy" from this "ssh_minion" without error control
00:00:02.013
And
I disable repository "test_repo_rpm_pool" on this "sle_minion" without error control
00:00:00.486
And
I disable repository "test_repo_rpm_pool" on this "ssh_minion" without error control
00:00:00.490
@skip_if_github_validation
@ssh_minion
@sle_minion
@scope_action_chains
Scenario: Cleanup: remove temporary files for testing action chains on several systems
When
I run "rm /tmp/action_chain_done" on "sle_minion" without error control
00:00:00.573
And
I run "rm /tmp/action_chain_done" on "ssh_minion" without error control
00:00:00.435