-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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/gcp/cloudsql #232
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #232 +/- ##
===========================================
+ Coverage 34.92% 35.17% +0.24%
===========================================
Files 170 174 +4
Lines 5663 5715 +52
===========================================
+ Hits 1978 2010 +32
- Misses 3685 3705 +20
Continue to review full report at Codecov.
|
👏 👏 👏 |
Could you please merge with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes because I guess the UI didn't like those changes either! Otherwise, good stuff!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg
async def fetch_all(self): | ||
raw_backups = await self.gcp_facade.cloudsql.get_backups(self.project_id, self.instance_name) | ||
for raw_backup in raw_backups: | ||
if raw_backup['status'] == 'SUCCESSFUL': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it was like that before, but what about the failed backups? (should we add an issue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess they are considered not to be relevant, but @j4v would know more!
And yes, it was indeed this way before!
ScoutSuite/providers/gcp/resources/cloudsql/database_instances.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w8
Migrated GCP's Cloud SQL service to the new architecture.
Note that
gcp/resources/projects.py
andgcp/facade/base.py
are the same as in the Stackdriver logging PR and the IAM PR; they are simply shared by all services and will appear in all GCP refactoring PRs until one of the services is merged.