From a441c10f97fa2f8d3fec283e7b28a65d2b0b0c0d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 16 Dec 2021 14:32:59 -0500 Subject: [PATCH] sse: expects encryption response header on put/get Signed-off-by: Casey Bodley --- s3tests_boto3/functional/test_s3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 5c17072..db9f697 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -13527,9 +13527,11 @@ def _test_sse_s3_default_upload(file_size): _put_bucket_encryption(client, bucket_name) data = 'A'*file_size - client.put_object(Bucket=bucket_name, Key='testobj', Body=data) + response = client.put_object(Bucket=bucket_name, Key='testobj', Body=data) + eq(response['ResponseMetadata']['HTTPHeaders']['x-amz-server-side-encryption'], 'AES256') response = client.get_object(Bucket=bucket_name, Key='testobj') + eq(response['ResponseMetadata']['HTTPHeaders']['x-amz-server-side-encryption'], 'AES256') body = _get_body(response) eq(body, data)