@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.816
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.951
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.889
@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.982
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.549
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.053
And
I click on the filter button
00:00:00.764
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.065
And
I click on "Lock"
00:00:00.683
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:46.812
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.035
When
I follow "Software" in the content area
00:00:00.071
And
I follow "Lock / Unlock"
00:00:00.665
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.029
@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:01.906
When
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:01.680
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.023
And
I follow "Install"
00:00:00.832
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.064
And
I click on the filter button
00:00:00.769
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.764
And
I click on "Confirm"
00:00:00.920
Then
I should see a "1 package install has been scheduled for" text
00:00:00.061
When
I follow "Events"
00:00:00.501
And
I follow "History"
00:00:00.424
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.082
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.061
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.016
And
the action status is "Failed"
00:00:00.076
@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:02.396
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.653
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.022
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.053
And
I click on the filter button
00:00:00.797
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.692
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.077
When
I wait until event "Lock packages scheduled" is completed
00:00:19.221
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.042
When
I follow "Software" in the content area
00:00:00.087
And
I follow "Lock / Unlock"
00:00:00.594
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.075
And
I click on the filter button
00:00:00.610
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.013
@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.924
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.573
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.051
And
I click on the filter button
00:00:00.599
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.062
And
I click on "Lock"
00:00:00.689
Then
I should see a "Packages has been requested for being locked." text
00:00:00.076
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.946
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.595
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.057
And
I click on the filter button
00:00:00.610
And
I store the current last event id for "sle_minion"
00:00:04.651
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.056
And
I click on "Lock"
00:00:00.670
Then
I should see a "Packages has been requested for being locked." text
00:00:00.082
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.010
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:05.067
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.009
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.737
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.652
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.034
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.031
@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:02.203
When
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:00.640
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.020
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.028
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.053
And
I click on the filter button
00:00:01.080
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.063
And
I click on "Lock"
00:00:00.862
Then
I should see a "Packages has been requested for being locked." text
00:00:00.077
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.710
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.051
And
I click on the filter button
00:00:00.783
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.062
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.053
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.023
And
I click on "Unlock"
00:00:00.786
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.076
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
00:00:00.010
When
I wait until event "Lock packages scheduled" is completed
00:00:19.484
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.042
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.728
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.723
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.718
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.027
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.030
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.060
And
I click on the filter button
00:00:00.606
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.020
@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.962
And
I follow "Software" in the content area
00:00:00.060
And
I follow "Lock / Unlock"
00:00:00.696
When
I click on "Select All"
00:00:00.709
And
I click on "Unlock"
00:00:01.085
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.117
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:22.527
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.028
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.729
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.596
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.066
And
I click on the filter button
00:00:00.632
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.019
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.146
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.021