Merge pull request #6468 from ryanpetrello/fix-6464

add a boolean `authorize` field for the Network Credential Type
This commit is contained in:
Ryan Petrello
2017-06-09 09:47:39 -04:00
committed by GitHub
3 changed files with 23 additions and 1 deletions

View File

@@ -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
#