@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
@susemanager
Feature: 0126 - Operate an Ansible control node in SSH minion
Description: * Related GitHub Card: https://github.com/SUSE/spacewalk/issues/30806
File name: minssh_ansible_control_node.feature
Relative path: secondary/minssh_ansible_control_node.feature
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
@susemanager
Scenario: Pre-requisite: Subscribe SUSE minions to SLE-Module-Python3-15-SP7-Pool for x86_64
Given
I am on the Systems overview page of this "ssh_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I check "SLE-Module-Python3-15-SP7-Pool for x86_64" by label
0s
And
I click on "Next"
0s
And
I click on "Confirm"
0s
And
I wait until I see "Changing the channels has been scheduled." text
0s
And
I follow "scheduled"
0s
And
I wait until I see "1 system successfully completed this action" text, refreshing the page
0s
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Enable "Ansible control node" system type
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.809
When
I follow "Properties" in the content area
00:00:00.075
And
I check "ansible_control_node"
00:00:00.087
And
I click on "Update Properties"
00:00:02.502
Then
I wait until I see "Ansible Control Node type has been applied." text
00:00:00.092
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
@bug_reported
Scenario: Apply highstate and check that Ansible is installed
Given
I am on the Systems overview page of this "ssh_minion"
00:00:02.018
When
I follow "States" in the content area
00:00:00.072
And
I click on "Apply Highstate"
00:00:00.060
And
I wait until event "Apply highstate scheduled" is completed
00:01:28.565
Then
"ansible" should be installed on "ssh_minion"
00:00:00.496
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: The Ansible tab appears in the system overview page
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.799
When
I follow "Ansible" in the content area
00:00:00.083
Then
I should see a "Ansible Control Node Configuration" text
00:00:00.061
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Configure some inventory and playbooks path
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.846
When
I follow "Ansible" in the content area
00:00:00.069
Then
I should see a "Ansible Control Node Configuration" text
00:00:00.066
And
I enter "/srv/playbooks/" as "new_playbook_path_input"
00:00:00.137
And
I click on "new_playbook_path_save"
00:00:00.061
And
I enter "/srv/playbooks/orion_dummy/hosts" as "new_inventory_path_input"
00:00:00.098
And
I click on "new_inventory_path_save"
00:00:00.065
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Display inventories
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.852
When
I follow "Ansible" in the content area
00:00:00.067
And
I follow "Inventories" in the content area
00:00:00.074
And
I wait until I see "/srv/playbooks/orion_dummy/hosts" text
00:00:00.379
And
I click on the inventory accordion for "/srv/playbooks/orion_dummy/hosts"
00:00:00.049
Then
I wait until I see "myself" text
00:00:22.968
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Discover playbooks and display them
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.866
When
I follow "Ansible" in the content area
00:00:00.086
And
I follow "Playbooks" in the content area
00:00:00.071
And
I wait until I see "/srv/playbooks" text
00:00:00.256
And
I click on "/srv/playbooks"
00:00:00.080
Then
I wait until I see "/srv/playbooks/orion_dummy/playbook_orion_dummy.yml" text
00:00:10.857
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Run a playbook using custom inventory
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.796
When
I follow "Ansible" in the content area
00:00:00.063
And
I follow "Playbooks" in the content area
00:00:00.057
And
I wait until I see "/srv/playbooks" text
00:00:00.442
And
I click on "/srv/playbooks"
00:00:00.051
And
I wait until I see "/srv/playbooks/orion_dummy/playbook_orion_dummy.yml" text
00:00:10.855
And
I click on "orion_dummy/playbook_orion_dummy.yml"
00:00:00.062
And
I wait until I see "Playbook Content" text
00:00:07.871
And
I select "/srv/playbooks/orion_dummy/hosts" from "inventory-path-select"
00:00:01.126
And
I click on "Schedule"
00:00:00.063
Then
I should see a "Playbook execution has been scheduled" text
00:00:00.374
And
I wait until event "Execute playbook 'playbook_orion_dummy.yml' scheduled" is completed
00:00:38.586
And
file "/tmp/file.txt" should exist on "ssh_minion"
00:00:00.752
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Cleanup: Disable Ansible and remove test playbooks and inventory file
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.766
When
I follow "Properties" in the content area
00:00:00.082
And
I uncheck "ansible_control_node"
00:00:10.078
And
I click on "Update Properties"
00:00:01.093
Then
I should see a "System properties changed" text
00:00:00.094
And
I remove package "orion-dummy" from this "ssh_minion" without error control
00:00:01.906
And
I remove "/tmp/file.txt" from "ssh_minion"
00:00:00.438
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
@susemanager
Scenario: Cleanup: Unsubscribe SUSE minions from SLE-Module-Python3-15-SP7-Pool for x86_64
Given
I am on the Systems overview page of this "ssh_minion"
0s
When
I follow "Software" in the content area
0s
And
I follow "Software Channels" in the content area
0s
And
I uncheck "SLE-Module-Python3-15-SP7-Pool for x86_64" by label
0s
And
I click on "Next"
0s
And
I click on "Confirm"
0s
And
I wait until I see "Changing the channels has been scheduled." text
0s
And
I follow "scheduled"
0s
And
I wait until I see "1 system successfully completed this action" text, refreshing the page
0s
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Cleanup: Disable "Ansible control node" system type
Given
I am on the Systems overview page of this "ssh_minion"
00:00:01.899
When
I follow "Properties" in the content area
00:00:00.079
And
I uncheck "ansible_control_node"
00:00:10.048
And
I click on "Update Properties"
00:00:00.855
@scope_ansible
@scope_salt_ssh
@ssh_minion
@bug_reported
Scenario: Cleanup: Apply highstate to disable the minion as an "Ansible control node"
Given
I am on the Systems overview page of this "ssh_minion"
00:00:02.194
When
I follow "States" in the content area
00:00:00.079
And
I click on "Apply Highstate"
00:00:00.061
And
I wait until event "Apply highstate scheduled" is completed
00:00:55.462