mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-22 09:29:43 +00:00
test extra complete_multipart_upload()
After the 1st successfull one should also return 200 OK related tracker issue: https://tracker.ceph.com/issues/50141 related pr: https://github.com/ceph/ceph/pull/40594 Signed-off-by: Mark Kogan <mkogan@redhat.com>
This commit is contained in:
parent
55d8ef2a7e
commit
99d4b329e2
1 changed files with 4 additions and 0 deletions
|
@ -6720,6 +6720,8 @@ def test_multipart_upload_small():
|
||||||
response = client.complete_multipart_upload(Bucket=bucket_name, Key=key1, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
response = client.complete_multipart_upload(Bucket=bucket_name, Key=key1, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||||
response = client.get_object(Bucket=bucket_name, Key=key1)
|
response = client.get_object(Bucket=bucket_name, Key=key1)
|
||||||
eq(response['ContentLength'], objlen)
|
eq(response['ContentLength'], objlen)
|
||||||
|
# check extra client.complete_multipart_upload
|
||||||
|
response = client.complete_multipart_upload(Bucket=bucket_name, Key=key1, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||||
|
|
||||||
def _create_key_with_random_content(keyname, size=7*1024*1024, bucket_name=None, client=None):
|
def _create_key_with_random_content(keyname, size=7*1024*1024, bucket_name=None, client=None):
|
||||||
if bucket_name is None:
|
if bucket_name is None:
|
||||||
|
@ -6936,6 +6938,8 @@ def test_multipart_upload():
|
||||||
|
|
||||||
(upload_id, data, parts) = _multipart_upload(bucket_name=bucket_name, key=key, size=objlen, content_type=content_type, metadata=metadata)
|
(upload_id, data, parts) = _multipart_upload(bucket_name=bucket_name, key=key, size=objlen, content_type=content_type, metadata=metadata)
|
||||||
client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||||
|
# check extra client.complete_multipart_upload
|
||||||
|
client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||||
|
|
||||||
response = client.head_bucket(Bucket=bucket_name)
|
response = client.head_bucket(Bucket=bucket_name)
|
||||||
rgw_bytes_used = int(response['ResponseMetadata']['HTTPHeaders'].get('x-rgw-bytes-used', objlen))
|
rgw_bytes_used = int(response['ResponseMetadata']['HTTPHeaders'].get('x-rgw-bytes-used', objlen))
|
||||||
|
|
Loading…
Reference in a new issue