add a boolean authorize field for the Network Credential Type

see: #6464
This commit is contained in:
Ryan Petrello
2017-06-06 09:58:25 -04:00
parent b1d4c44c51
commit ad9fda9a06
3 changed files with 23 additions and 1 deletions

View File

@@ -743,6 +743,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', {
@@ -753,6 +754,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',
}
}]
@@ -775,6 +777,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
#