]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw/notifications: skip reload tests when there is no realm 57639/head
authorYuval Lifshitz <ylifshit@ibm.com>
Wed, 22 May 2024 19:04:45 +0000 (19:04 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Wed, 22 May 2024 19:04:45 +0000 (19:04 +0000)
this does not impact teuthology, only local runs.
in teuthology all bucket notification tests are defined with a realm

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/test/rgw/bucket_notification/test_bn.py

index 8e1dc7b2a2bf66c967dc1db887ab94175f1f5d2a..a33ab8dfff4c83e7295baa4d8f806ee1b071f832 100644 (file)
@@ -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)