@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
@rhlike_minion
@skip_if_containerized_server
Feature: 0118 - Manage a group of systems and the Systems Set Manager
File name: allcli_system_group.feature
Relative path: secondary/allcli_system_group.feature
@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
Scenario: Pre-requisite: install dummy packages to allow patching
When
I enable repository "test_repo_rpm_pool" on this "sle_minion"
00:00:00.822
And
I refresh the metadata for "sle_minion"
00:00:00.961
And
I install old package "andromeda-dummy-1.0" on this "sle_minion"
00:00:02.180
And
I install old package "virgo-dummy-1.0" on this "sle_minion"
00:00:02.088
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Pre-requisite: ensure that fake patches are available
When
I follow the left menu "Admin > Task Schedules"
00:00:00.156
And
I follow "errata-cache-default"
00:00:01.197
And
I follow "errata-cache-bunch"
00:00:00.389
And
I click on "Single Run Schedule"
00:00:00.702
Then
I should see a "bunch was scheduled" text
00:00:00.267
And
I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
00:00:01.074
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Pre-requisite: ensure that fake channels were created
When
I follow the left menu "Patches > Patch List > Relevant"
00:00:00.236
xpath: //div[@class="table-responsive"]//tr/td/a not found (ScriptError) ./features/step_definitions/navigation_steps.rb:670:in `/^I should see an update in the list$/' features/secondary/allcli_system_group.feature:29:in `I should see an update in the list'
When
I wait until I see "andromeda-dummy" text, refreshing the page
0s
Then
I should see a "andromeda-dummy-6789" link
0s
When
I enter "virgo-dummy" as the filtered synopsis
0s
And
I click on the filter button until page does contain "virgo-dummy-3456" text
0s
Then
I should see a "virgo-dummy-3456" link
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Fail to create a group with only its name
When
I follow the left menu "Systems > System Groups"
00:00:00.130
And
I follow "Create Group"
00:00:00.217
And
I enter "new-systems-group" as "name"
00:00:00.061
And
I click on "Create Group"
00:00:00.292
Then
I should see a "Both name and description are required for System Groups." text
00:00:00.059
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Fail to create a group with only its description
When
I follow the left menu "Systems > System Groups"
00:00:00.070
And
I follow "Create Group"
00:00:00.289
And
I enter "My new group" as "description"
00:00:00.057
And
I click on "Create Group"
00:00:00.275
Then
I should see a "Both name and description are required for System Groups." text
00:00:00.060
When
I follow the left menu "Systems > System Groups"
00:00:00.061
And
I follow "Create Group"
00:00:00.203
And
I enter "new-systems-group" as "name"
00:00:00.058
And
I enter "My new group" as "description"
00:00:00.052
And
I click on "Create Group"
00:00:00.400
Then
I should see a "System group new-systems-group created." text
00:00:00.066
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Add the SLE minion to the group and to SSM
When
I follow the left menu "Systems > System Groups"
00:00:00.061
And
I follow "new-systems-group"
00:00:00.307
And
I follow "Target Systems"
00:00:00.466
And
I check the "sle_minion" client
00:00:00.060
And
I click on "Add Systems"
00:00:01.374
Then
I should see a "1 systems were added to new-systems-group server group." text
00:00:00.081
When
I click on "Add Selected to SSM"
00:00:00.540
@scope_ssm
@sle_minion
@scope_visualization
Scenario: The SLE minion is part of the new group
Given
I am on the Systems overview page of this "sle_minion"
00:00:01.545
When
I follow "Groups" in the content area
00:00:00.073
Then
I should see a "new-systems-group" text
00:00:00.075
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Apply a patch to systems in the system group
When
I follow the left menu "Systems > System Groups"
00:00:00.074
And
I follow "new-systems-group"
00:00:00.304
And
I follow first "Patches"
00:00:00.376
Unable to find css "input[placeholder='Filter by Synopsis: ']" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:975:in `/^I enter "([^"]*)" as the filtered synopsis$/' features/secondary/allcli_system_group.feature:76:in `I enter "virgo-dummy" as the filtered synopsis'
And
I click on the filter button until page does contain "virgo-dummy-3456" text
0s
Then
I should see a "virgo-dummy-3456" link
0s
When
I follow "virgo-dummy-3456"
0s
And
I follow first "Affected Systems"
0s
And
I check the "sle_minion" client
0s
And
I click on "Apply Patches"
0s
And
I click on "Confirm"
0s
Then
I should see a "Patch virgo-dummy-3456 has been scheduled for 1 system" text
0s
And
I am on the Systems overview page of this "sle_minion"
0s
And
I wait until event "Patch Update: virgo-dummy-3456 - Test update for virgo-dummy scheduled by admin" is completed
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Apply a patch to systems in the SSM
When
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.551
And
I follow first "Patches"
00:00:00.251
When
I enter "andromeda-dummy" as the filtered synopsis
00:00:00.047
And
I click on the filter button
00:00:00.345
When
I wait until I see "andromeda-dummy-6789" text, refreshing the page
00:00:00.062
Then
I should see a "andromeda-dummy-6789" link
00:00:00.011
When
I follow "andromeda-dummy-6789"
00:00:00.371
And
I follow first "Affected Systems"
00:00:00.293
And
I check the "sle_minion" client
00:00:00.051
And
I click on "Apply Patches"
00:00:00.551
And
I click on "Confirm"
00:00:00.059
Then
I should see a "Patch andromeda-dummy-6789 has been scheduled for 1 system" text
00:00:00.070
And
I am on the Systems overview page of this "sle_minion"
00:00:01.885
And
I wait until event "Patch Update: andromeda-dummy-6789 - Test update for andromeda-dummy scheduled by admin" is completed
00:00:38.422
@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
Scenario: Pre-requisite: re-select sle_minion in SSM for package operations
When
I follow the left menu "Systems > System Groups"
00:00:00.078
And
I click on "Use in SSM" in row "new-systems-group"
00:00:00.071
Then
I should see a "Selected Systems List" text
00:00:00.080
And
I should see "sle_minion" as link
00:00:00.015
@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
Scenario: Delete a package from systems in the SSM
When
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.080
And
I follow "Packages"
00:00:00.362
And
I follow "Remove"
00:00:00.568
And
I wait until I see "Package Removal" text, refreshing the page
00:00:00.236
And
I enter "virgo-dummy" as the filtered package name
00:00:00.145
And
I click on the filter button until page does contain "virgo-dummy-2.0-1.1" text
00:04:10.000
+ Show Error
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/navigation_steps.rb:951:in `/^I click on the filter button until page does contain "([^"]*)" text$/' features/secondary/allcli_system_group.feature:118:in `I click on the filter button until page does contain "virgo-dummy-2.0-1.1" text'
And
I check "virgo-dummy-2.0-1.1" in the list
0s
And
I click on "Remove Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "Package removals are being scheduled, it may take several minutes for this to complete." text
0s
undefined method `map' for an instance of String (NoMethodError) ./features/support/env.rb:211:in `web_session_is_active?' ./features/support/env.rb:182:in `After'
@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
Scenario: Pre-requisite: re-select sle_minion in SSM for package install
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:126:in `I follow the left menu "Systems ) System Groups"'
And
I click on "Use in SSM" in row "new-systems-group"
0s
Then
I should see a "Selected Systems List" text
0s
And
I should see "sle_minion" as link
0s
@scope_ssm
@sle_minion
@scope_visualization
@skip_if_github_validation
Scenario: Install a package to systems in the SSM
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:133:in `I follow the left menu "Systems ) System Set Manager ) Overview"'
And
I follow "Packages"
0s
And
I follow "Install"
0s
And
I wait until I see "Fake-RPM-SUSE-Channel" text, refreshing the page
0s
Then
I should see a "Fake-RPM-SUSE-Channel" text
0s
When
I follow "Fake-RPM-SUSE-Channel"
0s
Then
I should see a "virgo-dummy-2.0-1.1" text
0s
And
I enter "virgo-dummy" as the filtered package name
0s
And
I click on the filter button until page does contain "virgo-dummy-2.0-1.1" text
0s
When
I check "virgo-dummy-2.0-1.1" in the list
0s
And
I click on "Install Packages"
0s
And
I click on "Confirm"
0s
Then
I should see a "Package installations are being scheduled, it may take several minutes for this to complete." text
0s
@scope_ssm
@sle_minion
@scope_visualization
@rhlike_minion
Scenario: Add the Red Hat-like minion to the group in a different way
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:149:in `I follow the left menu "Systems ) System Groups"'
Then
I should see a "System Groups" text
0s
When
I follow "new-systems-group"
0s
And
I follow "Target Systems"
0s
Then
I should see a "The following are systems that may be added to this group." text
0s
When
I check the "rhlike_minion" client
0s
And
I click on "Add Systems"
0s
Then
I should see a "1 systems were added to new-systems-group server group" text
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Add the new group to SSM
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:159:in `I follow the left menu "Systems ) System Groups"'
And
I click on "Use in SSM" in row "new-systems-group"
0s
Then
I should see a "Selected Systems List" text
0s
And
I should see "rhlike_minion" as link
0s
And
I should see "sle_minion" as link
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: New formula page is rendered for the system group
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:174:in `I follow the left menu "Systems ) System Groups"'
And
I follow "new-systems-group"
0s
And
I follow "Formulas"
0s
Then
I should see a "Choose formulas:" text
0s
And
I should see a "General System Configuration" text
0s
And
the "locale" formula should be unchecked
0s
@scope_ssm
@sle_minion
@scope_visualization
@rhlike_minion
Scenario: Apply the highstate to the group
Unable to find xpath "//aside/div[@id='nav']/nav/ul/li/div/a[contains(.,'Systems')]/parent::div/parent::li" (Capybara::ElementNotFound) ./features/step_definitions/navigation_steps.rb:441:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:433:in `each' ./features/step_definitions/navigation_steps.rb:433:in `each_with_index' ./features/step_definitions/navigation_steps.rb:433:in `/^I follow the left menu "([^"]*)"$/' features/secondary/allcli_system_group.feature:183:in `I follow the left menu "Systems ) System Groups"'
Then
I should see a "System Groups" text
0s
When
I follow "new-systems-group"
0s
And
I follow "States"
0s
And
I click on "Apply Highstate"
0s
Then
I should see a "Applying the highstate has been scheduled." text
0s
When
I follow "scheduled"
0s
Then
I should see a "Apply states (highstate)" text
0s
And
I should see a "Action Details" text
0s
And
I wait until I see "2 systems successfully completed this action." text, refreshing the page
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Remove SLE minion from new group
Requested /rhn/systems/details/Overview.do?sid=1000010019, got https://uyuni-master-server.sumaci.aws/rhn/manager/login?url_bounce=%2Frhn%2Fsystems%2Fdetails%2FOverview.do%3Fsid%3D1000010019&request_method=GET
Unable to find link "Groups" (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' features/secondary/allcli_system_group.feature:196:in `I follow "Groups"'
And
I check "new-systems-group" in the list
0s
And
I click on "Leave Groups"
0s
Then
I should see a "1 system groups removed." text
0s
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Cleanup: remove the new group
When
I follow the left menu "Systems > System Groups"
00:00:00.079
When
I follow "new-systems-group" in the content area
00:00:00.070
And
I follow "Delete Group" in the content area
00:00:00.073
And
I click on "Confirm Deletion"
00:00:00.057
Then
I should see a "System group" text
00:00:00.063
And
I should see a "new-systems-group" text
00:00:00.056
And
I should see a "deleted" text
00:00:00.059
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Cleanup: regenerate search index for later tests
Search by hostname: uyuni-master-suse-minion
[{"last_boot"=>"2026-05-24T07:29:05Z", "name"=>"uyuni-master-suse-minion.sumaci.aws", "id"=>1000010019, "last_checkin"=>"2026-05-24T10:06:32Z"}]
@scope_ssm
@sle_minion
@scope_visualization
Scenario: Cleanup: remove dummy packages
When
I disable repository "test_repo_rpm_pool" on this "sle_minion" without error control
00:00:00.816
And
I refresh the metadata for "sle_minion"
00:00:01.109
And
I remove package "andromeda-dummy" from this "sle_minion" without error control
00:00:01.847
And
I remove package "virgo-dummy" from this "sle_minion" without error control
00:00:01.924