From: Emin Date: Mon, 26 May 2025 14:10:19 +0000 (+0200) Subject: s3: fix: Changed test so that it accepts the character that has % sign in it as a key X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3c92f798d4eb5237b700c47e1f0b3676f17c7e25;p=s3-tests.git s3: fix: Changed test so that it accepts the character that has % sign in it as a key (cherry picked from commit cca670f505fac6d448edf721cb83ecc4eb58eae8) --- diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 6e62aa73..833f54d5 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -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