@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
@uyuni
@rhlike_minion
@deblike_minion
Feature: 0121 - Channel subscription via SSM
File name: allcli_software_channels.feature
Relative path: secondary/allcli_software_channels.feature
@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
Scenario: Change child channels for SLES minion subscribed to a base channel
When
I follow the left menu "Systems > System List > All"
0s
And
I click on the clear SSM button
0s
And
I check the "sle_minion" client
0s
And
I should see "1" systems selected for SSM
0s
And
I follow the left menu "Systems > System Set Manager > Overview"
0s
And
I follow "channel memberships" in the content area
0s
Then
I should see a "Base Channel" text
0s
And
I should see a "Next" text
0s
When
I select "Fake-Base-Channel-SUSE-like" from drop-down in table line with "SLE-Product-SLES15-SP7-Pool for x86_64"
0s
And
I click on "Next"
0s
Then
I should see a "Child Channels" text
0s
And
I should see a "Fake-Base-Channel-SUSE-like" text
0s
And
I should see a "1 system(s) to subscribe" text
0s
When
I choose radio button "Subscribe" for child channel "Fake-Child-Channel-SUSE-like"
0s
And
I click on "Next"
0s
Then
I should see a "Channel Changes Overview" text
0s
And
I should see a "1 system(s) to subscribe" text
0s
When
I schedule action to 3 minutes from now
0s
And
I click on "Confirm"
0s
And
I remember when I scheduled an action
0s
Then
I wait until I see "Channel Changes Actions" text
0s
And
a table line should contain system "sle_minion", "Scheduled"
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@uyuni
Scenario: Change child channels for openSUSE minion subscribed to a base channel
When
I follow the left menu "Systems > System List > All"
00:00:00.210
And
I click on the clear SSM button
00:00:00.055
And
I check the "sle_minion" client
00:00:00.444
And
I should see "1" systems selected for SSM
00:00:00.100
And
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.482
And
I follow "channel memberships" in the content area
00:00:00.069
Then
I should see a "Base Channel" text
00:00:00.069
And
I should see a "Next" text
00:00:00.064
When
I select "Fake-Base-Channel-SUSE-like" from drop-down in table line with "openSUSE Tumbleweed (x86_64)"
00:04:10.011
+ Show Error
+ Screenshot
Unable to find xpath "//div[contains(@class, 'table-responsive')]//tr[contains(., 'openSUSE Tumbleweed (x86_64)')]//select" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:223:in `/^I select "([^"]*)" from drop-down in table line with "([^"]*)"$/' features/secondary/allcli_software_channels.feature:48:in `I select "Fake-Base-Channel-SUSE-like" from drop-down in table line with "openSUSE Tumbleweed (x86_64)"'
And
I click on "Next"
0s
Then
I should see a "Child Channels" text
0s
And
I should see a "Fake-Base-Channel-SUSE-like" text
0s
And
I should see a "1 system(s) to subscribe" text
0s
When
I choose radio button "Subscribe" for child channel "Fake-Child-Channel-SUSE-like"
0s
And
I click on "Next"
0s
Then
I should see a "Channel Changes Overview" text
0s
And
I should see a "1 system(s) to subscribe" text
0s
When
I schedule action to 3 minutes from now
0s
And
I click on "Confirm"
0s
And
I remember when I scheduled an action
0s
Then
I wait until I see "Channel Changes Actions" text
0s
And
a table line should contain system "sle_minion", "Scheduled"
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
Scenario: Check SLES minion is still subscribed to old channels before channel change completes
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I wait until I do not see "Loading..." text
0s
Then
radio button "SLE-Product-SLES15-SP7-Pool for x86_64" should be checked
0s
And
I wait until I do not see "Loading..." text
0s
And
I should see "SLE15-SP7-Installer-Updates for x86_64" as unchecked
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@uyuni
Scenario: Check openSUSE minion is still subscribed to old channels before channel change completes
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.084
And
I follow "Software Channels" in the content area
00:00:00.070
And
I wait until I do not see "Loading..." text
00:00:00.065
Then
radio button "openSUSE Tumbleweed (x86_64)" should be checked
00:00:00.286
And
I wait until I do not see "Loading..." text
00:00:00.525
And
I should see "Uyuni Client Tools for openSUSE Tumbleweed (x86_64)" as unchecked
00:00:00.019
@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
Scenario: Check via API old channels are still the same on SLES minion before channel change completes
When
I refresh the metadata for "sle_minion"
0s
Then
channel "SLE-Product-SLES15-SP7-Pool for x86_64" should be enabled on "sle_minion"
0s
And
channel "SLE15-SP7-Installer-Updates for x86_64" should be disabled on "sle_minion"
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@uyuni
Scenario: Check via API old channels are still the same on openSUSE minion before channel change completes
When
I refresh the metadata for "sle_minion"
00:00:01.391
Then
channel "openSUSE Tumbleweed (x86_64)" should be enabled on "sle_minion"
00:00:01.942
And
channel "Uyuni Client Tools for openSUSE Tumbleweed (x86_64)" should be disabled on "sle_minion"
00:00:01.985
@scope_changing_software_channels
@scc_credentials
@sle_minion
Scenario: Check channel change has completed for the SLES minion
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.555
When
I wait until event "Subscribe channels scheduled" is completed
00:04:14.660
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:70:in `/^I wait until I see "([^"]*)" (text|regex), refreshing the page$/' ./features/step_definitions/common_steps.rb:157:in `/^I wait (\d+) seconds until the event is picked up and (\d+) seconds until the event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:174:in `/^I wait at most (\d+) seconds until event "([^"]*)" is completed$/' ./features/step_definitions/common_steps.rb:151:in `/^I wait until event "([^"]*)" is completed$/' features/secondary/allcli_software_channels.feature:105:in `I wait until event "Subscribe channels scheduled" is completed'
Then
I should see a "The client completed this action on" text
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
Scenario: Check the SLES minion is subscribed to the new channels
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.939
When
I follow "Software" in the content area
00:00:00.079
And
I follow "Software Channels" in the content area
00:00:00.068
And
I wait until I do not see "Loading..." text
00:00:00.066
Then
radio button "Fake-Base-Channel-SUSE-like" should be checked
00:00:10.009
+ Show Error
+ Screenshot
Fake-Base-Channel-SUSE-like is unchecked (ScriptError) ./features/step_definitions/navigation_steps.rb:1105:in `/^radio button "([^"]*)" should be checked$/' features/secondary/allcli_software_channels.feature:115:in `radio button "Fake-Base-Channel-SUSE-like" should be checked'
And
I wait until I do not see "Loading..." text
0s
And
I should see "Fake-Child-Channel-SUSE-like" as checked
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
Scenario: Check via API the new channels are enabled on the SLES minion
When
I refresh the metadata for "sle_minion"
0s
Then
"2" channels should be enabled on "sle_minion"
0s
And
channel "Fake-Base-Channel-SUSE-like" should be enabled on "sle_minion"
0s
And
channel "Fake-Child-Channel-SUSE-like" should be enabled on "sle_minion"
0s
@scope_changing_software_channels
@scc_credentials
@uyuni
Scenario: Check via API the new channels are enabled on the openSUSE minion
When
I refresh the metadata for "sle_minion"
00:00:01.408
Expected: 2 Actual: 4 (Minitest::Assertion) ./features/step_definitions/api_common.rb:271:in `/^"(\d+)" channels should be enabled on "([^"]*)"$/' features/secondary/allcli_software_channels.feature:130:in `"2" channels should be enabled on "sle_minion"'
And
channel "Fake-Base-Channel-SUSE-like" should be enabled on "sle_minion"
0s
And
channel "Fake-Child-Channel-SUSE-like" should be enabled on "sle_minion"
0s
@scope_changing_software_channels
@scc_credentials
@rhlike_minion
Scenario: System default channel can't be determined on the Red Hat-like minion
When
I follow the left menu "Systems > System List > All"
00:00:00.159
And
I click on the clear SSM button
00:00:00.063
And
I check the "rhlike_minion" client
00:00:00.460
Then
I should see "1" systems selected for SSM
00:00:00.155
When
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.509
And
I follow "channel memberships" in the content area
00:00:00.073
And
I select "System Default Base Channel" from drop-down in table line with "Fake-Base-Channel-RH-like"
00:00:00.277
And
I click on "Next"
00:00:00.062
Then
I should see a "Child Channels" text
00:00:00.303
And
I should see a "Couldn't determine new base channel" text
00:00:00.063
And
I should see a "1 system(s) incompatible" text
00:00:00.063
When
I click on "Next"
00:00:00.062
Then
I should see a "Channel Changes Overview" text
00:00:00.065
And
I should see a "Couldn't determine new base channel" text
00:00:00.065
And
I should see a "1 system(s) incompatible" text
00:00:00.079
When
I click on "Confirm"
00:00:00.061
Then
I should see a "Channel Changes Actions" text
00:00:00.286
And
I should see a "Items 1 - 1 of 1" text
00:00:00.066
And
a table line should contain system "rhlike_minion", "Could not determine system default channel"
00:00:00.021
And
I click on the clear SSM button
00:00:00.049
@scope_changing_software_channels
@scc_credentials
@rhlike_minion
Scenario: Cleanup: make sure the Red Hat-like minion is still unchanged
Given
I am on the Systems overview page of this "rhlike_minion"
00:00:01.604
When
I follow "Software" in the content area
00:00:00.075
And
I follow "Software Channels" in the content area
00:00:00.073
Then
radio button "Fake-Base-Channel-RH-like" should be checked
00:00:00.272
@scope_changing_software_channels
@scc_credentials
@deblike_minion
Scenario: System default channel can't be determined on the Debian-like minion
When
I follow the left menu "Systems > System List > All"
00:00:00.122
And
I click on the clear SSM button
00:00:00.048
And
I check the "deblike_minion" client
00:00:00.453
Then
I should see "1" systems selected for SSM
00:00:00.124
When
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.487
And
I follow "channel memberships" in the content area
00:00:00.066
And
I select "System Default Base Channel" from drop-down in table line with "Fake-Base-Channel-Debian-like"
00:00:00.236
And
I click on "Next"
00:00:00.058
Then
I should see a "Child Channels" text
00:00:00.188
And
I should see a "Couldn't determine new base channel" text
00:00:00.065
And
I should see a "1 system(s) incompatible" text
00:00:00.075
When
I click on "Next"
00:00:00.059
Then
I should see a "Channel Changes Overview" text
00:00:00.063
And
I should see a "Couldn't determine new base channel" text
00:00:00.063
And
I should see a "1 system(s) incompatible" text
00:00:00.070
When
I click on "Confirm"
00:00:00.053
Then
I should see a "Channel Changes Actions" text
00:00:00.290
And
I should see a "Items 1 - 1 of 1" text
00:00:00.066
And
a table line should contain system "deblike_minion", "Could not determine system default channel"
00:00:00.018
And
I click on the clear SSM button
00:00:00.050
@scope_changing_software_channels
@scc_credentials
@deblike_minion
Scenario: Cleanup: make sure the Debian-like minion is still unchanged
Given
I am on the Systems overview page of this "deblike_minion"
00:00:01.585
When
I follow "Software" in the content area
00:00:00.065
And
I follow "Software Channels" in the content area
00:00:00.056
Then
radio button "Fake-Base-Channel-Debian-like" should be checked
00:00:00.210
@scope_changing_software_channels
@scc_credentials
@sle_minion
@susemanager
Scenario: Cleanup: subscribe the SLES minion back to previous channels
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I wait until I do not see "Loading..." text
0s
And
I check radio button "SLE-Product-SLES15-SP7-Pool for x86_64"
0s
And
I wait until I do not see "Loading..." text
0s
And
I include the recommended child channels
0s
And
I check "SLE-Module-DevTools15-SP7-Pool for x86_64"
0s
And
I check "SLE-Module-Containers15-SP7-Pool for x86_64"
0s
And
I check "Fake-RPM-SUSE-Channel"
0s
And
I wait until I do not see "Loading..." text
0s
And
I wait until I see "SLE15-SP7-Installer-Updates for x86_64" text
0s
And
I wait until I do not see "Loading..." text
0s
And
I include the recommended child channels
0s
And
I check "SLE-Module-DevTools15-SP7-Pool for x86_64"
0s
And
I check "Fake-RPM-SUSE-Channel"
0s
And
I click on "Next"
0s
Then
I should see a "Confirm Software Channel Change" text
0s
When
I click on "Confirm"
0s
Then
I should see a "Changing the channels has been scheduled." text
0s
When
I follow "scheduled" in the content area
0s
And
I wait until I see "1 system successfully completed this action." text, refreshing the page
0s
Then
channel "SLE15-SP7-Installer-Updates for x86_64" should be disabled on "sle_minion"
0s
@scope_changing_software_channels
@scc_credentials
@sle_minion
@uyuni
Scenario: Cleanup: subscribe the openSUSE minion back to previous channels
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.690
When
I follow "Software" in the content area
00:00:00.064
And
I follow "Software Channels" in the content area
00:00:00.058
And
I wait until I do not see "Loading..." text
00:00:00.066
Warning: Radio button 'openSUSE Tumbleweed (x86_64)' is already checked
And
I wait until I do not see "Loading..." text
00:00:00.512
And
I check "Uyuni Client Tools for openSUSE Tumbleweed (x86_64) (Development)"
00:00:00.040
And
I check "Fake-RPM-SUSE-Channel"
00:00:00.039
And
I click on "Next"
00:00:00.058
Then
I should see a "Confirm Software Channel Change" text
00:00:00.065
When
I click on "Confirm"
00:00:00.071
Then
I should see a "Changing the channels has been scheduled." text
00:00:00.422
When
I follow "scheduled" in the content area
00:00:00.076
And
I wait until I see "1 system successfully completed this action." text, refreshing the page
00:00:29.986
Then
channel "Uyuni Client Tools for openSUSE Tumbleweed (x86_64)" should be disabled on "sle_minion"
00:00:01.984