Merge branch 'master' into PRWLR-6129-review-check-report-init-for-region-resource-id-resource-arn

This commit is contained in:
Pepe Fagoaga authored and GitHub committed 2025-02-05 14:08:25 +05:45
commit dfcaeb3bd4
61 files changed
+1045 -550

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@ class TestOCSF:
"vendor_name": "Prowler",
"version": prowler_version,
},
"version": "1.3.0",
"version": "1.4.0",
"profiles": ["cloud", "datetime"],
"tenant_uid": "test-organization-id",
},
+3 -3
View File
@@ -21,7 +21,6 @@ from prowler.lib.outputs.utils import (
class TestOutputs:
def test_set_report_color(self):
test_status = ["PASS", "FAIL", "MANUAL"]
test_colors = [Fore.GREEN, Fore.RED, Fore.YELLOW]
@@ -35,8 +34,9 @@ class TestOutputs:
with pytest.raises(Exception) as exc:
set_report_color(test_status)
assert "Invalid Report Status. Must be PASS, FAIL or MANUAL" in str(exc.value)
assert exc.type == Exception
assert "Invalid Report Status: INVALID. Must be PASS, FAIL or MANUAL" in str(
exc.value
)
def test_unroll_list_no_separator(self):
list = ["test", "test1", "test2"]