Skip to content

Commit

Permalink
Merge pull request #234 from juan-abia/CLOUDX163
Browse files Browse the repository at this point in the history
Reenable test in rhel 8.4
  • Loading branch information
narmaku authored Jun 30, 2023
2 parents d065b4a + 118ff8d commit ecaf339
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_suite/cloud/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ def test_max_cstate_is_configured_in_cmdline(self, host):
f'{line} must not be specified in AMIs that are not SAP'

@pytest.mark.run_on(['all'])
@pytest.mark.exclude_on(['<rhel8.5'])
def test_hostkey_permissions(self, host):
"""
Check that ssh files permission set are correct.
Expand All @@ -364,7 +363,11 @@ def test_hostkey_permissions(self, host):
# - https://src.fedoraproject.org/rpms/openssh/c/b615362fd0b4da657d624571441cb74983de6e3f?branch=rawhide
# - https://src.fedoraproject.org/rpms/openssh/c/7a21555354a2c5e724aa4c287b640c24bf108780?branch=rawhide
expected_mode = 0o600

print(host.run('rpm -q cloud-init').stdout)

for file in files_to_check:
print(host.run(f'stat -c "%a %n" /etc/ssh/{file}*').stdout)
if host.file(f'/etc/ssh/{file}').exists:
assert host.file(f'/etc/ssh/{file}').mode == expected_mode, \
'ssh files permissions are not set correctly'
Expand Down

0 comments on commit ecaf339

Please sign in to comment.