@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
FAIL: zypper --non-interactive install -y orion-dummy returned status code = 104. Output: Loading repository data... Reading installed packages... 'orion-dummy' not found in package names. Trying capabilities. (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/command_steps.rb:1013:in `/^I install packages? "([^"]*)" on this "([^"]*)"((?: without error control)?)$/' features/secondary/min_salt_lock_packages.feature:18:in `I install package "orion-dummy" on this "sle_minion"'
And
I install package "milkyway-dummy" on this "sle_minion"
0s
And
I remove package "hoag-dummy" from this "sle_minion" without error control
0s
@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.933
When
I follow "Software" in the content area
00:00:00.085
And
I follow "Lock / Unlock"
00:00:00.619
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.658
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:10.003
+ Show Error
+ Screenshot
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[.//td[contains(.,'hoag-dummy-1.1-1.1')] and .//td[contains(.,'x86_64')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:1036:in `/^I check row with "([^"]*)" and "([^"]*)" in the list$/' ./features/step_definitions/navigation_steps.rb:1026:in `/^I check row with "([^"]*)" and arch of "([^"]*)"$/' features/secondary/min_salt_lock_packages.feature:28:in `I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"'
And
I click on "Lock"
0s
Then
I should see a "Packages has been requested for being locked." text
0s
When
I wait until event "Lock packages scheduled" is completed
0s
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Lock / Unlock"
0s
Then
package "hoag-dummy-1.1-1.1" is reported as locked
0s
@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.976
When
I follow "Software" in the content area
00:00:00.067
And
I follow "Lock / Unlock"
00:00:01.351
Unable to find xpath "(//a[text()='hoag-dummy-1.1-1.1'])[1]" (Capybara::ElementNotFound) ./features/step_definitions/lock_packages_on_client.rb:23:in `/^package "(.*?)" is reported as locked$/' features/secondary/min_salt_lock_packages.feature:41:in `package "hoag-dummy-1.1-1.1" is reported as locked'
And
I follow "Install"
0s
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
0s
And
I click on "Install Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "1 package install has been scheduled for" text
0s
When
I follow "Events"
0s
And
I follow "History"
0s
And
I wait until I see the event "Package Install/Upgrade scheduled" completed during last minute, refreshing the page
0s
And
I follow the event "Package Install/Upgrade scheduled" completed during last minute
0s
Then
the package scheduled is "hoag-dummy-1.1-1.1"
0s
And
the action status is "Failed"
0s
@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.898
When
I follow "Software" in the content area
00:00:00.069
And
I follow "Lock / Unlock"
00:00:00.548
Unable to find xpath "(//a[text()='hoag-dummy-1.1-1.1'])[1]" (Capybara::ElementNotFound) ./features/step_definitions/lock_packages_on_client.rb:23:in `/^package "(.*?)" is reported as locked$/' features/secondary/min_salt_lock_packages.feature:60:in `package "hoag-dummy-1.1-1.1" is reported as locked'
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
0s
And
I click on "Unlock"
0s
Then
I should see a "Packages has been requested for being unlocked." text
0s
When
I wait until event "Lock packages scheduled" is completed
0s
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Lock / Unlock"
0s
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
0s
@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.871
When
I follow "Software" in the content area
00:00:00.070
And
I follow "Lock / Unlock"
00:00:00.598
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.641
And
I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
00:00:10.006
+ Show Error
+ Screenshot
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[.//td[contains(.,'hoag-dummy-1.1-1.1')] and .//td[contains(.,'x86_64')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:1036:in `/^I check row with "([^"]*)" and "([^"]*)" in the list$/' ./features/step_definitions/navigation_steps.rb:1026:in `/^I check row with "([^"]*)" and arch of "([^"]*)"$/' features/secondary/min_salt_lock_packages.feature:80:in `I check row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"'
And
I click on "Lock"
0s
Then
I should see a "Packages has been requested for being locked." text
0s
And
package "hoag-dummy-1.1-1.1" is reported as pending to be locked
0s
@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.951
When
I follow "Software" in the content area
00:00:00.081
And
I follow "Lock / Unlock"
00:00:00.627
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.636
And
I store the current last event id for "sle_minion"
00:00:02.626
When
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
00:00:10.011
+ Show Error
+ Screenshot
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[.//td[contains(.,'milkyway-dummy-2.0-1.1')] and .//td[contains(.,'x86_64')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:1036:in `/^I check row with "([^"]*)" and "([^"]*)" in the list$/' ./features/step_definitions/navigation_steps.rb:1026:in `/^I check row with "([^"]*)" and arch of "([^"]*)"$/' features/secondary/min_salt_lock_packages.feature:92:in `I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"'
And
I click on "Lock"
0s
Then
I should see a "Packages has been requested for being locked." text
0s
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be locked
0s
When
I wait until a new "Lock packages scheduled" event is completed for "sle_minion"
0s
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
0s
And
"milkyway-dummy-2.0-1.1" should be locked on "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Lock / Unlock"
0s
Then
package "hoag-dummy-1.1-1.1" is reported as locked
0s
And
package "milkyway-dummy-2.0-1.1" is reported as locked
0s
@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.953
When
I follow "Software" in the content area
00:00:00.085
And
I follow "Lock / Unlock"
00:00:00.698
Unable to find xpath "(//a[text()='hoag-dummy-1.1-1.1'])[1]" (Capybara::ElementNotFound) ./features/step_definitions/lock_packages_on_client.rb:23:in `/^package "(.*?)" is reported as locked$/' features/secondary/min_salt_lock_packages.feature:108:in `package "hoag-dummy-1.1-1.1" is reported as locked'
And
package "milkyway-dummy-2.0-1.1" is reported as locked
0s
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
When
I check row with "orion-dummy-1.1-1.1" and arch of "sle_minion"
0s
And
I click on "Lock"
0s
Then
I should see a "Packages has been requested for being locked." text
0s
And
package "orion-dummy-1.1-1.1" is reported as pending to be locked
0s
When
I follow "Lock / Unlock"
0s
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
I uncheck row with "hoag-dummy-1.1-1.1" and arch of "sle_minion"
0s
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
I check row with "milkyway-dummy-2.0-1.1" and arch of "sle_minion"
0s
And
I click on "Unlock"
0s
Then
I should see a "Packages has been requested for being unlocked." text
0s
And
package "milkyway-dummy-2.0-1.1" is reported as pending to be unlocked
0s
When
I wait until event "Lock packages scheduled" is completed
0s
Then
"hoag-dummy-1.1-1.1" should be locked on "sle_minion"
0s
And
"milkyway-dummy-2.0-1.1" should be unlocked on "sle_minion"
0s
And
"orion-dummy-1.1-1.1" should be locked on "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Lock / Unlock"
0s
Then
package "hoag-dummy-1.1-1.1" is reported as locked
0s
And
package "orion-dummy-1.1-1.1" is reported as locked
0s
And
I enter "milkyway-dummy-2.0-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
package "milkyway-dummy-2.0-1.1" is reported as unlocked
0s
@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.965
And
I follow "Software" in the content area
00:00:00.067
And
I follow "Lock / Unlock"
00:00:00.526
When
I click on "Select All"
00:00:00.631
And
I click on "Unlock"
00:00:01.003
Then
I should see a "Packages has been requested for being unlocked." text
00:00:00.116
And
only packages "hoag-dummy-1.1-1.1, orion-dummy-1.1-1.1" are reported as pending to be unlocked
00:00:10.006
+ Show Error
+ Screenshot
Unable to find xpath "//td[a[text()='hoag-dummy-1.1-1.1'] and i[@class='fa fa-clock-o'] and span[@class='label label-info' and contains(text(), 'Unlocking...')]]" (Capybara::ElementNotFound) ./features/step_definitions/lock_packages_on_client.rb:70:in `block (2 levels) in (top (required))' ./features/step_definitions/lock_packages_on_client.rb:66:in `each' ./features/step_definitions/lock_packages_on_client.rb:66:in `/^only packages "(.*?)" are reported as pending to be unlocked$/' features/secondary/min_salt_lock_packages.feature:145:in `only packages "hoag-dummy-1.1-1.1, orion-dummy-1.1-1.1" are reported as pending to be unlocked'
When
I wait until event "Lock packages scheduled" is completed
0s
Then
"hoag-dummy-1.1-1.1" should be unlocked on "sle_minion"
0s
And
"orion-dummy-1.1-1.1" should be unlocked on "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Lock / Unlock"
0s
And
I enter "hoag-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
Then
package "hoag-dummy-1.1-1.1" is reported as unlocked
0s
And
I enter "orion-dummy-1.1-1.1" as the filtered package name
0s
And
I click on the filter button
0s
And
package "orion-dummy-1.1-1.1" is reported as unlocked
0s