Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(muted): handle new Muted status #3570

Merged
merged 5 commits into from Mar 19, 2024
Merged

chore(muted): handle new Muted status #3570

merged 5 commits into from Mar 19, 2024

Conversation

sergargar
Copy link
Member

Description

Handle new Muted status in check with mute_non_default_regions variable.

License

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

@sergargar sergargar marked this pull request as ready for review March 19, 2024 15:00
@sergargar sergargar requested a review from a team as a code owner March 19, 2024 15:00
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.20%. Comparing base (628a3c4) to head (11866b8).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           prowler-4.0-dev    #3570      +/-   ##
===================================================
- Coverage            86.21%   86.20%   -0.01%     
===================================================
  Files                  703      703              
  Lines                21633    21631       -2     
===================================================
- Hits                 18650    18648       -2     
  Misses                2983     2983              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -11,16 +11,17 @@
from prowler.lib.utils.utils import hash_sha512


def generate_json_asff_status(status: str) -> str:
def generate_json_asff_status(status: str, muted: bool = False) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you calling this function with the new muted field?
Please add a test to check the new behaviour?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added where it is needed, good catch. There is already a test for this.

jfagoagas
jfagoagas previously approved these changes Mar 19, 2024
@jfagoagas jfagoagas self-requested a review March 19, 2024 15:59
@sergargar sergargar merged commit fe80821 into prowler-4.0-dev Mar 19, 2024
11 checks passed
@sergargar sergargar deleted the fix-muted branch March 19, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants