@skip_if_github_validation
@skip_if_cloud
@skip_if_containerized_server
@proxy
@sle_minion
@ssh_minion
@rhlike_minion
@deblike_minion
@build_host
Feature: 0143 - Reconfigure the server's hostname
Description: As admin user
In order to change the server's hostname
I want to use the tool spacewalk-hostname-rename.
File name: srv_rename_hostname.feature
Relative path: finishing/srv_rename_hostname.feature
@skip_if_github_validation
@skip_if_cloud
@skip_if_containerized_server
Scenario: Change hostname and reboot server
When
I change the server's short hostname from hosts and hostname files
0s
And
I reboot the server through SSH
0s
And
I run spacewalk-hostname-rename command on the server
0s
@skip_if_github_validation
@skip_if_cloud
@skip_if_containerized_server
@proxy
Scenario: Copy the new server keys and configure the proxy
When
I copy server's keys to the proxy
0s
And
I configure the proxy
0s
Then
I should see "proxy" via spacecmd
0s
When
I restart the "venv-salt-minion" service on "proxy"
0s
Then
service "venv-salt-minion" is active on "proxy"
0s
When
I restart the "salt-broker" service on "proxy"
0s
Then
service "salt-broker" is active on "proxy"
0s
@skip_if_github_validation
@skip_if_cloud
@skip_if_containerized_server
Scenario: Do some minimal smoke test on the renamed server
Given
I am on the Systems overview page of this "sle_minion"
0s
When
I follow "Details" in the content area
0s
And
I follow "Remote Command" in the content area
0s
And
I enter as remote command this script in
0s
#!/bin/bash date
And
I click on "Schedule"
0s
And
I follow "Events" in the content area
0s
And
I follow "Pending" in the content area
0s
And
I wait at most 180 seconds until I do not see "Remote Command on" text, refreshing the page
0s
And
I follow "History" in the content area
0s
And
I wait until I see the event "Remote Command on" completed during last minute, refreshing the page
0s
@skip_if_github_validation
@skip_if_cloud
@skip_if_containerized_server
@proxy
Scenario: Copy the new server keys and configure the proxy
When
I copy server's keys to the proxy
0s
And
I configure the proxy
0s
Then
I should see "proxy" via spacecmd
0s
When
I restart the "venv-salt-minion" service on "proxy"
0s
Then
service "venv-salt-minion" is active on "proxy"
0s
When
I restart the "salt-broker" service on "proxy"
0s
Then
service "salt-broker" is active on "proxy"
0s