Skip to content

Commit

Permalink
Improve ssh print command
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Aug 3, 2024
1 parent cfd6033 commit 7adb352
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ def test_sshvm(self, server_proxy):
self.assertEquals(res, True)
output = out.getvalue().strip()
self.assertIn("sshpass -pyoyoyo ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "
"[email protected] -o ProxyCommand=sshpass -p passwd ssh -W %h:%p -p 22"
" -o StrictHostKeyChecking=no [email protected]", output)
"-o 'ProxyCommand=sshpass -p passwd ssh -W %h:%p -p 22"
" -o StrictHostKeyChecking=no [email protected]' [email protected]", output)
sys.stdout = oldstdout
sys.stderr = oldstderr

Expand Down Expand Up @@ -1146,9 +1146,9 @@ def test_sshvm_via_master(self, server_proxy):
self.assertEquals(res, True)
output = out.getvalue().strip()
self.assertIn("ssh -p 22 -i /tmp/", output)
self.assertIn(" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected]"
" -o ProxyCommand=ssh -W %h:%p -i /var/tmp/ubuntu_ubuntu_10.0.0.2.pem -p 22"
" -o StrictHostKeyChecking=no [email protected]", output)
self.assertIn(" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
" -o 'ProxyCommand=ssh -W %h:%p -i /var/tmp/ubuntu_ubuntu_10.0.0.2.pem -p 22"
" -o StrictHostKeyChecking=no [email protected]' [email protected]", output)
sys.stdout = oldstdout
sys.stderr = oldstderr

Expand Down

0 comments on commit 7adb352

Please sign in to comment.