]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
s3: fix: Changed test so that it accepts the character that has % sign in it as a key
authorEmin <emin.sunacoglu@clyso.com>
Mon, 26 May 2025 14:10:19 +0000 (16:10 +0200)
committerCasey Bodley <cbodley@redhat.com>
Thu, 19 Jun 2025 16:18:55 +0000 (12:18 -0400)
(cherry picked from commit cca670f505fac6d448edf721cb83ecc4eb58eae8)

s3tests_boto3/functional/test_s3.py

index 6e62aa737eaaec0cc5297a05cb6eb9d0835c00c4..833f54d5ecbf1ac246aecb97e23490303e3a6740 100644 (file)
@@ -17449,5 +17449,7 @@ def test_upload_part_copy_percent_encoded_key():
             CopySource={'Bucket': bucket_name, 'Key': raw_key}
         )
 
-    error = exc_info.value.response["Error"]
-    assert error["Code"] == "InvalidArgument"
\ No newline at end of file
+    # Download the object and verify content
+    final_obj = s3_client.get_object(Bucket=bucket_name, Key=key)
+    content = final_obj['Body'].read()
+    assert content == b"foo"
\ No newline at end of file