2020
2121all () ->
2222 [
23- {group , mnesia_store },
24- {group , khepri_store },
23+ {group , routing_tests },
24+ {group , hash_ring_management_tests },
25+ {group , clustered },
2526 {group , khepri_migration }
2627 ].
2728
2829groups () ->
2930 [
30- {mnesia_store , [], [
31- {routing_tests , [], routing_tests ()},
32- {hash_ring_management_tests , [], hash_ring_management_tests ()},
33- {clustered , [], [node_restart ]}
34- ]},
35- {khepri_store , [], [
36- {routing_tests , [], routing_tests ()},
37- {hash_ring_management_tests , [], hash_ring_management_tests ()},
38- {clustered , [], [node_restart ]}
39- ]},
31+ {routing_tests , [], routing_tests ()},
32+ {hash_ring_management_tests , [], hash_ring_management_tests ()},
33+ {clustered , [], [node_restart ]},
4034 {khepri_migration , [], [
4135 from_mnesia_to_khepri
4236 ]}
@@ -80,14 +74,13 @@ init_per_suite(Config) ->
8074end_per_suite (Config ) ->
8175 rabbit_ct_helpers :run_teardown_steps (Config ).
8276
83- init_per_group (mnesia_store , Config ) ->
84- rabbit_ct_helpers :set_config (Config , [{metadata_store , mnesia }]);
85- init_per_group (khepri_store , Config ) ->
86- FFs = [khepri_db ],
87- rabbit_ct_helpers :set_config (Config , [{metadata_store , {khepri , FFs }}]);
88- init_per_group (khepri_migration = Group , Config0 ) ->
89- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , mnesia }]),
90- init_per_group (Group , Config , 1 );
77+ init_per_group (khepri_migration = Group , Config ) ->
78+ case rabbit_ct_broker_helpers :configured_metadata_store (Config ) of
79+ mnesia ->
80+ init_per_group (Group , Config , 1 );
81+ _ ->
82+ {skip , " This group only targets mnesia" }
83+ end ;
9184init_per_group (clustered = Group , Config ) ->
9285 case rabbit_ct_helpers :is_mixed_versions () of
9386 false ->
@@ -111,12 +104,6 @@ init_per_group(Group, Config, NodesCount) ->
111104 rabbit_ct_broker_helpers :setup_steps () ++
112105 rabbit_ct_client_helpers :setup_steps ()).
113106
114- end_per_group (mnesia_store , Config ) ->
115- Config ;
116- end_per_group (khepri_store , Config ) ->
117- Config ;
118- end_per_group (khepri_migration , Config ) ->
119- Config ;
120107end_per_group (_ , Config ) ->
121108 rabbit_ct_helpers :run_teardown_steps (Config ,
122109 rabbit_ct_client_helpers :teardown_steps () ++
0 commit comments