Skip to content

Commit

Permalink
add doc strings and adjust entry point in pyproject toml
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoubl3j committed Aug 29, 2024
1 parent 716c1ed commit b8707cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ x = "awx_plugins.credentials.x.api:XPlugin"
[project.entry-points."awx.credential_plugins"] # pre-existing entry points group name
x = "awx_plugins.credentials.x.api:XPlugin"
# conjur = awx.main.credential_plugins.conjur:conjur_plugin
aws_assumerole = awx_plugins.credentials.aws_assumerole:aws_assumerole_plugin
"aws_assumerole = awx_plugins.credentials.aws_assumerole:aws_assumerole_plugin"

[project.license]
file = "LICENSE"
Expand Down
6 changes: 6 additions & 0 deletions tests/credential_plugins_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def test_hashivault_handle_auth_not_enough_args():


def test_aws_assumerole_with_accesssecret():
'''
Test that the aws_assumerole_backend function call returns a token given the access_key and secret_key.
'''
kwargs = {
'access_key': 'my_access_key',
'secret_key': 'my_secret_key',
Expand Down Expand Up @@ -166,6 +169,9 @@ def test_aws_assumerole_with_accesssecret():


def test_aws_assumerole_with_arnonly():
'''
Test backend function with only the role ARN provided.
'''
kwargs = {
'role_arn': 'the_arn',
'identifier': 'access_token',
Expand Down

0 comments on commit b8707cb

Please sign in to comment.