@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.325
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.969
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.869
@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:02.007
When
I follow "Software" in the content area
00:00:00.079
And
I follow "Lock / Unlock"
00:00:00.536
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.057
And
I click on the filter button
00:00:00.650
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.066
And
I click on "Lock"
00:00:00.679
Then
I should see a "Packages has been requested for being locked." text
00:00:00.077
When
I wait until event "Lock packages scheduled" is completed
00:00:18.933
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.067
When
I follow "Software" in the content area
00:00:00.058
And
I follow "Lock / Unlock"
00:00:01.707
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.028
@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.292
When
I follow "Software" in the content area
00:00:00.067
And
I follow "Lock / Unlock"
00:00:00.518
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.021
And
I follow "Install"
00:00:00.606
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.062
And
I click on the filter button
00:00:00.614
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.064
And
I click on "Install Packages"
00:00:00.606
And
I click on "Confirm"
00:00:00.669
Then
I should see a "1 package install has been scheduled for" text
00:00:00.062
When
I follow "Events"
00:00:00.354
And
I follow "History"
00:00:00.384
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:22.938
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.060
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.017
And
the action status is "Failed"
00:00:00.078
@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.864
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.510
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.021
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.054
And
I click on the filter button
00:00:00.631
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.017
And
I click on "Unlock"
00:00:00.616
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.088
When
I wait until event "Lock packages scheduled" is completed
00:00:18.782
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.145
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.581
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.061
And
I click on the filter button
00:00:00.623
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.020
@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.764
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.512
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.054
And
I click on the filter button
00:00:00.614
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.063
And
I click on "Lock"
00:00:00.600
Then
I should see a "Packages has been requested for being locked." text
00:00:00.077
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.011
@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.800
When
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:00.522
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.760
And
I store the current last event id for "sle_minion"
00:00:03.141
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.059
And
I click on "Lock"
00:00:00.598
Then
I should see a "Packages has been requested for being locked." text
00:00:00.076
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.028
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:04.830
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.083
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.804
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.501
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.021
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.032
@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.759
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.865
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.022
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.029
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.050
And
I click on the filter button
00:00:01.493
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.059
And
I click on "Lock"
00:00:00.762
Then
I should see a "Packages has been requested for being locked." text
00:00:00.080
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.011
When
I follow "Lock / Unlock"
00:00:00.528
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.052
And
I click on the filter button
00:00:00.789
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.055
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.052
And
I click on the filter button
00:00:00.129
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.018
And
I click on "Unlock"
00:00:01.114
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.082
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
00:00:00.011
When
I wait until event "Lock packages scheduled" is completed
00:00:21.933
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.110
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.788
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.765
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.615
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.032
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.063
And
I click on the filter button
00:00:00.652
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.016
@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.792
And
I follow "Software" in the content area
00:00:00.074
And
I follow "Lock / Unlock"
00:00:00.506
When
I click on "Select All"
00:00:00.613
And
I click on "Unlock"
00:00:00.965
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.036
When
I wait until event "Lock packages scheduled" is completed
00:00:21.940
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.067
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.740
When
I follow "Software" in the content area
00:00:00.060
And
I follow "Lock / Unlock"
00:00:00.601
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.623
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.014
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.054
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.015