Skip to content

Commit

Permalink
chore: solve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCloudSec committed Jan 10, 2025
1 parent bfc21e3 commit 81eb14c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prowler/lib/outputs/ocsf/ocsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def transform(self, findings: List[Finding]) -> None:
type=finding.metadata.ResourceType,
data={
"details": finding.resource_details,
"metadata": finding.resource_metadata,
# "metadata": finding.resource_metadata, TODO: add the resource_metadata to the finding
},
namespace=finding.region.replace("namespace: ", ""),
)
Expand Down
7 changes: 5 additions & 2 deletions tests/lib/outputs/ocsf/ocsf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ def test_batch_write_data_to_file(self):
{
"cloud_partition": "aws",
"region": "eu-west-1",
"data": {"details": "resource_details", "metadata": {}},
"data": {
"details": "resource_details",
# "metadata": {} TODO: add metadata to the resource details
},
"group": {"name": "test-service"},
"labels": [],
"name": "resource_name",
Expand Down Expand Up @@ -318,7 +321,7 @@ def test_finding_output_cloud_pass_low_muted(self):
assert resource_details[0].region == finding_output.region
assert resource_details[0].data == {
"details": finding_output.resource_details,
"metadata": {},
# "metadata": {}, TODO: add metadata to the resource details
}

resource_details_group = resource_details[0].group
Expand Down

0 comments on commit 81eb14c

Please sign in to comment.