From a94db0f179b24d9f417285410e0cf3a794b1ca5c Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Wed, 22 May 2024 19:04:45 +0000 Subject: [PATCH] test/rgw/notifications: skip reload tests when there is no realm this does not impact teuthology, only local runs. in teuthology all bucket notification tests are defined with a realm Signed-off-by: Yuval Lifshitz --- src/test/rgw/bucket_notification/test_bn.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/rgw/bucket_notification/test_bn.py b/src/test/rgw/bucket_notification/test_bn.py index 8e1dc7b2a2bf6..a33ab8dfff4c8 100644 --- a/src/test/rgw/bucket_notification/test_bn.py +++ b/src/test/rgw/bucket_notification/test_bn.py @@ -4536,6 +4536,9 @@ def test_ps_s3_notification_push_kafka_security_sasl_scram(): @attr('http_test') def test_persistent_ps_s3_reload(): """ do a realm reload while we send notifications """ + if get_config_cluster() == 'noname': + return SkipTest('realm is needed for reload test') + conn = connection() zonegroup = get_config_zonegroup() @@ -4642,6 +4645,8 @@ def test_persistent_ps_s3_reload(): @attr('data_path_v2_test') def test_persistent_ps_s3_data_path_v2_migration(): """ test data path v2 persistent migration """ + if get_config_cluster() == 'noname': + return SkipTest('realm is needed for migration test') conn = connection() zonegroup = get_config_zonegroup() @@ -4780,6 +4785,8 @@ def test_persistent_ps_s3_data_path_v2_migration(): @attr('data_path_v2_test') def test_ps_s3_data_path_v2_migration(): """ test data path v2 migration """ + if get_config_cluster() == 'noname': + return SkipTest('realm is needed for migration test') conn = connection() zonegroup = get_config_zonegroup() @@ -4895,6 +4902,8 @@ def test_ps_s3_data_path_v2_migration(): @attr('data_path_v2_test') def test_ps_s3_data_path_v2_large_migration(): """ test data path v2 large migration """ + if get_config_cluster() == 'noname': + return SkipTest('realm is needed for migration test') conn = connection() connections_list = [] connections_list.append(conn) @@ -5023,6 +5032,8 @@ def test_ps_s3_data_path_v2_large_migration(): @attr('data_path_v2_test') def test_ps_s3_data_path_v2_mixed_migration(): """ test data path v2 mixed migration """ + if get_config_cluster() == 'noname': + return SkipTest('realm is needed for migration test') conn = connection() connections_list = [] connections_list.append(conn) -- 2.39.5