@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.309
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.907
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.916
@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.621
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.521
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.059
And
I click on the filter button
00:00:00.610
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.591
Then
I should see a "Packages has been requested for being locked." text
00:00:00.080
When
I wait until event "Lock packages scheduled" is completed
00:00:18.953
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.075
When
I follow "Software" in the content area
00:00:00.059
And
I follow "Lock / Unlock"
00:00:00.521
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.026
@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.815
When
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:00.566
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.021
And
I follow "Install"
00:00:00.577
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.636
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.066
And
I click on "Install Packages"
00:00:00.589
And
I click on "Confirm"
00:00:00.733
Then
I should see a "1 package install has been scheduled for" text
00:00:00.061
When
I follow "Events"
00:00:00.416
And
I follow "History"
00:00:00.469
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:23.018
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.062
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.019
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.701
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.766
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.021
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.763
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.020
And
I click on "Unlock"
00:00:00.854
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.075
When
I wait until event "Lock packages scheduled" is completed
00:00:18.883
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.084
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.502
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.622
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.011
@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.531
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.505
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.604
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.064
And
I click on "Lock"
00:00:00.580
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.012
@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.639
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.562
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.613
And
I save the ID of the last event for "sle_minion"
00:00:01.957
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.061
And
I click on "Lock"
00:00:00.595
Then
I should see a "Packages has been requested for being locked." text
00:00:00.079
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.355
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.103
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.775
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.550
Then
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.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.648
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.507
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.029
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.051
And
I click on the filter button
00:00:00.600
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.060
And
I click on "Lock"
00:00:00.576
Then
I should see a "Packages has been requested for being locked." text
00:00:00.079
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.527
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.606
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.055
And
I click on the filter button
00:00:00.127
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.019
And
I click on "Unlock"
00:00:01.183
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.078
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
00:00:00.011
When
I wait until event "Lock packages scheduled" is completed
00:00:18.792
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.137
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.775
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.738
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.498
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.032
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.627
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.024
@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.559
And
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:00.502
When
I click on "Select All"
00:00:00.475
And
I click on "Unlock"
00:00:00.838
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.135
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:21.880
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.091
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.765
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.610
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.618
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.021
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.055
And
I click on the filter button
00:00:00.132
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.041