@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.245
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.924
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.886
@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.702
When
I follow "Software" in the content area
00:00:00.089
And
I follow "Lock / Unlock"
00:00:00.575
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.697
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.080
And
I click on "Lock"
00:00:00.663
Then
I should see a "Packages has been requested for being locked." text
00:00:00.093
When
I wait until event "Lock packages scheduled" is completed
00:00:18.859
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.087
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.632
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.036
@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.656
When
I follow "Software" in the content area
00:00:00.071
And
I follow "Lock / Unlock"
00:00:00.554
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.025
And
I follow "Install"
00:00:00.505
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.669
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.062
And
I click on "Install Packages"
00:00:00.613
And
I click on "Confirm"
00:00:00.718
Then
I should see a "1 package install has been scheduled for" text
00:00:00.063
When
I follow "Events"
00:00:00.375
And
I follow "History"
00:00:00.399
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.072
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.072
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.020
And
the action status is "Failed"
00:00:00.079
@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.554
When
I follow "Software" in the content area
00:00:00.074
And
I follow "Lock / Unlock"
00:00:00.578
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.026
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.068
And
I click on the filter button
00:00:00.703
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.025
And
I click on "Unlock"
00:00:00.608
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.083
When
I wait until event "Lock packages scheduled" is completed
00:00:19.013
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.074
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.551
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.060
And
I click on the filter button
00:00:00.691
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.018
@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.566
When
I follow "Software" in the content area
00:00:00.074
And
I follow "Lock / Unlock"
00:00:00.480
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.060
And
I click on the filter button
00:00:00.679
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.078
And
I click on "Lock"
00:00:00.655
Then
I should see a "Packages has been requested for being locked." text
00:00:00.087
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.916
When
I follow "Software" in the content area
00:00:00.075
And
I follow "Lock / Unlock"
00:00:00.572
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.068
And
I click on the filter button
00:00:00.693
And
I store the current last event id for "sle_minion"
00:00:01.964
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.071
And
I click on "Lock"
00:00:00.548
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.012
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:08.122
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.082
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.768
When
I follow "Software" in the content area
00:00:00.085
And
I follow "Lock / Unlock"
00:00:00.562
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.039
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.040
@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.663
When
I follow "Software" in the content area
00:00:00.090
And
I follow "Lock / Unlock"
00:00:00.624
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.027
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.036
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.076
And
I click on the filter button
00:00:00.659
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.080
And
I click on "Lock"
00:00:00.666
Then
I should see a "Packages has been requested for being locked." text
00:00:00.082
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.013
When
I follow "Lock / Unlock"
00:00:00.568
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.672
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.072
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.062
And
I click on the filter button
00:00:00.144
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.025
And
I click on "Unlock"
00:00:01.117
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.090
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
00:00:00.013
When
I wait until event "Lock packages scheduled" is completed
00:00:19.132
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.136
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.806
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.805
When
I follow "Software" in the content area
00:00:00.083
And
I follow "Lock / Unlock"
00:00:00.556
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.033
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.041
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.072
And
I click on the filter button
00:00:00.682
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.835
And
I follow "Software" in the content area
00:00:00.082
And
I follow "Lock / Unlock"
00:00:00.590
When
I click on "Select All"
00:00:00.551
And
I click on "Unlock"
00:00:00.782
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.126
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.046
When
I wait until event "Lock packages scheduled" is completed
00:00:22.015
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.120
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.778
When
I follow "Software" in the content area
00:00:00.074
And
I follow "Lock / Unlock"
00:00:00.486
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.665
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.012
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.065
And
I click on the filter button
00:00:00.151
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.021