@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.083
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:01.771
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.838
@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.664
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.703
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.054
And
I click on the filter button
00:00:00.881
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:01.090
Then
I should see a "Packages has been requested for being locked." text
00:00:00.076
When
I wait until event "Lock packages scheduled" is completed
00:00:22.559
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.073
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.636
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.587
When
I follow "Software" in the content area
00:00:00.058
And
I follow "Lock / Unlock"
00:00:00.556
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.026
And
I follow "Install"
00:00:00.574
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.768
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.061
And
I click on "Install Packages"
00:00:00.720
And
I click on "Confirm"
00:00:00.800
Then
I should see a "1 package install has been scheduled for" text
00:00:00.056
When
I follow "Events"
00:00:00.479
And
I follow "History"
00:00:00.476
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
00:00:22.986
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
00:00:00.058
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.016
And
the action status is "Failed"
00:00:00.074
@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.550
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.636
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.027
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.583
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.026
And
I click on "Unlock"
00:00:00.842
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.077
When
I wait until event "Lock packages scheduled" is completed
00:00:19.196
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.995
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.491
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.599
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
00:00:10.015
@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.645
When
I follow "Software" in the content area
00:00:00.062
And
I follow "Lock / Unlock"
00:00:00.626
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.051
And
I click on the filter button
00:00:00.593
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:00.648
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.637
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.477
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.608
And
I store the current last event id for "sle_minion"
00:00:01.959
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.057
And
I click on "Lock"
00:00:00.570
Then
I should see a "Packages has been requested for being locked." text
00:00:00.074
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
00:00:00.011
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:04.141
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.016
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.710
When
I follow "Software" in the content area
00:00:00.065
And
I follow "Lock / Unlock"
00:00:00.550
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.020
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.031
@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.564
When
I follow "Software" in the content area
00:00:00.059
And
I follow "Lock / Unlock"
00:00:00.624
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.019
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.027
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.595
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.055
And
I click on "Lock"
00:00:00.563
Then
I should see a "Packages has been requested for being locked." text
00:00:00.075
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.010
When
I follow "Lock / Unlock"
00:00:00.509
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.743
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.055
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.052
And
I click on the filter button
00:00:00.129
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.018
And
I click on "Unlock"
00:00:01.169
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.074
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.867
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.012
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.730
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.719
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.496
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.030
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.065
And
I click on the filter button
00:00:00.605
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.020
@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.865
And
I follow "Software" in the content area
00:00:00.055
And
I follow "Lock / Unlock"
00:00:00.559
When
I click on "Select All"
00:00:00.584
And
I click on "Unlock"
00:00:00.805
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.119
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:18.936
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.004
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.734
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.495
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.061
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.010
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.052
And
I click on the filter button
00:00:00.122
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.019