Update tests for custom credentials

This commit is contained in:
Jim Ladd
2017-11-21 14:43:10 -05:00
parent 18178c83b3
commit 4b13bcdce2
2 changed files with 3 additions and 2 deletions

View File

@@ -107,10 +107,11 @@ def test_cred_type_input_schema_validity(input_, valid):
({}, True),
({'invalid-injector': {}}, False),
({'file': 123}, False),
({'file': {}}, False),
({'file': {}}, True),
({'file': {'template': '{{username}}'}}, True),
({'file': {'template.username': '{{username}}'}}, True),
({'file': {'template.username': '{{username}}', 'template.password': '{{pass}}'}}, True),
({'file': {'template': '{{username}}', 'template.password': '{{pass}}'}}, False),
({'file': {'foo': 'bar'}}, False),
({'env': 123}, False),
({'env': {}}, True),