Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashivault_kv auth_path moved from metadata to inputs #7991

Merged
merged 6 commits into from
Sep 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[credential_plugin/hashivault] edit tests
  • Loading branch information
Benoit Bayszczak committed Aug 28, 2020
commit e8b54abec452d86a3b6a5aea9a4e8eb90813c6aa
5 changes: 4 additions & 1 deletion awx_collection/test/awx/test_credential_input_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
bbayszczak marked this conversation as resolved.
Show resolved Hide resolved
}
)

Expand Down Expand Up @@ -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"]
bbayszczak marked this conversation as resolved.
Show resolved Hide resolved
assert cis.target_credential.name == tgt_cred.name
assert cis.input_field_name == 'password'
assert result['id'] == cis.pk
Expand Down