Add support for multi-file injection in custom creds

This commit is contained in:
Jim Ladd
2017-11-14 17:26:58 -05:00
parent 87365e5969
commit 286a70f2ca
3 changed files with 14 additions and 10 deletions

View File

@@ -109,6 +109,8 @@ def test_cred_type_input_schema_validity(input_, valid):
({'file': 123}, False),
({'file': {}}, False),
({'file': {'template': '{{username}}'}}, True),
({'file': {'template.username': '{{username}}'}}, True),
({'file': {'template.username': '{{username}}', 'template.password': '{{pass}}'}}, True),
({'file': {'foo': 'bar'}}, False),
({'env': 123}, False),
({'env': {}}, True),