-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ETL-654] Clean up before integration test run #121
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.
LGTM! Just a couple of comments
Quality Gate passedIssues Measures |
@@ -517,6 +541,28 @@ def glue_crawler_role(namespace): | |||
role_name = f"{namespace}-pytest-crawler-role" | |||
glue_service_policy_arn = "arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole" | |||
s3_read_policy_arn = "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess" | |||
|
|||
# Cleanup if the role/policy already exist |
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.
Oh, were we running into role/policy duplicates/conflicts here when trying to create role when it already exists?
NVM I see what is happening. If the tests abruptly fail, sometimes the role/crawler/database might have been created already and not deleted properly because test failed prior to that. So next time the tests are run, it can run into an error.
These changes looks good to me
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.
Exactly! This is to make sure we're always running the test from a known state.
Problem:
Solution:
Testing: