@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.382
And
I install package "milkyway-dummy" on this "sle_minion"
00:00:02.027
And
I remove package "hoag-dummy" from this "sle_minion" without error control
00:00:00.969
@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.870
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.641
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.056
And
I click on the filter button
00:00:00.597
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.062
And
I click on "Lock"
00:00:00.684
Then
I should see a "Packages has been requested for being locked." text
00:00:00.079
When
I wait until event "Lock packages scheduled" is completed
00:00:18.765
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.385
When
I follow "Software" in the content area
00:00:00.070
And
I follow "Lock / Unlock"
00:00:00.872
Then
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.027
@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.654
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.569
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.026
And
I follow "Install"
00:00:00.704
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.634
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.583
And
I click on "Confirm"
00:00:00.657
Then
I should see a "1 package install has been scheduled for" text
00:00:00.061
When
I follow "Events"
00:00:00.358
And
I follow "History"
00:00:00.460
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.057
Then
the package scheduled is "hoag-dummy-1.1-1.1"
00:00:00.020
And
the action status is "Failed"
00:00:00.072
@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.633
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.511
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.029
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.062
And
I click on the filter button
00:00:00.624
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.024
And
I click on "Unlock"
00:00:00.627
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.074
When
I wait until event "Lock packages scheduled" is completed
00:00:18.610
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.288
When
I follow "Software" in the content area
00:00:00.068
And
I follow "Lock / Unlock"
00:00:00.564
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.607
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.658
When
I follow "Software" in the content area
00:00:00.059
And
I follow "Lock / Unlock"
00:00:00.499
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.602
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.669
Then
I should see a "Packages has been requested for being locked." text
00:00:00.075
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
00:00:00.010
@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.966
When
I follow "Software" in the content area
00:00:00.059
And
I follow "Lock / Unlock"
00:00:00.713
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.749
And
I store the current last event id for "sle_minion"
00:00:02.223
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.056
And
I click on "Lock"
00:00:00.750
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.010
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
00:00:03.978
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.169
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
00:00:00.895
When
I follow "Software" in the content area
00:00:00.060
And
I follow "Lock / Unlock"
00:00:00.491
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.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.647
When
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.525
And
package "hoag-dummy-1.1-1.1" is reported as locked
00:00:00.022
And
package "milkyway-dummy-2.0-1.1" is reported as locked
00:00:00.028
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
00:00:00.050
And
I click on the filter button
00:00:00.607
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.777
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.010
When
I follow "Lock / Unlock"
00:00:00.692
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
00:00:00.050
And
I click on the filter button
00:00:01.052
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:00.059
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.131
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:00.023
And
I click on "Unlock"
00:00:01.434
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.076
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.786
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:01.209
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
00:00:00.862
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
00:00:00.899
When
I follow "Software" in the content area
00:00:00.072
And
I follow "Lock / Unlock"
00:00:00.655
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.031
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
00:00:00.064
And
I click on the filter button
00:00:00.617
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
00:00:10.019
@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.788
And
I follow "Software" in the content area
00:00:00.061
And
I follow "Lock / Unlock"
00:00:00.649
When
I click on "Select All"
00:00:00.582
And
I click on "Unlock"
00:00:00.847
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.118
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.034
When
I wait until event "Lock packages scheduled" is completed
00:00:18.905
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:01.254
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
00:00:00.879
When
I follow "Software" in the content area
00:00:00.073
And
I follow "Lock / Unlock"
00:00:00.579
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.623
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.052
And
I click on the filter button
00:00:00.131
And
package "orion-dummy-1.1-1.1" is reported as unlocked
00:00:10.023