From ffce6d5362cbf5a7a18e2bd2225bb2b4bd14aeb8 Mon Sep 17 00:00:00 2001 From: Ali Masarwa Date: Thu, 23 May 2024 14:08:56 +0300 Subject: [PATCH] RGW|Bucket notification: disable notif v2 to reload realm correctly Signed-off-by: Ali Masarwa (cherry picked from commit cce9b3c63ff0d83b3ab337c7c64b140e007290e1) --- src/test/rgw/bucket_notification/test_bn.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/rgw/bucket_notification/test_bn.py b/src/test/rgw/bucket_notification/test_bn.py index 4a7bded054245..c0ce49bc20cde 100644 --- a/src/test/rgw/bucket_notification/test_bn.py +++ b/src/test/rgw/bucket_notification/test_bn.py @@ -4671,6 +4671,14 @@ def test_persistent_ps_s3_reload(): print('delete all topics') delete_all_topics(conn, '', get_config_cluster()) + # disable v2 notification + result = admin(['zonegroup', 'modify', '--disable-feature=notification_v2'], get_config_cluster()) + assert_equal(result[1], 0) + result = admin(['period', 'update'], get_config_cluster()) + assert_equal(result[1], 0) + result = admin(['period', 'commit'], get_config_cluster()) + assert_equal(result[1], 0) + # create random port for the http server host = get_ip() http_port = random.randint(10000, 20000) -- 2.39.5