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:
Nacho Rivera
2023-06-02 13:22:43 +02:00
committed by GitHub
parent 714d0d4092
commit 15a7de7b24
5 changed files with 45 additions and 7 deletions

View File

@@ -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]