Skip to content

Commit a94db0f

Browse files
committed
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 <[email protected]>
1 parent 7aec001 commit a94db0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/rgw/bucket_notification/test_bn.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4536,6 +4536,9 @@ def test_ps_s3_notification_push_kafka_security_sasl_scram():
45364536
@attr('http_test')
45374537
def test_persistent_ps_s3_reload():
45384538
""" do a realm reload while we send notifications """
4539+
if get_config_cluster() == 'noname':
4540+
return SkipTest('realm is needed for reload test')
4541+
45394542
conn = connection()
45404543
zonegroup = get_config_zonegroup()
45414544

@@ -4642,6 +4645,8 @@ def test_persistent_ps_s3_reload():
46424645
@attr('data_path_v2_test')
46434646
def test_persistent_ps_s3_data_path_v2_migration():
46444647
""" test data path v2 persistent migration """
4648+
if get_config_cluster() == 'noname':
4649+
return SkipTest('realm is needed for migration test')
46454650
conn = connection()
46464651
zonegroup = get_config_zonegroup()
46474652

@@ -4780,6 +4785,8 @@ def test_persistent_ps_s3_data_path_v2_migration():
47804785
@attr('data_path_v2_test')
47814786
def test_ps_s3_data_path_v2_migration():
47824787
""" test data path v2 migration """
4788+
if get_config_cluster() == 'noname':
4789+
return SkipTest('realm is needed for migration test')
47834790
conn = connection()
47844791
zonegroup = get_config_zonegroup()
47854792

@@ -4895,6 +4902,8 @@ def test_ps_s3_data_path_v2_migration():
48954902
@attr('data_path_v2_test')
48964903
def test_ps_s3_data_path_v2_large_migration():
48974904
""" test data path v2 large migration """
4905+
if get_config_cluster() == 'noname':
4906+
return SkipTest('realm is needed for migration test')
48984907
conn = connection()
48994908
connections_list = []
49004909
connections_list.append(conn)
@@ -5023,6 +5032,8 @@ def test_ps_s3_data_path_v2_large_migration():
50235032
@attr('data_path_v2_test')
50245033
def test_ps_s3_data_path_v2_mixed_migration():
50255034
""" test data path v2 mixed migration """
5035+
if get_config_cluster() == 'noname':
5036+
return SkipTest('realm is needed for migration test')
50265037
conn = connection()
50275038
connections_list = []
50285039
connections_list.append(conn)

0 commit comments

Comments
 (0)