]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rgw/multisite: test error handling of forwarded iam:DeleteRole
authorCasey Bodley <cbodley@redhat.com>
Sun, 27 Apr 2025 16:44:40 +0000 (12:44 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 2 May 2025 13:33:42 +0000 (09:33 -0400)
commit5fcf10087b1ea9216c50956c3cfbfe91388795a5
treea8d6504ff0900a607bea97144980afad83d4ad13
parent902d400508bd62f98455b7685dde1fc25dd4d7f6
test/rgw/multisite: test error handling of forwarded iam:DeleteRole

DeleteRole's conflict handling happens after forwarding, so use
test_role_delete_sync() to test that forwarded 409 Conflict errors
preserve the DeleteConflict code and error message

without the fix to forward_iam_request_to_master(), DeleteRole instead
fails with:

> botocore.exceptions.ClientError: An error occurred (BucketNotEmpty) when calling the DeleteRole operation: None

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3e9faa4de0d210623f7482aa243384ed1eaf1350)
src/test/rgw/rgw_multi/tests.py