@skip_if_github_validation
@sle_minion
@scope_salt
Feature: 0060 - Lock packages on SLES salt minion
File name: min_salt_lock_packages.feature
Relative path: secondary/min_salt_lock_packages.feature
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Pre-requisite: install packages needed for locking test
When
I install package "orion-dummy" on this "sle_minion"
00:00:02.467
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:02.093
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.954
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Lock a package on the client
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.675
When
I follow "Software" in the content area
00:00:00.084
And
I follow "Lock / Unlock"
00:00:00.961
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.063
And
I click on the filter button
00:00:00.792
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.073
And
I click on "Lock"
00:00:00.807
Then
I should see a "Packages has been requested for being locked." text
00:00:00.079
When
I wait until event "Lock packages scheduled" is completed
00:00:19.105
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.181
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.678
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.031
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Attempt to install a locked package on the client
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.357
When
I follow "Software" in the content area
00:00:00.070
And
I follow "Lock / Unlock"
00:00:00.602
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.030
And
I follow "Install"
00:00:00.600
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.070
And
I click on the filter button
00:00:00.634
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.096
And
I click on "Install Packages"
00:00:00.725
And
I click on "Confirm"
00:00:00.765
Then
I should see a "1 package install has been scheduled for" text
00:00:00.064
When
I follow "Events"
00:00:00.522
And
I follow "History"
00:00:00.447
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.060
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.066
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.020
And
the action status is "Failed"
00:00:00.079
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Unlock a package on the client
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.830
When
I follow "Software" in the content area
00:00:00.087
And
I follow "Lock / Unlock"
00:00:00.616
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.034
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.065
And
I click on the filter button
00:00:00.637
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.026
And
I click on "Unlock"
00:00:00.716
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.079
When
I wait until event "Lock packages scheduled" is completed
00:00:19.110
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.167
When
I follow "Software" in the content area
00:00:00.076
And
I follow "Lock / Unlock"
00:00:00.590
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.067
And
I click on the filter button
00:00:00.655
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.016
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Schedule a package lock
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.761
When
I follow "Software" in the content area
00:00:00.067
And
I follow "Lock / Unlock"
00:00:00.547
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.056
And
I click on the filter button
00:00:00.646
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.071
And
I click on "Lock"
00:00:00.735
Then
I should see a "Packages has been requested for being locked." text
00:00:00.082
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.012
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Schedule another package lock
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.701
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.662
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.061
And
I click on the filter button
00:00:00.789
And
I save the ID of the last event for "sle_minion"
00:00:02.130
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.063
And
I click on "Lock"
00:00:00.866
Then
I should see a "Packages has been requested for being locked." text
00:00:00.077
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.012
When
I wait until the new "Lock packages scheduled" event is completed for "sle_minion"
00:00:27.642
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.236
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.896
When
I follow "Software" in the content area
00:00:00.066
And
I follow "Lock / Unlock"
00:00:00.609
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.031
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.036
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Mix package locks and unlock events
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.683
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.593
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.024
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.033
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.074
And
I click on the filter button
00:00:00.658
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.071
And
I click on "Lock"
00:00:00.803
Then
I should see a "Packages has been requested for being locked." text
00:00:00.079
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.012
When
I follow "Lock / Unlock"
00:00:00.649
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.056
And
I click on the filter button
00:00:00.638
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.088
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.058
And
I click on the filter button
00:00:00.139
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.026
And
I click on "Unlock"
00:00:01.138
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.085
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
00:00:00.012
When
I wait until event "Lock packages scheduled" is completed
00:00:22.749
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.226
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.798
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.858
When
I follow "Software" in the content area
00:00:00.086
And
I follow "Lock / Unlock"
00:00:00.678
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.030
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.038
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.069
And
I click on the filter button
00:00:00.639
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.022
@skip_if_github_validation
@sle_minion
@scope_salt
Scenario: Mix package locks and unlock events part 2
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.814
And
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.658
When
I click on "Select All"
00:00:00.621
And
I click on "Unlock"
00:00:00.859
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.122
And
only packages "hoag-dummy-1.1-1.1, orion-dummy-1.1-1.1" are reported as pending to be unlocked
00:00:00.041
When
I wait until event "Lock packages scheduled" is completed
00:00:22.374
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.219
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.829
When
I follow "Software" in the content area
00:00:00.081
And
I follow "Lock / Unlock"
00:00:00.692
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.067
And
I click on the filter button
00:00:00.664
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.021
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.057
And
I click on the filter button
00:00:00.134
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.014