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

fix(get_checks_from_input_arn): fix logic and add tests #2764

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

n4ch04
Copy link
Contributor

@n4ch04 n4ch04 commented Aug 23, 2023

Context

get_checks_from_input_arn function was not fully covered by tests and was not working properly, since it did not add checks if there were not include the subservice of the resource arn

Description

Add tests for all the services and sub-services included in the logic and fix the general case

License

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

@n4ch04 n4ch04 requested a review from a team as a code owner August 23, 2023 07:10
Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

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

🔝

@jfagoagas jfagoagas added the provider/aws Issues/PRs related with the AWS provider label Aug 23, 2023
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #2764 (40a64fe) into master (dab2eca) will increase coverage by 0.11%.
Report is 3 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2764      +/-   ##
==========================================
+ Coverage   86.13%   86.25%   +0.11%     
==========================================
  Files         528      531       +3     
  Lines       17098    17217     +119     
==========================================
+ Hits        14728    14850     +122     
+ Misses       2370     2367       -3     
Files Changed Coverage Δ
prowler/providers/aws/aws_provider.py 82.02% <100.00%> (+6.02%) ⬆️

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@n4ch04 n4ch04 merged commit 83bfd8a into master Aug 23, 2023
8 checks passed
@n4ch04 n4ch04 deleted the get-checks-from-input-arn-tests branch August 23, 2023 07:35
jit-contrib pushed a commit to jit-contrib/prowler that referenced this pull request Sep 28, 2023
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