prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
9.99k stars 1.46k forks source link

chore(test): enhance OCSF tests #4386

Closed pedrooot closed 1 week ago

pedrooot commented 1 week ago

Context

Test on transform from OCSF class wasn't checking all the fields from DetectionFinding

Description

The test is enhanced to check all the fields from the new object.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.59%. Comparing base (bf83f38) to head (ab225cd). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4386 +/- ## ========================================== - Coverage 87.62% 87.59% -0.04% ========================================== Files 851 851 Lines 26600 26600 ========================================== - Hits 23307 23299 -8 - Misses 3293 3301 +8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.