@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.967
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:02.221
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.997
@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.725
When
I follow "Software" in the content area
00:00:00.088
And
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.059
And
I click on the filter button
00:00:00.645
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.068
And
I click on "Lock"
00:00:00.705
Then
I should see a "Packages has been requested for being locked." text
00:00:00.077
When
I wait until event "Lock packages scheduled" is completed
00:00:18.968
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.158
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.593
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.826
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.531
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.024
And
I follow "Install"
00:00:00.485
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.652
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.071
And
I click on "Install Packages"
00:00:00.601
And
I click on "Confirm"
00:00:00.678
Then
I should see a "1 package install has been scheduled for" text
00:00:00.062
When
I follow "Events"
00:00:00.394
And
I follow "History"
00:00:00.390
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:22.951
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.017
And
the action status is "Failed"
00:00:00.077
@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.753
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.525
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.024
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.639
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.019
And
I click on "Unlock"
00:00:00.810
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.079
When
I wait until event "Lock packages scheduled" is completed
00:00:18.929
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.213
When
I follow "Software" in the content area
00:00:00.080
And
I follow "Lock / Unlock"
00:00:00.657
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.665
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.023
@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.770
When
I follow "Software" in the content area
00:00:00.063
And
I follow "Lock / Unlock"
00:00:00.447
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.622
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.073
And
I click on "Lock"
00:00:00.539
Then
I should see a "Packages has been requested for being locked." text
00:00:00.086
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:03.419
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.553
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.649
And
I store the current last event id for "sle_minion"
00:00:02.353
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.067
And
I click on "Lock"
00:00:00.633
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.013
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:04.684
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.222
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.850
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Lock / Unlock"
00:00:00.755
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.023
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:02.084
When
I follow "Software" in the content area
00:00:00.082
And
I follow "Lock / Unlock"
00:00:00.546
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.024
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.035
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.608
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.056
And
I click on "Lock"
00:00:00.589
Then
I should see a "Packages has been requested for being locked." text
00:00:00.080
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.534
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.057
And
I click on the filter button
00:00:00.777
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.060
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.059
And
I click on the filter button
00:00:00.141
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.022
And
I click on "Unlock"
00:00:01.076
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.083
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.961
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.151
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.811
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.814
When
I follow "Software" in the content area
00:00:00.086
And
I follow "Lock / Unlock"
00:00:00.565
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.029
And
package "orion-dummy-1.1-1.1" is reported as locked
00:00:00.043
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.806
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.021
@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.754
And
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.578
When
I click on "Select All"
00:00:00.645
And
I click on "Unlock"
00:00:01.023
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.134
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.047
When
I wait until event "Lock packages scheduled" is completed
00:00:22.112
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.142
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.804
When
I follow "Software" in the content area
00:00:00.076
And
I follow "Lock / Unlock"
00:00:00.545
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.074
And
I click on the filter button
00:00:00.656
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.060
And
I click on the filter button
00:00:00.144
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.023