]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/notifications: Add tests for RGWPSListTopicsOp::execute() 60788/head
authorOshrey Avraham <oshrey16@gmail.com>
Wed, 18 Dec 2024 14:23:40 +0000 (16:23 +0200)
committerOshrey Avraham <oshrey16@gmail.com>
Wed, 18 Dec 2024 14:23:40 +0000 (16:23 +0200)
commit65614c4ca4429edd9c7084c12ec2708d11d293a6
treeb0ccc5bed6d2a701da51c4fca53b855339ceddee
parent801186f68358b104637479a9c9345e925c1a31d0
rgw/notifications: Add tests for RGWPSListTopicsOp::execute()

Tests:
Add comprehensive test cases to verify the behavior of `RGWPSListTopicsOp::execute()` under various scenarios:

    Migration case: Validate correct handling when `support_all_zones` is enabled, with v1 in a new state after migration and v2 topics present.
    v2 notification case: Ensure proper retrieval when v2 notifications are supported.
    v1 notification case: Verify fallback behavior when v2 notifications are unavailable.

Enhancements:
    Update `delete_all_topics` to handle v1 responses with the `result` key.

fixes: https://tracker.ceph.com/issues/68756
Signed-off-by: Oshrey Avraham <oshrey16@gmail.com>
src/test/rgw/bucket_notification/api.py
src/test/rgw/bucket_notification/test_bn.py