feat(ignore unused services): add --ignore-unused-services argument to ignore findings from services not in actual use (#2936)

This commit is contained in:
Sergio Garcia
2023-10-24 14:09:27 +02:00
committed by GitHub
parent 2aa3126eb0
commit b822c19d2c
89 changed files with 4587 additions and 1157 deletions

View File

@@ -75,6 +75,7 @@ class Test_Parser:
assert not parsed.shodan
assert not parsed.allowlist_file
assert not parsed.resource_tags
assert not parsed.ignore_unused_services
def test_default_parser_no_arguments_azure(self):
provider = "azure"
@@ -970,6 +971,12 @@ class Test_Parser:
parsed = self.parser.parse(command)
assert parsed.aws_retries_max_attempts == int(max_retries)
def test_aws_parser_ignore_unused_services(self):
argument = "--ignore-unused-services"
command = [prowler_command, argument]
parsed = self.parser.parse(command)
assert parsed.ignore_unused_services
def test_aws_parser_config_file(self):
argument = "--config-file"
config_file = "./test-config.yaml"