@scope_configuration_channels
@sle_minion
@rhlike_minion
@deblike_minion
@ssh_minion
Feature: 0119 - Management of configuration of all types of clients in a single channel
File name: allcli_config_channel.feature
Relative path: secondary/allcli_config_channel.feature
@scope_configuration_channels
Scenario: Create a configuration channel for mixed client types
When
I follow the left menu "Configuration > Channels"
00:00:00.143
And
I follow "Create Config Channel"
00:00:00.393
And
I enter "Mixed Channel" as "cofName"
00:00:00.063
And
I enter "mixedchannel" as "cofLabel"
00:00:00.062
And
I enter "This is a configuration channel for different system types" as "cofDescription"
00:00:00.097
And
I click on "Create Config Channel"
00:00:00.881
Then
I should see a "Mixed Channel" text
00:00:00.066
@scope_configuration_channels
Scenario: Add a configuration file to the mixed configuration channel
When
I follow the left menu "Configuration > Channels"
00:00:00.069
And
I follow "Mixed Channel"
00:00:00.499
And
I follow "Create Configuration File or Directory"
00:00:00.398
And
I enter "/etc/s-mgr/config" as "cffPath"
00:00:00.072
And
I enter "COLOR=white" in the editor
00:00:00.008
And
I click on "Create Configuration File"
00:00:00.069
Then
I should see a "Revision 1 of /etc/s-mgr/config from channel Mixed Channel" text
00:00:00.105
And
file "/srv/susemanager/salt/manager_org_1/mixedchannel/init.sls" should exist on server
00:00:04.411
And
file "/srv/susemanager/salt/manager_org_1/mixedchannel/etc/s-mgr/config" should exist on server
00:00:02.793
@scope_configuration_channels
@sle_minion
Scenario: Subscribe a Salt minion to the configuration channel
When
I am on the Systems overview page of this "sle_minion"
00:00:02.012
And
I follow "Configuration" in the content area
00:00:00.073
And
I follow "Manage Configuration Channels" in the content area
00:00:00.068
And
I follow first "Subscribe to Channels" in the content area
00:00:00.070
And
I check "Mixed Channel" in the list
00:00:00.058
And
I click on "Continue"
00:00:01.017
And
I click on "Update Channel Rankings"
00:00:01.368
Then
I should see a "Channel Subscriptions successfully changed for" text
00:00:00.083
@scope_configuration_channels
@rhlike_minion
Scenario: Subscribe a Red Hat-like minion to the configuration channel
When
I am on the Systems overview page of this "rhlike_minion"
00:00:01.405
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-rhlike-minion (RuntimeError) ./features/support/commonlib.rb:444:in `get_system_id' ./features/step_definitions/navigation_steps.rb:502:in `/^I am on the Systems overview page of this "([^"]*)"$/' features/secondary/allcli_config_channel.feature:43:in `I am on the Systems overview page of this "rhlike_minion"'
And
I follow "Configuration" in the content area
0s
And
I follow "Manage Configuration Channels" in the content area
0s
And
I follow first "Subscribe to Channels" in the content area
0s
And
I check "Mixed Channel" in the list
0s
And
I click on "Continue"
0s
And
I click on "Update Channel Rankings"
0s
Then
I should see a "Channel Subscriptions successfully changed for" text
0s
@scope_configuration_channels
@deblike_minion
Scenario: Subscribe a Debian-like minion to the configuration channel
When
I am on the Systems overview page of this "deblike_minion"
00:00:01.011
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-deblike-minion (RuntimeError) ./features/support/commonlib.rb:444:in `get_system_id' ./features/step_definitions/navigation_steps.rb:502:in `/^I am on the Systems overview page of this "([^"]*)"$/' features/secondary/allcli_config_channel.feature:54:in `I am on the Systems overview page of this "deblike_minion"'
And
I follow "Configuration" in the content area
0s
And
I follow "Manage Configuration Channels" in the content area
0s
And
I follow first "Subscribe to Channels" in the content area
0s
And
I check "Mixed Channel" in the list
0s
And
I click on "Continue"
0s
And
I click on "Update Channel Rankings"
0s
Then
I should see a "Channel Subscriptions successfully changed for" text
0s
@scope_configuration_channels
@ssh_minion
Scenario: Subscribe a SSH minion to the configuration channel
When
I am on the Systems overview page of this "ssh_minion"
00:00:01.786
And
I follow "Configuration" in the content area
00:00:00.089
And
I follow "Manage Configuration Channels" in the content area
00:00:00.070
And
I follow first "Subscribe to Channels" in the content area
00:00:00.066
And
I check "Mixed Channel" in the list
00:00:00.063
And
I click on "Continue"
00:00:00.972
And
I click on "Update Channel Rankings"
00:00:01.031
Then
I should see a "Channel Subscriptions successfully changed for" text
00:00:00.075
When
I follow the left menu "Configuration > Channels"
00:00:00.145
And
I follow "Mixed Channel"
00:00:00.520
And
I follow "Deploy all configuration files to all subscribed systems"
00:00:00.578
Then
I should see a "/etc/s-mgr/config" link
00:00:00.012
When
I click on "Deploy Files to Selected Systems"
00:00:00.874
Then
I should see a "revision-deploys are being scheduled," text
00:00:00.071
And
I should see a "0 revision-deploys overridden." text
00:00:00.064
@scope_configuration_channels
@rhlike_minion
Scenario: Check that file has been created on Red Hat-like minion
When
I wait until file "/etc/s-mgr/config" exists on "rhlike_minion"
00:04:10.003
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/command_steps.rb:816:in `/^I wait at most (\d+) seconds until file "([^"]*)" exists on "([^"]*)"$/' ./features/step_definitions/command_steps.rb:811:in `/^I wait until file "([^"]*)" exists on "([^"]*)"$/' features/secondary/allcli_config_channel.feature:90:in `I wait until file "/etc/s-mgr/config" exists on "rhlike_minion"'
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "rhlike_minion"
0s
@scope_configuration_channels
@deblike_minion
Scenario: Check that file has been created on Debian-like minion
When
I wait until file "/etc/s-mgr/config" exists on "deblike_minion"
00:04:10.002
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/step_definitions/command_steps.rb:816:in `/^I wait at most (\d+) seconds until file "([^"]*)" exists on "([^"]*)"$/' ./features/step_definitions/command_steps.rb:811:in `/^I wait until file "([^"]*)" exists on "([^"]*)"$/' features/secondary/allcli_config_channel.feature:95:in `I wait until file "/etc/s-mgr/config" exists on "deblike_minion"'
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "deblike_minion"
0s
@scope_configuration_channels
@sle_minion
Scenario: Apply highstate to override changed content on SLE minion
When
I store "COLOR=blue" into file "/etc/s-mgr/config" on "sle_minion"
00:00:00.728
Salt command: salt uyuni-master-suse-minion.sumaci.aws state.highstate
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "sle_minion"
00:00:01.172
@scope_configuration_channels
@rhlike_minion
Scenario: Apply highstate to override changed content on Red Hat-like minion
When
I store "COLOR=blue" into file "/etc/s-mgr/config" on "rhlike_minion"
00:00:00.320
+ Show Error
+ Screenshot
FAIL: echo "COLOR=blue" ) /etc/s-mgr/config returned status code = 1. Output: (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/file_management_steps.rb:47:in `/^I store "([^"]*)" into file "([^"]*)" on "([^"]*)"$/' features/secondary/allcli_config_channel.feature:111:in `I store "COLOR=blue" into file "/etc/s-mgr/config" on "rhlike_minion"'
And
I apply highstate on "rhlike_minion"
0s
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "rhlike_minion"
0s
@scope_configuration_channels
@deblike_minion
Scenario: Apply highstate to override changed content on Debian-like minion
When
I store "COLOR=blue" into file "/etc/s-mgr/config" on "deblike_minion"
00:00:00.934
+ Show Error
+ Screenshot
FAIL: echo "COLOR=blue" ) /etc/s-mgr/config returned status code = 1. Output: (ScriptError) ./features/support/remote_node.rb:172:in `run_local' ./features/support/remote_node.rb:120:in `run' ./features/step_definitions/file_management_steps.rb:47:in `/^I store "([^"]*)" into file "([^"]*)" on "([^"]*)"$/' features/secondary/allcli_config_channel.feature:117:in `I store "COLOR=blue" into file "/etc/s-mgr/config" on "deblike_minion"'
And
I apply highstate on "deblike_minion"
0s
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "deblike_minion"
0s
@scope_configuration_channels
@ssh_minion
Scenario: Apply highstate to override changed content on SSH minion
When
I store "COLOR=blue" into file "/etc/s-mgr/config" on "ssh_minion"
00:00:00.709
Salt command: mgr-salt-ssh uyuni-master-suse-sshminion.sumaci.aws state.highstate
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "ssh_minion"
00:00:00.825
@scope_configuration_channels
@rhlike_minion
Scenario: Unsubscribe Red Hat-like minion and delete configuration files
When
I follow the left menu "Configuration > Channels"
00:00:00.082
And
I follow "Mixed Channel"
00:00:00.504
And
I follow "Systems" in the content area
00:00:00.070
Unable to find xpath "//table/tbody/tr[.//td[contains(.,'uyuni-master-rhlike-minion')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/support/navigation_step_helper.rb:32:in `toggle_checkbox_in_list' ./features/step_definitions/navigation_steps.rb:556:in `/^I check the "([^"]*)" client$/' features/secondary/allcli_config_channel.feature:132:in `I check the "rhlike_minion" client'
And
I click on "Unsubscribe systems"
0s
Then
I should see a "Successfully unsubscribed 1 system(s)." text
0s
And
I destroy "/etc/s-mgr" directory on "rhlike_minion"
0s
@scope_configuration_channels
@deblike_minion
Scenario: Unsubscribe Debian-like minion and delete configuration files
When
I follow the left menu "Configuration > Channels"
00:00:00.078
And
I follow "Mixed Channel"
00:00:00.564
And
I follow "Systems" in the content area
00:00:00.060
Unable to find xpath "//table/tbody/tr[.//td[contains(.,'uyuni-master-deblike-minion')]]//input[@type='checkbox']" (Capybara::ElementNotFound) ./features/support/navigation_step_helper.rb:32:in `toggle_checkbox_in_list' ./features/step_definitions/navigation_steps.rb:556:in `/^I check the "([^"]*)" client$/' features/secondary/allcli_config_channel.feature:142:in `I check the "deblike_minion" client'
And
I click on "Unsubscribe systems"
0s
Then
I should see a "Successfully unsubscribed 1 system(s)." text
0s
And
I destroy "/etc/s-mgr" directory on "deblike_minion"
0s
@scope_configuration_channels
@ssh_minion
Scenario: Unsubscribe SSH minion and delete configuration files
When
I follow the left menu "Configuration > Channels"
00:00:00.067
And
I follow "Mixed Channel"
00:00:00.504
And
I follow "Systems" in the content area
00:00:00.072
And
I check the "ssh_minion" client
00:00:00.064
And
I click on "Unsubscribe systems"
00:00:00.662
Then
I should see a "Successfully unsubscribed 1 system(s)." text
00:00:00.079
And
I destroy "/etc/s-mgr" directory on "ssh_minion"
00:00:00.723
@scope_configuration_channels
@sle_minion
Scenario: Change file on Salt minion and compare
When
I am on the Systems overview page of this "sle_minion"
00:00:01.678
And
I store "COLOR=red" into file "/etc/s-mgr/config" on "sle_minion"
00:00:00.732
And
I follow "Configuration" in the content area
00:00:00.074
And
I follow "Compare Files" in the content area
00:00:00.077
And
I check "/etc/s-mgr/config" in the list
00:00:00.061
And
I click on "Compare Files"
00:00:00.924
And
I click on "Schedule Compare"
00:00:00.066
Then
I should see a "1 files scheduled for comparison." text
00:00:00.073
When
I wait until event "Show differences between profiled config files and deployed config files scheduled" is completed
00:00:02.581
Then
I should see a "Differences exist" link
00:00:00.012
When
I follow "Differences exist"
00:00:00.445
Then
I should see a "+COLOR=white" text
00:00:00.063
And
I should see a "-COLOR=red" text
00:00:00.061
@scope_configuration_channels
@sle_minion
Scenario: Check configuration channel and files via API for Salt minion
Then
channel "mixedchannel" should exist
00:00:00.983
And
channel "mixedchannel" should contain file "/etc/s-mgr/config"
00:00:01.041
And
"sle_minion" should be subscribed to channel "mixedchannel"
00:00:01.143
@scope_configuration_channels
@sle_minion
Scenario: Extend configuration channel and deploy files via API for Salt minion
When
I store "COLOR=green" into file "/etc/s-mgr/config" on "sle_minion"
00:00:00.706
And
I add file "/etc/s-mgr/other" containing "NAME=Dante" to channel "mixedchannel"
00:00:01.071
And
I deploy all systems registered to channel "mixedchannel"
00:00:01.227
And
I wait until file "/etc/s-mgr/other" exists on "sle_minion"
00:00:01.917
Then
file "/etc/s-mgr/config" should contain "COLOR=white" on "sle_minion"
00:00:00.870
And
file "/etc/s-mgr/other" should contain "NAME=Dante" on "sle_minion"
00:00:00.861
@scope_configuration_channels
@sle_minion
Scenario: Re-add SLE Minion via SSM
When
I follow the left menu "Systems > System List > All"
00:00:00.156
And
I click on the clear SSM button
00:00:00.066
And
I check the "sle_minion" client
00:00:00.434
And
I follow the left menu "Systems > System Set Manager > Overview"
00:00:00.534
And
I follow "config channel subscriptions" in the content area
00:00:00.086
And
I check "Mixed Channel" in the list
00:00:00.070
And
I click on "Continue"
00:00:00.548
And
I click on "Apply Subscriptions"
00:00:00.845
And
I click on "Confirm"
00:00:00.753
Then
I should see a "Configuration channel subscriptions changed for 1 system successfully." text
00:00:00.073
@scope_configuration_channels
@sle_minion
Scenario: Cleanup: remove remaining Salt minion from configuration channel
When
I follow the left menu "Configuration > Channels"
00:00:00.145
And
I follow "Mixed Channel"
00:00:00.604
And
I follow "Systems" in the content area
00:00:00.072
And
I check the "sle_minion" client
00:00:00.058
And
I click on "Unsubscribe systems"
00:00:00.735
Then
I should see a "Successfully unsubscribed 1 system(s)." text
00:00:00.056
@scope_configuration_channels
Scenario: Cleanup: remove the mixed configuration channel
When
I follow the left menu "Configuration > Channels"
00:00:00.074
And
I follow "Mixed Channel"
00:00:00.580
And
I follow "Delete Channel"
00:00:00.303
And
I click on "Delete Config Channel"
00:00:00.068
Then
file "/srv/susemanager/salt/manager_org_1/mixedchannel/init.sls" should not exist on server
00:00:02.947