@deblike_minion
@scope_deblike
@scope_content_staging
Feature: 0127 - Install a package on the Debian-like minion with staging enabled
File name: min_deblike_salt_install_with_staging.feature
Relative path: secondary/min_deblike_salt_install_with_staging.feature
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Pre-requisite: install virgo-dummy-1.0 package, make sure orion-dummy is not present on Debian-like minion
When
I enable repository "test_repo_deb_pool" on this "deblike_minion"
00:00:00.469
And
I run "apt update" on "deblike_minion"
00:00:01.362
And
I remove package "orion-dummy" from this "deblike_minion"
00:00:00.256
And
I install old package "virgo-dummy=1.0" on this "deblike_minion"
00:00:00.302
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Pre-requisite: refresh package list on Debian-like minion
When
I refresh packages list via spacecmd on "deblike_minion"
00:00:07.343
+ Show Error
+ Screenshot
FAIL: mgrctl exec -i 'spacecmd -u admin -p admin system_schedulepackagerefresh uyuni-master-deblike-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_deblike_salt_install_with_staging.feature:25:in `I refresh packages list via spacecmd on "deblike_minion"'
And
I wait until refresh package list on "deblike_minion" is finished
0s
Then
spacecmd should show packages "virgo-dummy-1.0" installed on "deblike_minion"
0s
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Pre-requisite: ensure the errata cache is computed for Debian-like minion
When
I follow the left menu "Admin > Task Schedules"
00:00:00.134
And
I follow "errata-cache-default"
00:00:01.365
And
I follow "errata-cache-bunch"
00:00:01.242
Then
I click on "Single Run Schedule"
00:00:01.512
And
I should see a "bunch was scheduled" text
00:00:00.272
Then
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:00.984
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Enable content staging for Debian-like minion
When
I follow the left menu "Admin > Organizations"
00:00:00.067
And
I follow first "SUSE Test"
00:00:00.281
And
I follow first "Configuration"
00:00:00.236
And
I check "staging_content_enabled"
00:00:00.041
And
I click on "Update Organization"
00:00:00.493
Then
I should see a "was successfully updated." text
00:00:00.060
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Install package in the future and check for staging on Debian-like minion
Given
I am on the Systems overview page of this "deblike_minion"
00:00:01.209
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-deblike-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_deblike_salt_install_with_staging.feature:49:in `I am on the Systems overview page of this "deblike_minion"'
And
I follow "Software" in the content area
0s
And
I follow "Packages" in the content area
0s
And
I follow "Install" in the content area
0s
And
I enter "orion-dummy-1.1-X" as the filtered package name
0s
And
I click on the filter button
0s
When
I check "orion-dummy-1.1-X" in the list
0s
And
I click on "Install Packages"
0s
And
I pick 3 minutes from now as schedule time
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 the package "orion-dummy_1.1" has been cached on this "deblike_minion"
0s
And
I wait for "orion-dummy-1.1" to be installed on "deblike_minion"
0s
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Install patch in the future and check for staging on Debian-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_deblike_salt_install_with_staging.feature:64:in `I follow "Software" in the content area'
And
I follow "Patches" in the content area
0s
And
I enter "virgo" as the filtered synopsis
0s
And
I click on the filter button
0s
And
I check "3456-1" in the list
0s
And
I click on "Apply Patches"
0s
And
I pick 3 minutes from now as schedule time
0s
And
I click on "Confirm"
0s
Then
I should see a "1 patch update has been scheduled for" text
0s
And
I wait until the package "virgo-dummy_2.0" has been cached on this "deblike_minion"
0s
And
I wait for "virgo-dummy-2.0" to be installed on "deblike_minion"
0s
@deblike_minion
@scope_deblike
@scope_content_staging
Scenario: Cleanup: remove virgo-dummy and orion-dummy packages from Debian-like minion
And
I remove package "orion-dummy" from this "deblike_minion"
00:00:01.055
And
I remove package "virgo-dummy" from this "deblike_minion"
00:00:00.360
And
I disable repository "test_repo_deb_pool" on this "deblike_minion"
00:00:00.217
And
I run "apt update" on "deblike_minion"
00:00:00.304