From e8b54abec452d86a3b6a5aea9a4e8eb90813c6aa Mon Sep 17 00:00:00 2001 From: Benoit Bayszczak Date: Fri, 28 Aug 2020 17:29:11 +0200 Subject: [PATCH] [credential_plugin/hashivault] edit tests --- awx_collection/test/awx/test_credential_input_source.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx_collection/test/awx/test_credential_input_source.py b/awx_collection/test/awx/test_credential_input_source.py index a676ab15cb..96d768275e 100644 --- a/awx_collection/test/awx/test_credential_input_source.py +++ b/awx_collection/test/awx/test_credential_input_source.py @@ -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