diff --git a/tests/credential_plugins_test.py b/tests/credential_plugins_test.py index eda3d71c35..141242c247 100644 --- a/tests/credential_plugins_test.py +++ b/tests/credential_plugins_test.py @@ -141,13 +141,8 @@ def test_hashivault_handle_auth_not_enough_args() -> None: { 'access_key': 'my_access_key', 'secret_key': 'my_secret_key', - 'role_arn': 'the_arn', - 'identifier': 'access_token', - }, - { - 'role_arn': 'the_arn', - 'identifier': 'access_token', }, + {}, ), ) @pytest.mark.parametrize( @@ -188,7 +183,10 @@ def mock_getcreds( ) token = aws_assumerole.aws_assumerole_backend( - **kwargs, identifier=identifier_key or kwargs['identifier']) + identifier=identifier_key or 'access_token', + role_arn='the_arn', + **kwargs, + ) assert token == expected