Skip to content

Commit

Permalink
Fix ssh command encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Apr 10, 2024
1 parent 79aa607 commit f48f3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/robottelo/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def test_execute_with_raw_response(self, settings, command):
response = Base.execute('some_cmd', return_raw_response=True)
ssh_cmd = 'LANG=en_US hammer -v -u admin -p password some_cmd'
command.assert_called_once_with(
ssh_cmd.encode('utf-8'),
ssh_cmd,
hostname=mock.ANY,
output_format=None,
timeout=None,
Expand All @@ -277,7 +277,7 @@ def test_execute_with_performance(self, settings, command, handle_resp):
response = Base.execute('some_cmd', hostname=None, output_format='json')
ssh_cmd = 'LANG=en_US time -p hammer -v -u admin -p password --output=json some_cmd'
command.assert_called_once_with(
ssh_cmd.encode('utf-8'),
ssh_cmd,
hostname=mock.ANY,
output_format='json',
timeout=None,
Expand Down

0 comments on commit f48f3cb

Please sign in to comment.