sse: expects encryption response header on put/get

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2021-12-16 14:32:59 -05:00 committed by Ali Maredia
parent a31f5dfa59
commit a441c10f97

View file

@ -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)