mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
rename 'approle_auth_path' to 'default_auth_path' & fix kwargs.get
This commit is contained in:
@@ -123,7 +123,7 @@ def source_cred_hashi_secret(organization):
|
||||
"token": "myApiKey",
|
||||
"role_id": "role",
|
||||
"secret_id": "secret",
|
||||
"approle_auth_path": "path-to-approle"
|
||||
"default_auth_path": "path-to-approle"
|
||||
}
|
||||
)
|
||||
|
||||
@@ -158,8 +158,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user