mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
test etag on mpu complete replies
this is to cover the fix of: https://tracker.ceph.com/issues/58879
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit a28d46fa2a
)
This commit is contained in:
parent
75f5210436
commit
4638a40e47
1 changed files with 2 additions and 1 deletions
|
@ -6266,7 +6266,8 @@ def _do_test_multipart_upload_contents(bucket_name, key, num_parts):
|
|||
response = client.upload_part(UploadId=upload_id, Bucket=bucket_name, Key=key, PartNumber=num_parts+1, Body=last_part)
|
||||
parts.append({'ETag': response['ETag'].strip('"'), 'PartNumber': num_parts+1})
|
||||
|
||||
client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||
res = client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
|
||||
assert res['ETag'] != ''
|
||||
|
||||
response = client.get_object(Bucket=bucket_name, Key=key)
|
||||
test_string = _get_body(response)
|
||||
|
|
Loading…
Reference in a new issue