Skip to content

Commit

Permalink
[6.16.z] Avoid calling decode on str (#16304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Sep 10, 2024
1 parent 0b8b9ac commit b1632c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/foreman/destructive/test_rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ def test_negative_rename_sat_wrong_passwd(module_target_sat):
f'satellite-change-hostname -y {new_hostname} -u {username} -p {password}'
)
assert result.status == 1
assert BAD_CREDS_MSG in result.stderr[1].decode()
assert BAD_CREDS_MSG in result.stderr
# assert no changes were made
hostname_result = module_target_sat.execute('hostname')
assert original_name == hostname_result.stdout.strip(), "Invalid hostame assigned"


@pytest.mark.stubbed
Expand Down

0 comments on commit b1632c9

Please sign in to comment.