mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Merge pull request #6468 from ryanpetrello/fix-6464
add a boolean `authorize` field for the Network Credential Type
This commit is contained in:
@@ -798,6 +798,7 @@ def test_vault_create_ok(post, organization, admin, version, params):
|
||||
'password': 'some_password',
|
||||
'ssh_key_data': 'some_key_data',
|
||||
'ssh_key_unlock': 'some_key_unlock',
|
||||
'authorize': True,
|
||||
'authorize_password': 'some_authorize_password',
|
||||
}],
|
||||
['v2', {
|
||||
@@ -808,6 +809,7 @@ def test_vault_create_ok(post, organization, admin, version, params):
|
||||
'password': 'some_password',
|
||||
'ssh_key_data': 'some_key_data',
|
||||
'ssh_key_unlock': 'some_key_unlock',
|
||||
'authorize': True,
|
||||
'authorize_password': 'some_authorize_password',
|
||||
}
|
||||
}]
|
||||
@@ -830,6 +832,7 @@ def test_net_create_ok(post, organization, admin, version, params):
|
||||
assert decrypt_field(cred, 'ssh_key_data') == 'some_key_data'
|
||||
assert decrypt_field(cred, 'ssh_key_unlock') == 'some_key_unlock'
|
||||
assert decrypt_field(cred, 'authorize_password') == 'some_authorize_password'
|
||||
assert cred.inputs['authorize'] is True
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user