@flaky
@scope_res
@scope_salt
@rhlike_minion
Feature: 0122 - Install a patch on the Red Hat-like minion via Salt through the UI
File name: min_rhlike_salt_install_package_and_patch.feature
Relative path: secondary/min_rhlike_salt_install_package_and_patch.feature
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Pre-requisite: refresh package list and check newly installed packages on Red Hat-like minion
FAIL: mgrctl exec -i 'spacecmd -u admin -p admin system_schedulepackagerefresh uyuni-master-rhlike-minion' returned status code = 1. Output: ** Generating system cache ** (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/command_steps.rb:1283:in `/^I refresh packages list via spacecmd on "([^"]*)"$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:20:in `I refresh packages list via spacecmd on "rhlike_minion"'
And
I wait until refresh package list on "rhlike_minion" is finished
0s
Then
spacecmd should show packages "virgo-dummy-1.0" installed on "rhlike_minion"
0s
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Pre-requisite: re-subscribe the Red Hat-like minion to a base channel
Given
I am on the Systems overview page of this "rhlike_minion"
00:00:01.393
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-rhlike-minion (RuntimeError) ./features/support/commonlib.rb:444:in `get_system_id' ./features/step_definitions/navigation_steps.rb:502:in `/^I am on the Systems overview page of this "([^"]*)"$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:28:in `I am on the Systems overview page of this "rhlike_minion"'
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I wait until I do not see "Loading..." text
0s
And
I check radio button "Fake-Base-Channel-RH-like"
0s
And
I wait until I do not see "Loading..." text
0s
And
I click on "Next"
0s
Then
I should see a "Confirm Software Channel Change" text
0s
When
I click on "Confirm"
0s
Then
I should see a "Changing the channels has been scheduled." text
0s
And
I wait until event "Subscribe channels scheduled" is completed
0s
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Schedule errata refresh to reflect channel assignment on Red Hat-like minion
Unable to find link "Software" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:41:in `I follow "Software" in the content area'
And
I follow "List / Remove" in the content area
0s
And
I enter "virgo-dummy" as the filtered package name
0s
And
I click on the filter button until page does contain "virgo-dummy" text
0s
When
I follow the left menu "Admin > Task Schedules"
0s
And
I follow "errata-cache-default"
0s
And
I follow "errata-cache-bunch"
0s
And
I click on "Single Run Schedule"
0s
Then
I should see a "bunch was scheduled" text
0s
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
0s
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Install a patch on the Red Hat-like minion
Given
I am on the Systems overview page of this "rhlike_minion"
00:00:00.999
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-rhlike-minion (RuntimeError) ./features/support/commonlib.rb:444:in `get_system_id' ./features/step_definitions/navigation_steps.rb:502:in `/^I am on the Systems overview page of this "([^"]*)"$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:53:in `I am on the Systems overview page of this "rhlike_minion"'
When
I follow "Software" in the content area
0s
And
I follow "Patches" in the content area
0s
When
I check "virgo-dummy-3456" in the list
0s
And
I click on "Apply Patches"
0s
And
I click on "Confirm"
0s
Then
I should see a "1 patch update has been scheduled for" text
0s
And
I wait for "virgo-dummy-2.0-1.1" to be installed on "rhlike_minion"
0s
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Install a package on the Red Hat-like minion
Unable to find link "Software" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:63:in `I follow "Software" in the content area'
And
I follow "Install"
0s
And
I check "andromeda-dummy" in the list
0s
And
I click on "Install Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "1 package install has been scheduled for" text
0s
And
I wait until event "Package Install/Upgrade scheduled" is completed
0s
@flaky
@scope_res
@scope_salt
@rhlike_minion
Scenario: Cleanup: remove virgo-dummy and andromeda-dummy packages from Red Hat-like minion
Unable to find link "Software" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_rhlike_salt_install_package_and_patch.feature:72:in `I follow "Software" in the content area'
And
I follow "List / Remove"
0s
And
I enter "andromeda" as the filtered package name
0s
And
I click on the filter button
0s
And
I check "andromeda-dummy" in the list
0s
And
I enter "virgo-dummy" as the filtered package name
0s
And
I click on the filter button
0s
And
I check "virgo-dummy" in the list
0s
And
I click on "Remove Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "2 package removals have been scheduled" text
0s
And
I wait until event "Package Removal scheduled" is completed
0s
And
I disable repository "test_repo_rpm_pool" on this "rhlike_minion"
0s