mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-22 09:29:43 +00:00
expect 400 for missing sse headers
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
a2a383e77f
commit
42debb8be7
1 changed files with 6 additions and 6 deletions
|
@ -8138,9 +8138,9 @@ def test_encryption_key_no_sse_c():
|
||||||
}
|
}
|
||||||
key = bucket.new_key('testobj')
|
key = bucket.new_key('testobj')
|
||||||
data = 'A'*100
|
data = 'A'*100
|
||||||
key.set_contents_from_string(data, headers=sse_client_headers)
|
e = assert_raises(boto.exception.S3ResponseError,
|
||||||
rdata = key.get_contents_as_string()
|
key.set_contents_from_string, data, headers=sse_client_headers)
|
||||||
eq(data, rdata)
|
eq(e.status, 400)
|
||||||
|
|
||||||
|
|
||||||
def _multipart_upload_enc(bucket, s3_key_name, size, part_size=5*1024*1024,
|
def _multipart_upload_enc(bucket, s3_key_name, size, part_size=5*1024*1024,
|
||||||
|
@ -8486,9 +8486,9 @@ def test_sse_kms_not_declared():
|
||||||
}
|
}
|
||||||
key = bucket.new_key('testobj')
|
key = bucket.new_key('testobj')
|
||||||
data = 'A'*100
|
data = 'A'*100
|
||||||
key.set_contents_from_string(data, headers=sse_kms_client_headers)
|
e = assert_raises(boto.exception.S3ResponseError,
|
||||||
rdata = key.get_contents_as_string()
|
key.set_contents_from_string, data, headers=sse_kms_client_headers)
|
||||||
eq(data, rdata)
|
eq(e.status, 400)
|
||||||
|
|
||||||
|
|
||||||
@attr(resource='object')
|
@attr(resource='object')
|
||||||
|
|
Loading…
Reference in a new issue