@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.260
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.954
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.934
@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.627
When
I follow "Software" in the content area
00:00:00.108
And
I follow "Lock / Unlock"
00:00:00.741
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.088
And
I click on the filter button
00:00:00.870
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.086
And
I click on "Lock"
00:00:00.768
Then
I should see a "Packages has been requested for being locked." text
00:00:00.091
When
I wait until event "Lock packages scheduled" is completed
00:00:22.349
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.209
When
I follow "Software" in the content area
00:00:00.089
And
I follow "Lock / Unlock"
00:00:00.599
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.039
@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.594
When
I follow "Software" in the content area
00:00:00.094
And
I follow "Lock / Unlock"
00:00:00.623
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.034
And
I follow "Install"
00:00:00.545
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.101
And
I click on the filter button
00:00:00.740
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.089
And
I click on "Install Packages"
00:00:00.792
And
I click on "Confirm"
00:00:01.344
Then
I should see a "1 package install has been scheduled for" text
00:00:00.067
When
I follow "Events"
00:00:00.437
And
I follow "History"
00:00:00.487
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.309
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.091
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.026
And
the action status is "Failed"
00:00:00.081
@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.663
When
I follow "Software" in the content area
00:00:00.108
And
I follow "Lock / Unlock"
00:00:00.614
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.040
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.094
And
I click on the filter button
00:00:00.747
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.033
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.090
When
I wait until event "Lock packages scheduled" is completed
00:00:19.328
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.206
When
I follow "Software" in the content area
00:00:00.099
And
I follow "Lock / Unlock"
00:00:00.716
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.091
And
I click on the filter button
00:00:00.697
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.024
@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.703
When
I follow "Software" in the content area
00:00:00.091
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.080
And
I click on the filter button
00:00:00.712
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.083
And
I click on "Lock"
00:00:00.664
Then
I should see a "Packages has been requested for being locked." text
00:00:00.088
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.014
@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.893
When
I follow "Software" in the content area
00:00:00.098
And
I follow "Lock / Unlock"
00:00:00.745
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.079
And
I click on the filter button
00:00:00.720
And
I store the current last event id for "sle_minion"
00:00:02.138
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.079
And
I click on "Lock"
00:00:00.759
Then
I should see a "Packages has been requested for being locked." text
00:00:00.087
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.016
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:04.310
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.147
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.817
When
I follow "Software" in the content area
00:00:00.079
And
I follow "Lock / Unlock"
00:00:00.564
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.053
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.045
@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.606
When
I follow "Software" in the content area
00:00:00.091
And
I follow "Lock / Unlock"
00:00:00.582
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.039
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.073
And
I click on the filter button
00:00:00.710
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.082
And
I click on "Lock"
00:00:00.659
Then
I should see a "Packages has been requested for being locked." text
00:00:00.087
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.015
When
I follow "Lock / Unlock"
00:00:00.489
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.077
And
I click on the filter button
00:00:00.908
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.082
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.081
And
I click on the filter button
00:00:00.164
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:02.205
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.016
When
I wait until event "Lock packages scheduled" is completed
00:00:23.317
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.073
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.780
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.823
When
I follow "Software" in the content area
00:00:00.103
And
I follow "Lock / Unlock"
00:00:00.733
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.037
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.045
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.083
And
I click on the filter button
00:00:00.721
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.025
@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.632
And
I follow "Software" in the content area
00:00:00.088
And
I follow "Lock / Unlock"
00:00:00.576
When
I click on "Select All"
00:00:00.556
And
I click on "Unlock"
00:00:00.934
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.138
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.048
When
I wait until event "Lock packages scheduled" is completed
00:00:22.226
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.188
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.889
When
I follow "Software" in the content area
00:00:00.093
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.095
And
I click on the filter button
00:00:00.720
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.031
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.080
And
I click on the filter button
00:00:00.171
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.027