mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
feat(aws): Add MFA flag if try to assume role in AWS (#2478)
Co-authored-by: Pepe Fagoaga <pepe@verica.io> Co-authored-by: Sergio Garcia <sergargar1@gmail.com>
This commit is contained in:
@@ -677,6 +677,12 @@ class Test_Parser:
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.role == role
|
||||
|
||||
def test_aws_parser_mfa(self):
|
||||
argument = "--mfa"
|
||||
command = [prowler_command, argument]
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.mfa
|
||||
|
||||
def test_aws_parser_session_duration_short(self):
|
||||
argument = "-T"
|
||||
duration = "900"
|
||||
|
||||
Reference in New Issue
Block a user