-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
add test for S3 LegalHold when targeting object version #8291
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
Conversation
cba82e1
to
3af808c
Compare
@@ -3887,6 +3887,89 @@ def test_s3_sse_default_kms_key( | |||
response = aws_client.s3.get_object(Bucket=bucket_1, Key=key_name) | |||
snapshot.match("get-obj-default-kms-s3-key-from-bucket", response) | |||
|
|||
@pytest.mark.aws_validated | |||
@pytest.mark.skip_snapshot_verify(paths=["$..ServerSideEncryption"]) |
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 are we skipping to verify the path ServerSideEncryption
?
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.
Because AWS now has server side encryption by default on all newly created buckets: https://docs.aws.amazon.com/AmazonS3/latest/userguide/default-encryption-faq.html
This behaviour is not yet in moto or LocalStack, so we need to skip the return value for now. All newly created tests now have to have this skip until we fix it 😞
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.
Have one question about snapshot else LGTM.
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.
Have one question about snapshot else LGTM.
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.
Have one question about snapshot else LGTM.
3af808c
to
1ffab12
Compare
1ffab12
to
545b737
Compare
This PR adds test to check the behaviour and the fix of getmoto/moto#6295
This PR builds on #8326
This will confirm the fix for #8183