mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 06:45:08 +00:00
feat(ignore unused services): add --ignore-unused-services argument to ignore findings from services not in actual use (#2936)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user