]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rgw/multisite: test error handling of forwarded s3:PutBucketPolicy 62993/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 28 Apr 2025 17:00:00 +0000 (13:00 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 15:17:32 +0000 (11:17 -0400)
commitf8a44d9fa4c50725b036a289591388987a119e46
tree8fbd7763e03a37796dd44a2fbd435973e3e0a4f5
parent3e9faa4de0d210623f7482aa243384ed1eaf1350
test/rgw/multisite: test error handling of forwarded s3:PutBucketPolicy

PutBucketPolicy doesn't parse the given policy until after it's
forwarded and applied on the master zone, so add a test that sends a
non-json policy document that will fail to parse

without the fix to rgw_forward_request_to_master(), the InvalidArgument
error Code is still mapped correctly, but the error Message is not
preserved:

>     assert e.response['Error']['Message']
> AssertionError

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/rgw/rgw_multi/tests.py