mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(browser auth): fix browser auth in Azure to include tenant id (#2415)
Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Co-authored-by: Pepe Fagoaga <pepe@verica.io>
This commit is contained in:
@@ -924,6 +924,14 @@ class Test_Parser:
|
||||
assert parsed.provider == "azure"
|
||||
assert parsed.browser_auth
|
||||
|
||||
def test_parser_azure_tenant_id(self):
|
||||
argument = "--tenant-id"
|
||||
tenant_id = "test-tenant-id"
|
||||
command = [prowler_command, "azure", argument, tenant_id]
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.provider == "azure"
|
||||
assert parsed.tenant_id == tenant_id
|
||||
|
||||
def test_parser_azure_auth_az_cli(self):
|
||||
argument = "--az-cli-auth"
|
||||
command = [prowler_command, "azure", argument]
|
||||
|
||||
Reference in New Issue
Block a user