-
Notifications
You must be signed in to change notification settings - Fork 81
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 s3_datasets and s3_datasets_shares tests #1325
Conversation
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 see in conftest there is def share_item_folder
which includes defining ShareObjectItem(...)
with parameter S3AccessPointName
which no longer exists
This fixture is not used anywhere in the tests and all tests pass but I imagine this is part of the improvements to conftests to come later
@@ -192,6 +192,7 @@ def check_target_role_access_policy(self) -> None: | |||
version_id, policy_document = IAM.get_managed_policy_default_version( | |||
self.target_environment.AwsAccountId, self.target_environment.region, share_resource_policy_name | |||
) | |||
logger.info(f'Policy... {policy_document}') |
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.
nit: is this leftover form debugging or want to keep for logging?
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.
tests all passing and refactored changes lgtm
Feature or Bugfix
Detail
With the refactoring of the datasets and the datasets_sharing tests were not being executed. In this PR the corresponding tests packages are renamed and the tests inside are fixed with the latest changes in main.
There are still things to improve, for example we can simplify the conftests of the s3_datasets and the s3_datasets_shars modules; but I am going to leave it for a next PR
Relates
Security
Please answer the questions below briefly where applicable, or write
N/A
. Based onOWASP 10.
fetching data from storage outside the application (e.g. a database, an S3 bucket)?
eval
or similar functions are used?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.