mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(config): Pass a configuration file using --config-file config.yaml (#2679)
This commit is contained in:
@@ -916,6 +916,20 @@ class Test_Parser:
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.aws_retries_max_attempts == int(max_retries)
|
||||
|
||||
def test_aws_parser_config_file(self):
|
||||
argument = "--config-file"
|
||||
config_file = "./test-config.yaml"
|
||||
command = [prowler_command, argument, config_file]
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.config_file == config_file
|
||||
|
||||
def test_aws_parser_sts_endpoint_region(self):
|
||||
argument = "--sts-endpoint-region"
|
||||
sts_endpoint_region = "eu-west-1"
|
||||
command = [prowler_command, argument, sts_endpoint_region]
|
||||
parsed = self.parser.parse(command)
|
||||
assert parsed.sts_endpoint_region == sts_endpoint_region
|
||||
|
||||
def test_parser_azure_auth_sp(self):
|
||||
argument = "--sp-env-auth"
|
||||
command = [prowler_command, "azure", argument]
|
||||
|
||||
Reference in New Issue
Block a user