mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
treat tower as a reserved field name for custom CredentialTypes
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user