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

Refactoring/aws/rds #271

Merged
merged 14 commits into from
Mar 25, 2019
Merged

Conversation

Aboisier
Copy link
Contributor

This PR migrates RDS to the new architecture, see #183 .

Here are some side effects of the migration:

  • The data structure now contains vpcs even if there are no resources.

@Aboisier Aboisier mentioned this pull request Mar 21, 2019
53 tasks
@codecov-io
Copy link

Codecov Report

Merging #271 into refactoring/resource-configs will increase coverage by 0.31%.
The diff coverage is 37.57%.

Impacted file tree graph

@@                       Coverage Diff                        @@
##           refactoring/resource-configs     #271      +/-   ##
================================================================
+ Coverage                          30.9%   31.22%   +0.31%     
================================================================
  Files                               130      137       +7     
  Lines                              5633     5727      +94     
================================================================
+ Hits                               1741     1788      +47     
- Misses                             3892     3939      +47
Impacted Files Coverage Δ
...coutSuite/providers/aws/resources/rds/snapshots.py 25% <25%> (ø)
ScoutSuite/providers/aws/facade/rds.py 30% <30%> (ø)
ScoutSuite/providers/aws/facade/facade.py 35.59% <33.33%> (-0.13%) ⬇️
...ite/providers/aws/resources/rds/parametergroups.py 35.71% <35.71%> (ø)
...coutSuite/providers/aws/resources/rds/instances.py 40% <40%> (ø)
...Suite/providers/aws/resources/rds/securitygroup.py 41.66% <41.66%> (ø)
ScoutSuite/providers/aws/resources/rds/service.py 47.05% <47.05%> (ø)
...tSuite/providers/aws/resources/rds/subnetgroups.py 50% <50%> (ø)
ScoutSuite/providers/aws/configs/services.py 49.18% <50%> (ø) ⬆️
ScoutSuite/providers/aws/resources/rds/vpcs.py 87.5% <87.5%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c542ca9...bfd239b. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Mar 21, 2019

Codecov Report

Merging #271 into refactoring/resource-configs will increase coverage by 0.32%.
The diff coverage is 37.79%.

Impacted file tree graph

@@                       Coverage Diff                       @@
##           refactoring/resource-configs    #271      +/-   ##
===============================================================
+ Coverage                         30.98%   31.3%   +0.32%     
===============================================================
  Files                               130     137       +7     
  Lines                              5641    5727      +86     
===============================================================
+ Hits                               1748    1793      +45     
- Misses                             3893    3934      +41
Impacted Files Coverage Δ
...coutSuite/providers/aws/resources/rds/snapshots.py 25% <25%> (ø)
ScoutSuite/providers/aws/facade/rds.py 30% <30%> (ø)
...ite/providers/aws/resources/rds/parametergroups.py 35.71% <35.71%> (ø)
...coutSuite/providers/aws/resources/rds/instances.py 40% <40%> (ø)
...uite/providers/aws/resources/rds/securitygroups.py 41.66% <41.66%> (ø)
ScoutSuite/providers/aws/resources/rds/service.py 47.05% <47.05%> (ø)
...tSuite/providers/aws/resources/rds/subnetgroups.py 50% <50%> (ø)
ScoutSuite/providers/aws/facade/facade.py 44.06% <50%> (+0.2%) ⬆️
ScoutSuite/providers/aws/configs/services.py 49.18% <50%> (ø) ⬆️
ScoutSuite/providers/aws/resources/rds/vpcs.py 87.5% <87.5%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77e95ff...1205930. Read the comment docs.

Copy link
Contributor

@vifor2 vifor2 left a comment

Choose a reason for hiding this comment

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

Dayum you're a machine! Btw I think this is perfectly fine as is, but if you ever know how to narrow down the type of error expected I think PyCharm would appreciate. I always get warnings of Exception clause too broad when using lines such as the line 84 of rds.py : except Exception as e:

Copy link
Contributor

@misg misg left a comment

Choose a reason for hiding this comment

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

A* 😍 .

@x4v13r64
Copy link
Collaborator

@Aboisier as part of this PR could you please confirm/resolve the following open issue #14?

@Aboisier Aboisier merged commit 1a6119b into refactoring/resource-configs Mar 25, 2019
@Aboisier Aboisier deleted the refactoring/aws/rds branch March 25, 2019 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants