treat tower as a reserved field name for custom CredentialTypes

This commit is contained in:
Ryan Petrello
2017-04-28 11:26:18 -04:00
parent 89f239ce66
commit 03460b311e
2 changed files with 22 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ def test_cloud_kind_uniqueness():
({'fields': [{'id': 'become_method', 'label': 'Become', 'choices': []}]}, False),
({'fields': [{'id': 'become_method', 'label': 'Become', 'choices': ['su', 'sudo']}]}, True), # noqa
({'fields': [{'id': 'become_method', 'label': 'Become', 'choices': ['dup', 'dup']}]}, False), # noqa
({'fields': [{'id': 'tower', 'label': 'Reserved!', }]}, False), # noqa
])
def test_cred_type_input_schema_validity(input_, valid):
type_ = CredentialType(