mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 20:33:41 +00:00
Merge branch 'master' into PRWLR-6129-review-check-report-init-for-region-resource-id-resource-arn
This commit is contained in:
61 files changed
+1045
-550
No files matched your search
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user