[credential_plugin/hashivault] edit tests

This commit is contained in:
Benoit Bayszczak 2020-08-28 17:29:11 +02:00
parent 16fdf0e28f
commit e8b54abec4

View File

@ -122,7 +122,8 @@ def source_cred_hashi_secret(organization):
"url": "https://secret.hash.example.com",
"token": "myApiKey",
"role_id": "role",
"secret_id": "secret"
"secret_id": "secret",
"approle_auth_path": "path-to-approle"
}
)
@ -157,6 +158,8 @@ def test_hashi_secret_credential_source(run_module, admin_user, organization, so
assert cis.metadata['secret_backend'] == "backend"
assert cis.metadata['secret_key'] == "a_key"
assert cis.source_credential.name == source_cred_hashi_secret.name
assert cis.source_credential.approle_auth_path == \
source_cred_hashi_secret.inputs["approle_auth_path"]
assert cis.target_credential.name == tgt_cred.name
assert cis.input_field_name == 'password'
assert result['id'] == cis.pk