@skip_if_github_validation
@sle_minion
@scope_content_staging
Feature: 0057 - Install a package on the SLES minion with staging enabled
File name: min_salt_install_with_staging.feature
Relative path: secondary/min_salt_install_with_staging.feature
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Pre-requisite: install virgo-dummy-1.0 package, make sure orion-dummy is not present
When
I enable repository "test_repo_rpm_pool" on this "sle_minion"
00:00:00.759
And
I remove package "orion-dummy" from this "sle_minion" without error control
00:00:00.837
And
I install package "virgo-dummy-1.0" on this "sle_minion"
00:00:02.006
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Pre-requisite: refresh package list
When
I refresh packages list via spacecmd on "sle_minion"
00:00:09.835
And
I wait until refresh package list on "sle_minion" is finished
00:00:13.055
Then
spacecmd should show packages "virgo-dummy-1.0" installed on "sle_minion"
00:00:07.860
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Pre-requisite: ensure the errata cache is computed before staging tests
When
I follow the left menu "Admin > Task Schedules"
00:00:00.153
And
I follow "errata-cache-default"
00:00:01.260
And
I follow "errata-cache-bunch"
00:00:01.283
Then
I click on "Single Run Schedule"
00:00:01.296
And
I should see a "bunch was scheduled" text
00:00:00.284
Then
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:01.244
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Enable content staging
When
I follow the left menu "Admin > Organizations"
00:00:00.075
And
I follow first "SUSE Test"
00:00:00.306
And
I follow first "Configuration"
00:00:00.289
And
I check "staging_content_enabled"
00:00:00.095
And
I click on "Update Organization"
00:00:00.434
Then
I should see a "was successfully updated." text
00:00:00.061
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Install package in the future and check for staging
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.370
When
I follow "Software" in the content area
00:00:00.078
And
I follow "Packages" in the content area
00:00:00.069
And
I follow "Install" in the content area
00:00:00.071
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.148
And
I click on the filter button
00:00:00.617
And
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:10.012
+ Show Error
+ Screenshot
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[.//td[contains(.,'orion-dummy-1.1-1.1')] and .//td[contains(.,'x86_64')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:1036:in `/^I check row with "([^"]*)" and "([^"]*)" in the list$/' ./features/step_definitions/navigation_steps.rb:1026:in `/^I check row with "([^"]*)" and arch of "([^"]*)"$/' features/secondary/min_salt_install_with_staging.feature:54:in `I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"'
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-1.1" has been cached on this "sle_minion"
0s
And
I wait for "orion-dummy-1.1-1.1" to be installed on "sle_minion"
0s
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Install patch in the future and check for staging
When
I follow "Software" in the content area
00:00:00.084
And
I follow "Patches" in the content area
00:00:00.074
Unable to find css "input[placeholder='Filter by Synopsis: ']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:993:in `/^I enter "([^"]*)" as the filtered synopsis$/' features/secondary/min_salt_install_with_staging.feature:65:in `I enter "virgo" as the filtered synopsis'
And
I click on the filter button
0s
And
I check "virgo-dummy-3456" 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-1.1.noarch" has been cached on this "sle_minion"
0s
And
I wait for "virgo-dummy-2.0-1.1" to be installed on "sle_minion"
0s
@skip_if_github_validation
@sle_minion
@scope_content_staging
Scenario: Cleanup: remove virgo-dummy package from SLES minion
When
I follow "Software" in the content area
00:00:00.070
And
I follow "List / Remove"
00:00:00.869
And
I enter "orion-dummy" as the filtered package name
00:00:00.139
And
I click on the filter button
00:00:00.836
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[.//td[contains(.,'orion-dummy')] and .//td[contains(.,'x86_64')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:1036:in `/^I check row with "([^"]*)" and "([^"]*)" in the list$/' ./features/step_definitions/navigation_steps.rb:1026:in `/^I check row with "([^"]*)" and arch of "([^"]*)"$/' features/secondary/min_salt_install_with_staging.feature:80:in `I check row with "orion-dummy" and arch of "sle_minion"'
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
And
I disable repository "test_repo_rpm_pool" on this "sle_minion"
0s