forked from TrueCloudLab/s3-tests
sse: expects encryption response header on put/get
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
a31f5dfa59
commit
a441c10f97
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue