Adding a test for detect_aws_credentials when key contains spaces

This commit is contained in:
Pablo Vega 2018-01-26 15:19:01 -08:00
parent 83fca4c614
commit 7c631b3b79

View file

@ -83,6 +83,7 @@ def test_get_aws_secrets_from_env(env_vars, values):
},
),
('aws_config_without_secrets.ini', set()),
('aws_config_without_secrets_with_spaces.ini', set()),
('nonsense.txt', set()),
('ok_json.json', set()),
),
@ -100,6 +101,7 @@ def test_get_aws_secrets_from_file(filename, expected_keys):
('aws_config_with_session_token.ini', 1),
('aws_config_with_multiple_sections.ini', 1),
('aws_config_without_secrets.ini', 0),
('aws_config_without_secrets_with_spaces.ini', 0),
('nonsense.txt', 0),
('ok_json.json', 0),
),