mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
enforce required credential fields at job start time rather than on save
this is necessary for credential plugins support so that you can (in two
requests):
1. Save a Credential with _no_ input values defined
2. Create/associate one (or more) CredentialInputSource records to the
new Credential
This commit is contained in:
committed by
Jake McDermott
parent
e2d474ddd2
commit
42f4956a7f
@@ -184,7 +184,7 @@ def test_ssh_key_data_validation(organization, kind, ssh_key_data, ssh_key_unloc
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.parametrize('inputs, valid', [
|
||||
({'vault_password': 'some-pass'}, True),
|
||||
({}, False),
|
||||
({}, True),
|
||||
({'vault_password': 'dev-pass', 'vault_id': 'dev'}, True),
|
||||
({'vault_password': 'dev-pass', 'vault_id': 'dev@prompt'}, False), # @ not allowed
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user