-
Notifications
You must be signed in to change notification settings - Fork 3
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
Accounts - cloud and posture #546
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Failed to generate code suggestions for PR |
…g Kubescape installation
PROVIDER_AZURE = "azure" | ||
PROVIDER_GCP = "gcp" | ||
|
||
# a generated good arn from Eran aws dev account - consider moving to an env var? |
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.
why not?
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.
how we handle these kind of "secrets"
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.
it's not really a secret, maybe i'll add it as env var.
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.
and it manged in github not in code?
"capabilities.vulnerabilityScan": "disable", | ||
"grypeOfflineDB.enabled": "false", | ||
"capabilities.relevancy": "disabled", | ||
# "capabilities.runtimeObservability": "disable", |
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.
why cooment?
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.
no need for this in the this test
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.
so just leave it disabled or delete it
self.delete_and_validate_cloud_account(guid) | ||
self.test_cloud_accounts_guids.remove(guid) | ||
|
||
Logger.logger.info('Stage 7: Validate cspm results apis - TODO') |
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.
this is for the scan results? or just for the scanState updates
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.
whatever you'll need to test here, but we will need to test anything related with the scan itself.
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.
ok,
i think it will be different flow
guid = res["response"][0]["guid"] | ||
return guid | ||
|
||
def validate_accounts_cloud_uniquevalues(self, cloud_account_name:str): |
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.
why validating only name and not validate all abviable fields for more cover?
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 might expand it later it, for now just to make sure the api works
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.
ok
PR Type
Enhancement, Tests
Description
Changes walkthrough 📝
tests.py
Add AccountsTests to system test suite
configurations/system/tests.py
backend_api.py
Add accounts management API endpoints and methods
infrastructure/backend_api.py
accounts_tests.py
Create AccountsTests test class
configurations/system/tests_cases/accounts_tests.py
accounts.py
Implement accounts testing scenarios
tests_scripts/accounts/accounts.py
system_test_mapping.json
Add accounts test mapping configuration
system_test_mapping.json