@scope_retracted_patches
Feature: 0069 - Retracted patches
File name: min_retracted_patches.feature
Relative path: secondary/min_retracted_patches.feature
@scope_retracted_patches
Scenario: Installed retracted package should show icon in the system packages list
When
I install package "rute-dummy=2.1-1.1" on this "sle_minion"
00:00:03.184
And
I refresh packages list via spacecmd on "sle_minion"
00:00:09.167
And
I wait until refresh package list on "sle_minion" is finished
00:00:14.090
And
I am on the "Software" page of this "sle_minion"
00:00:01.699
And
I follow "Packages"
00:00:00.467
And
I follow "List / Remove"
00:00:01.045
And
I enter "rute-dummy" as the filtered package name
00:00:00.060
And
I click on the filter button until page does contain "rute-dummy" text
00:02:42.253
Then
the table row for "rute-dummy-2.1-1.1" should contain "retracted" icon
00:00:00.020
When
I remove package "rute-dummy" from this "sle_minion"
00:00:02.165
And
I refresh packages list via spacecmd on "sle_minion"
00:00:07.724
And
I wait until package "rute-dummy" is removed from "sle_minion" via spacecmd
00:00:10.328
@scope_retracted_patches
Scenario: Retracted package should not be available for installation
When
I am on the "Software" page of this "sle_minion"
00:00:01.674
And
I follow "Packages"
00:00:00.462
And
I follow "Install"
00:00:00.562
And
I enter "rute-dummy" as the filtered package name
00:00:00.052
And
I click on the filter button until page does contain "rute-dummy" text
00:04:10.000
+ Show Error
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:955:in `/^I click on the filter button until page does contain "([^"]*)" text$/' features/secondary/min_retracted_patches.feature:30:in `I click on the filter button until page does contain "rute-dummy" text'
Then
I should see a "rute-dummy-2.0-1.2" text
0s
And
I should not see a "rute-dummy-2.1-1.1" text
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@scope_retracted_patches
Scenario: Retracted package should not be available for upgrade
When
I install old package "rute-dummy=2.0-1.2" on this "sle_minion"
00:00:02.537
And
I refresh packages list via spacecmd on "sle_minion"
00:00:07.554
And
I wait until refresh package list on "sle_minion" is finished
00:00:13.634
And
I am on the "Software" page of this "sle_minion"
00:00:11.334
+ Show Error
+ Show Info
+ Screenshot
Unable to find link "Software" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:193: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/step_definitions/navigation_steps.rb:525:in `/^I am on the "([^"]*)" page of this "([^"]*)"$/' features/secondary/min_retracted_patches.feature:38:in `I am on the "Software" page of this "sle_minion"'
Requested /rhn/systems/details/Overview.do?sid=1000010020, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010020&request_method=GET
And
I follow "Packages"
0s
And
I follow "Upgrade"
0s
Then
I should not see a "rute-dummy-2.1-1.1" text
0s
When
I remove package "rute-dummy" from this "sle_minion"
0s
And
I refresh packages list via spacecmd on "sle_minion"
0s
And
I wait until package "rute-dummy" is removed from "sle_minion" via spacecmd
0s
@scope_retracted_patches
Scenario: Retracted patch should not affect any system
When
I install package "rute-dummy=2.0-1.2" on this "sle_minion"
00:00:01.339
And
I refresh packages list via spacecmd on "sle_minion"
00:00:08.329
And
I wait until refresh package list on "sle_minion" is finished
00:00:13.144
And
I follow the left menu "Software > Channel List > All"
00:00:00.207
And
I follow "Show All Child Channels"
00:00:00.065
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.582
And
I follow "Patches" in the content area
00:00:00.072
And
I follow "rute-dummy-0817"
00:00:00.586
And
I follow "Affected Systems"
00:00:00.353
Then
I should see a "No systems." text
00:00:00.056
When
I remove package "rute-dummy" from this "sle_minion"
00:00:02.154
And
I refresh packages list via spacecmd on "sle_minion"
00:00:07.884
And
I wait until package "rute-dummy" is removed from "sle_minion" via spacecmd
00:00:09.614
@scope_retracted_patches
Scenario: Target systems for stable packages should not be empty
When
I follow the left menu "Software > Channel List > All"
00:00:00.193
And
I follow "Show All Child Channels"
00:00:00.063
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.571
And
I follow "Packages" in the content area
00:00:00.065
And
I follow "rute-dummy-2.0-1.2.x86_64"
00:00:00.567
And
I follow "Target Systems"
00:00:00.622
And
I refresh page until I see "sle_minion" hostname as text
00:00:00.138
@scope_retracted_patches
Scenario: Target systems for retracted packages should be empty
When
I follow the left menu "Software > Channel List > All"
00:00:00.137
And
I follow "Show All Child Channels"
00:00:00.070
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.574
And
I follow "Packages" in the content area
00:00:00.065
And
I follow "rute-dummy-2.1-1.1.x86_64"
00:00:00.533
And
I follow "Target Systems"
00:00:00.365
Then
I should not see "sle_minion" hostname
00:00:00.058
When
I follow the left menu "Patches > Patch List > All"
00:00:00.200
And
I enter "dummy" as the filtered synopsis
00:00:00.049
And
I click on the filter button
00:00:00.657
And
I follow "rute-dummy-0815"
00:00:00.450
Then
I should see a "Status: Retracted" text
00:00:00.061
When
I go back
00:00:00.433
And
I enter "dummy" as the filtered synopsis
00:00:00.051
And
I click on the filter button
00:00:00.837
And
I follow "rute-dummy-0816"
00:00:00.532
Then
I should see a "Status: Stable" text
00:00:00.064
When
I go back
00:00:00.457
And
I enter "dummy" as the filtered synopsis
00:00:00.045
And
I click on the filter button
00:00:00.655
And
I follow "rute-dummy-0817"
00:00:00.448
Then
I should see a "Status: Retracted" text
00:00:00.065
When
I follow the left menu "Patches > Patch List > All"
00:00:00.081
And
I enter "dummy" as the filtered synopsis
00:00:00.039
And
I click on the filter button
00:00:00.630
Then
the table row for "rute-dummy-0815" should contain "retracted" icon
00:00:00.020
And
the table row for "rute-dummy-0816" should not contain "retracted" icon
00:00:00.014
And
the table row for "rute-dummy-0817" should contain "retracted" icon
00:00:00.017
@scope_retracted_patches
Scenario: Retracted patches in the channel patches list
When
I follow the left menu "Software > Channel List > All"
00:00:00.188
And
I follow "Show All Child Channels"
00:00:00.055
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.736
And
I follow "Patches" in the content area
00:00:00.065
Then
the table row for "rute-dummy-0815" should contain "retracted" icon
00:00:00.015
And
the table row for "rute-dummy-0816" should not contain "retracted" icon
00:00:00.010
And
the table row for "rute-dummy-0817" should contain "retracted" icon
00:00:00.013
@scope_retracted_patches
Scenario: Retracted packages in the channel packages list
When
I follow the left menu "Software > Channel List > All"
00:00:00.067
And
I follow "Show All Child Channels"
00:00:00.044
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.582
And
I follow "Packages" in the content area
00:00:00.068
Then
the table row for "rute-dummy-2.0-1.1.x86_64" should contain "retracted" icon
00:00:00.018
Then
the table row for "rute-dummy-2.0-1.2.x86_64" should not contain "retracted" icon
00:00:00.013
Then
the table row for "rute-dummy-2.1-1.1.x86_64" should contain "retracted" icon
00:00:00.017
@scope_retracted_patches
Scenario: SSM: Retracted package should not be available for installation
When
I follow the left menu "Systems > System List > All"
00:00:00.191
And
I click on the clear SSM button
00:00:00.054
And
I check the "sle_minion" client
00:00:00.460
And
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.498
And
I follow "Packages" in the content area
00:00:00.059
And
I follow "Install"
00:00:00.482
And
I follow "Fake-RPM-SUSE-Channel"
00:00:00.357
Then
I should see a "rute-dummy-2.0-1.2" text
00:00:00.088
And
I should not see a "rute-dummy-2.1-1.1" text
00:00:00.082
And
I click on the clear SSM button
00:00:00.047