@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.141
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.894
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.903
@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.706
When
I follow "Software" in the content area
00:00:00.083
And
I follow "Lock / Unlock"
00:00:00.585
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.058
And
I click on the filter button
00:00:00.766
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.067
And
I click on "Lock"
00:00:01.388
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:22.883
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.091
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.665
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:01.901
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.594
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.025
And
I follow "Install"
00:00:00.735
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.783
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.069
And
I click on "Install Packages"
00:00:00.767
And
I click on "Confirm"
00:00:00.844
Then
I should see a "1 package install has been scheduled for" text
00:00:00.061
When
I follow "Events"
00:00:00.518
And
I follow "History"
00:00:00.544
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.146
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.063
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.017
And
the action status is "Failed"
00:00:00.071
@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.751
When
I follow "Software" in the content area
00:00:00.079
And
I follow "Lock / Unlock"
00:00:00.674
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.031
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.055
And
I click on the filter button
00:00:00.775
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.036
And
I click on "Unlock"
00:00:00.798
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.084
When
I wait until event "Lock packages scheduled" is completed
00:00:19.144
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.101
When
I follow "Software" in the content area
00:00:00.071
And
I follow "Lock / Unlock"
00:00:00.668
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.632
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.025
@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.697
When
I follow "Software" in the content area
00:00:00.067
And
I follow "Lock / Unlock"
00:00:00.592
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.055
And
I click on the filter button
00:00:00.626
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.067
And
I click on "Lock"
00:00:00.684
Then
I should see a "Packages has been requested for being locked." text
00:00:00.078
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.762
When
I follow "Software" in the content area
00:00:00.066
And
I follow "Lock / Unlock"
00:00:00.598
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.066
And
I click on the filter button
00:00:00.646
And
I save the ID of the last event for "sle_minion"
00:00:02.150
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.062
And
I click on "Lock"
00:00:00.774
Then
I should see a "Packages has been requested for being locked." text
00:00:00.085
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.011
When
I wait until the new "Lock packages scheduled" event is completed for "sle_minion"
00:00:06.281
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.059
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.756
When
I follow "Software" in the content area
00:00:00.066
And
I follow "Lock / Unlock"
00:00:00.597
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.026
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.035
@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.920
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.655
And
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.031
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.058
And
I click on the filter button
00:00:00.782
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.061
And
I click on "Lock"
00:00:00.775
Then
I should see a "Packages has been requested for being locked." text
00:00:00.078
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.870
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.073
And
I click on the filter button
00:00:00.917
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.057
And
I click on the filter button
00:00:00.132
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.020
And
I click on "Unlock"
00:00:01.469
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.081
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:19.199
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.100
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.791
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.809
When
I follow "Software" in the content area
00:00:00.075
And
I follow "Lock / Unlock"
00:00:00.659
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.031
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.036
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.055
And
I click on the filter button
00:00:00.635
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.014
@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.673
And
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.596
When
I click on "Select All"
00:00:00.599
And
I click on "Unlock"
00:00:00.976
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.118
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.037
When
I wait until event "Lock packages scheduled" is completed
00:00:22.114
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.104
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.772
When
I follow "Software" in the content area
00:00:00.071
And
I follow "Lock / Unlock"
00:00:00.609
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.621
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.023
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.135
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.039