Skip to content

Commit

Permalink
fix test after quoting ssh arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
edo-aleix-penella committed Sep 6, 2023
1 parent a2526f5 commit 89737af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions pkg/adhoc/adhoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func TestRun(t *testing.T) {
SCPExtraArgs: "-o StrictHostKeyChecking=no",
SFTPExtraArgs: "-o StrictHostKeyChecking=no",
SSHCommonArgs: "-o StrictHostKeyChecking=no",
SSHExtraArgs: "-o StrictHostKeyChecking=no",
Timeout: 10,
User: "apenella",
},
Expand Down Expand Up @@ -133,11 +134,13 @@ func TestRun(t *testing.T) {
"--private-key",
"pk",
"--scp-extra-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--sftp-extra-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--ssh-common-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--ssh-extra-args",
"'-o StrictHostKeyChecking=no'",
"--timeout",
"10",
"--user",
Expand Down
9 changes: 6 additions & 3 deletions pkg/playbook/ansiblePlaybook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ func TestRun(t *testing.T) {
SCPExtraArgs: "-o StrictHostKeyChecking=no",
SFTPExtraArgs: "-o StrictHostKeyChecking=no",
SSHCommonArgs: "-o StrictHostKeyChecking=no",
SSHExtraArgs: "-o StrictHostKeyChecking=no",
Timeout: 10,
User: "apenella",
},
Expand Down Expand Up @@ -384,11 +385,13 @@ func TestRun(t *testing.T) {
"--private-key",
"pk",
"--scp-extra-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--sftp-extra-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--ssh-common-args",
"-o StrictHostKeyChecking=no",
"'-o StrictHostKeyChecking=no'",
"--ssh-extra-args",
"'-o StrictHostKeyChecking=no'",
"--timeout",
"10",
"--user",
Expand Down

0 comments on commit 89737af

Please sign in to comment.