@skip_if_github_validation
@scope_salt
Feature: 0056 - Install a package and a patch on the SUSE client via Salt through the UI
File name: min_salt_install_package_and_patch.feature
Relative path: secondary/min_salt_install_package_and_patch.feature
@skip_if_github_validation
@scope_salt
Scenario: Pre-requisite: remove andromeda-dummy package from SLE minion
When
I remove package "andromeda-dummy" from this "sle_minion" without error control
00:00:01.758
And
I refresh the metadata for "sle_minion"
00:00:00.868
And
I refresh packages list via spacecmd on "sle_minion"
00:00:08.370
And
I wait until refresh package list on "sle_minion" is finished
00:00:12.830
@skip_if_github_validation
@scope_salt
Scenario: Pre-requisite: refresh package list and check old packages installed on SLE minion
When
I refresh packages list via spacecmd on "sle_minion"
00:00:09.667
And
I wait until refresh package list on "sle_minion" is finished
00:00:13.444
Then
spacecmd should show packages "virgo-dummy-1.0" installed on "sle_minion"
00:00:07.642
And
I wait until package "andromeda-dummy-2.0-1.1" is removed from "sle_minion" via spacecmd
00:00:10.054
@skip_if_github_validation
@scope_salt
Scenario: Pre-requisite: ensure the errata cache is computed before patching Salt minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.215
When
I follow "Software" in the content area
00:00:00.079
And
I follow "List / Remove" in the content area
00:00:00.091
And
I enter "virgo-dummy" as the filtered package name
00:00:00.194
And
I click on the filter button until page does contain "virgo-dummy" text
00:00:11.366
When
I follow the left menu "Admin > Task Schedules"
00:00:00.140
And
I follow "errata-cache-default"
00:00:01.366
And
I follow "errata-cache-bunch"
00:00:01.277
And
I click on "Single Run Schedule"
00:00:01.262
Then
I should see a "bunch was scheduled" text
00:00:00.264
When
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:01.215
@skip_if_github_validation
@scope_salt
Scenario: Install a patch on the SLE minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.661
When
I follow "Software" in the content area
00:00:00.081
And
I follow "Patches" in the content area
00:00:00.078
And
I enter "virgo" as the filtered synopsis
00:00:00.058
And
I click on the filter button
00:00:10.165
And
I check "virgo-dummy-3456" in the list
00:00:00.063
And
I check "allowVendorChange"
00:00:00.079
And
I click on "Apply Patches"
00:00:00.712
And
I click on "Confirm"
00:00:00.845
Then
I should see a "1 patch update has been scheduled for" text
00:00:00.078
When
I wait for "virgo-dummy-2.0-1.1" to be installed on "sle_minion"
00:00:09.070
Then
vendor change should be enabled for package actions on "sle_minion"
00:00:01.040
@skip_if_github_validation
@scope_salt
Scenario: Install a package on the SLE minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.722
When
I follow "Software" in the content area
00:00:00.086
And
I follow "Packages"
00:00:00.526
And
I follow "Install"
00:00:00.963
And
I enter "andromeda" as the filtered package name
00:00:00.097
And
I click on the filter button
00:00:00.751
And
I check "andromeda-dummy-2.0-1.1" in the list
00:00:00.064
And
I click on "Install Packages"
00:00:00.882
And
I click on "Confirm"
00:00:00.778
Then
I should see a "1 package install has been scheduled" text
00:00:00.075
When
I wait for "andromeda-dummy-2.0-1.1" to be installed on "sle_minion"
00:00:08.724
Then
vendor change should be enabled for package actions on "sle_minion"
00:00:00.923
@skip_if_github_validation
@scope_salt
Scenario: Cleanup: remove virgo-dummy package from SLE minion
When
I remove package "virgo-dummy" from this "sle_minion" without error control
00:00:01.740
And
I refresh the metadata for "sle_minion"
00:00:00.878
And
I refresh packages list via spacecmd on "sle_minion"
00:00:07.865
And
I wait until refresh package list on "sle_minion" is finished
00:00:13.285
@skip_if_github_validation
@scope_salt
Scenario: Cleanup: remove andromeda-dummy package from SLE minion
When
I remove package "andromeda-dummy" from this "sle_minion" without error control
00:00:01.965
And
I refresh the metadata for "sle_minion"
00:00:00.846
And
I refresh packages list via spacecmd on "sle_minion"
00:00:08.222
And
I wait until refresh package list on "sle_minion" is finished
00:00:12.763