File tree 1 file changed +4
-5
lines changed
tests/unit/plugins/connection/aws_ssm
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -291,17 +291,16 @@ def test_generate_commands(self, is_windows):
291
291
)
292
292
293
293
# Check contents of generated command dictionaries
294
+ assert "command" in test_command_generation [0 ][0 ]
295
+ assert "method" in test_command_generation [0 ][0 ]
296
+ assert "headers" in test_command_generation [0 ][0 ]
297
+
294
298
if is_windows :
295
- assert "command" in test_command_generation [0 ][0 ]
296
- assert "method" in test_command_generation [0 ][1 ]
297
- assert "headers" in test_command_generation [0 ][1 ]
298
299
assert "Invoke-WebRequest" in test_command_generation [0 ][1 ]["command" ]
299
300
assert test_command_generation [0 ][1 ]["method" ] == "put"
300
301
# Two command dictionaries are generated for Windows
301
302
assert len (test_command_generation [0 ]) == 2
302
303
else :
303
- assert "method" in test_command_generation [0 ][2 ]
304
- assert "headers" in test_command_generation [0 ][2 ]
305
304
assert "curl --request PUT -H" in test_command_generation [0 ][2 ]["command" ]
306
305
assert test_command_generation [0 ][2 ]["method" ] == "put"
307
306
# Three command dictionaries are generated on non-Windows systems
You can’t perform that action at this time.
0 commit comments