]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commit
test_s3: fix test_bucket_logging_request_id for newer botocore 751/head
authorcheese-cakee <farzanaman99@gmail.com>
Fri, 15 May 2026 20:02:36 +0000 (01:32 +0530)
committercheese-cakee <farzanaman99@gmail.com>
Fri, 15 May 2026 20:36:53 +0000 (02:06 +0530)
commitedb88510326f2ca0311b3a69815529619e4fd64e
treea2b34785c28ed351cfe07274e863866051f9c071
parent4d3c33df3d4827c0f8952f35d8061b0c5d9849d0
test_s3: fix test_bucket_logging_request_id for newer botocore

The test was using a boto3 event handler to capture the x-amz-request-id
header, incorrectly accessing kwargs["response"] in an after-call event.
Botocore's after-call event does not pass a "response" kwarg; it passes
"parsed", "http_response", "model", and "context". Fix by reading the
request ID directly from the put_object() response, which is simpler and
works across all botocore versions.

Fixes: https://tracker.ceph.com/issues/76587
Signed-off-by: cheese-cakee <farzanaman99@gmail.com>
s3tests/functional/test_s3.py