chore(role arguments): enhance role arguments validation (#3240)

This commit is contained in:
Sergio Garcia
2024-01-08 14:41:52 +01:00
committed by GitHub
parent 80b88a9365
commit 1df84ef6e4
5 changed files with 24 additions and 13 deletions

View File

@@ -393,7 +393,7 @@ class Test_Set_Audit_Info:
with pytest.raises(SystemExit) as exception:
_ = set_provider_audit_info(provider, arguments)
# assert exception == "To use -I/-T options -R option is needed"
# assert exception == "To use -I/--external-id, -T/--session-duration or --role-session-name options -R/--role option is needed"
assert isinstance(exception, pytest.ExceptionInfo)
def test_set_audit_info_external_id_without_role(self):
@@ -413,5 +413,5 @@ class Test_Set_Audit_Info:
with pytest.raises(SystemExit) as exception:
_ = set_provider_audit_info(provider, arguments)
# assert exception == "To use -I/-T options -R option is needed"
# assert exception == "To use -I/--external-id, -T/--session-duration or --role-session-name options -R/--role option is needed"
assert isinstance(exception, pytest.ExceptionInfo)