]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test etag on mpu complete replies
authorYuval Lifshitz <ylifshit@ibm.com>
Mon, 25 Mar 2024 16:45:06 +0000 (16:45 +0000)
committerCasey Bodley <cbodley@redhat.com>
Wed, 27 Mar 2024 14:21:26 +0000 (10:21 -0400)
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 a28d46fa2aa5cdc4fb36e543cdbde188115be989)

s3tests_boto3/functional/test_s3.py

index b99e0bcd4614304ed704c2bd27dfe6d7ef6468fe..d5ab01a27293a4afc7cc6bad3d3cdc1a58d4fea1 100644 (file)
@@ -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)