@@ -45,7 +45,7 @@ def test_mssh_no_target(self,
45
45
cli = EC2InstanceConnectCLI (instance_bundles , "" , cli_command , logger .get_logger ())
46
46
cli .invoke_command ()
47
47
48
- expected_command = " ssh -o ' IdentitiesOnly=yes' -i {0} {1} {2}@{3} {4}" .format (mock_file , flag , self .default_user ,
48
+ expected_command = ' ssh -o " IdentitiesOnly=yes" -i {0} {1} {2}@{3} {4}' .format (mock_file , flag , self .default_user ,
49
49
self .public_ip , command )
50
50
51
51
# Check that we successfully get to the run
@@ -76,7 +76,7 @@ def test_mssh_no_target_no_public_ip(self,
76
76
cli = EC2InstanceConnectCLI (instance_bundles , "" , cli_command , logger .get_logger ())
77
77
cli .invoke_command ()
78
78
79
- expected_command = " ssh -o ' IdentitiesOnly=yes' -i {0} {1} {2}@{3} {4}" .format (mock_file , flag , self .default_user ,
79
+ expected_command = ' ssh -o " IdentitiesOnly=yes" -i {0} {1} {2}@{3} {4}' .format (mock_file , flag , self .default_user ,
80
80
self .private_ip , command )
81
81
82
82
# Check that we successfully get to the run
@@ -107,7 +107,7 @@ def test_mssh_with_target(self,
107
107
cli = EC2InstanceConnectCLI (instance_bundles , "" , cli_command , logger .get_logger ())
108
108
cli .invoke_command ()
109
109
110
- expected_command = " ssh -o ' IdentitiesOnly=yes' -i {0} {1} {2}@{3} {4}" .format (mock_file , flag , self .default_user ,
110
+ expected_command = ' ssh -o " IdentitiesOnly=yes" -i {0} {1} {2}@{3} {4}' .format (mock_file , flag , self .default_user ,
111
111
host , command )
112
112
# Check that we successfully get to the run
113
113
# Since both target and availability_zone are provided, mock_instance_data should not be called
@@ -133,7 +133,7 @@ def test_msftp(self,
133
133
mock_instance_data .return_value = self .instance_info
134
134
mock_push_key .return_value = None
135
135
136
- expected_command = " sftp -o ' IdentitiesOnly=yes' -i {0} {1} {2}@{3}:{4} {5}" .format (mock_file , flag , self .default_user ,
136
+ expected_command = ' sftp -o " IdentitiesOnly=yes" -i {0} {1} {2}@{3}:{4} {5}' .format (mock_file , flag , self .default_user ,
137
137
self .public_ip , 'file1' , command )
138
138
139
139
cli_command = EC2InstanceConnectCommand ("sftp" , instance_bundles , mock_file , flag , command , logger .get_logger ())
@@ -166,7 +166,7 @@ def test_mscp(self,
166
166
mock_instance_data .return_value = self .instance_info
167
167
mock_push_key .return_value = None
168
168
169
- expected_command = " scp -o ' IdentitiesOnly=yes' -i {0} {1} {2}@{3}:{4} {5} {6}@{7}:{8}" .format (mock_file , flag , self .default_user ,
169
+ expected_command = ' scp -o " IdentitiesOnly=yes" -i {0} {1} {2}@{3}:{4} {5} {6}@{7}:{8}' .format (mock_file , flag , self .default_user ,
170
170
self .public_ip , 'file1' , command ,
171
171
self .default_user ,
172
172
self .public_ip , 'file4' )
0 commit comments