@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.383
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:02.030
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.944
@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.640
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.620
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.934
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:01.946
Then
I should see a "Packages has been requested for being locked." text
00:00:00.084
When
I wait until event "Lock packages scheduled" is completed
00:00:18.913
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.157
When
I follow "Software" in the content area
00:00:00.071
And
I follow "Lock / Unlock"
00:00:00.541
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:01.660
When
I follow "Software" in the content area
00:00:00.060
And
I follow "Lock / Unlock"
00:00:00.591
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.023
And
I follow "Install"
00:00:00.742
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.802
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.063
And
I click on "Install Packages"
00:00:00.608
And
I click on "Confirm"
00:00:01.042
Then
I should see a "1 package install has been scheduled for" text
00:00:00.064
When
I follow "Events"
00:00:00.505
And
I follow "History"
00:00:00.489
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.003
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.016
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.624
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.510
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.020
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.640
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.625
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.082
When
I wait until event "Lock packages scheduled" is completed
00:00:22.162
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.146
When
I follow "Software" in the content area
00:00:00.074
And
I follow "Lock / Unlock"
00:00:00.548
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.650
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.022
@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.576
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.525
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.050
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.062
And
I click on "Lock"
00:00:00.608
Then
I should see a "Packages has been requested for being locked." text
00:00:00.085
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.023
@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.601
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.584
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.054
And
I click on the filter button
00:00:00.651
And
I save the ID of the last event for "sle_minion"
00:00:01.920
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.058
And
I click on "Lock"
00:00:00.680
Then
I should see a "Packages has been requested for being locked." text
00:00:00.080
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.010
When
I wait until the new "Lock packages scheduled" event is completed for "sle_minion"
00:00:07.073
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.086
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.790
When
I follow "Software" in the content area
00:00:00.065
And
I follow "Lock / Unlock"
00:00:00.519
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.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.566
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.519
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.028
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.030
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.068
And
I click on the filter button
00:00:00.652
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.064
And
I click on "Lock"
00:00:00.718
Then
I should see a "Packages has been requested for being locked." text
00:00:00.081
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.616
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.784
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.058
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.054
And
I click on the filter button
00:00:00.130
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:00.971
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.080
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:18.905
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.097
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.810
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.843
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.598
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.033
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.785
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.701
And
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.592
When
I click on "Select All"
00:00:00.627
And
I click on "Unlock"
00:00:00.876
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.034
When
I wait until event "Lock packages scheduled" is completed
00:00:21.864
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.224
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.757
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.530
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.022
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:00.127
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.014