Skip to content

Commit

Permalink
[6.14.z] Fix test_positive_mismatched_satellite_fqdn (#16862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Nov 5, 2024
1 parent e59769a commit 0edbce5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/foreman/destructive/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ def set_random_fqdn(target_sat):
shortname = gen_string('alpha')
new_domain = gen_domain()
target_sat.execute(
f'echo "search {new_domain}" >> /etc/resolv.conf; hostnamectl set-hostname {shortname}'
'mv -f /etc/resolv.conf /etc/resolv.conf.bak; '
f'echo "search {new_domain}" > /etc/resolv.conf; '
f'hostnamectl set-hostname {shortname}'
)
yield shortname, new_domain
target_sat.execute(f'hostnamectl set-hostname {target_sat.hostname}')
target_sat.execute(
'mv -f /etc/resolv.conf.bak /etc/resolv.conf; '
f'hostnamectl set-hostname {target_sat.hostname}'
)


def test_installer_sat_pub_directory_accessibility(target_sat):
Expand Down

0 comments on commit 0edbce5

Please sign in to comment.