-
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
test unhealthy shares #1649
test unhealthy shares #1649
Conversation
d1f3c09
to
13c615f
Compare
d3da001
to
85969b3
Compare
@@ -285,16 +285,16 @@ def persistent_group_share_1( | |||
def persistent_role_share_1( | |||
client5, | |||
client1, | |||
updated_persistent_env1, | |||
updated_persistent_cross_acc_env_1, | |||
persistent_env1, |
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.
same as above
db_name = f'dataall_{share.dataset.datasetName}_{share.dataset.datasetUri}_shared'.replace('-', '_') | ||
lf_client.revoke_db_perms(principal_role.arn, db_name, ['DESCRIBE']) | ||
# verify all items are `Unhealthy` | ||
check_verify_share_items(client5, share.shareUri, expected_health_status=['Unhealthy']) |
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.
Should we add the check of the reasons, why share is Unhealthy? I mean, check, that the status message corresponds the things that is broken?
reapply_items_share_object(client1, share_uri, item_uris) | ||
share_object = get_share_object(client1, share_uri) | ||
assert_that(share_object['items'].nodes).extracting('healthStatus').contains_only('PendingReApply') | ||
check_share_items_verified(client1, share_uri) |
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.
After share is reapplied, we need to check, that now it's healthy
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.
good catch, I meant to do check_verify_share_items
85969b3
to
0a41428
Compare
Feature or Bugfix
Detail
New tests
Imrpovements
Relates
Solves parts of #1376
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.