@@ -20,26 +20,18 @@ suite() ->
2020
2121all () ->
2222 [
23- {group , mnesia_store },
24- {group , khepri_store },
23+ % {group, tests},
2524 {group , khepri_migration },
26- {group , mnesia_cluster },
27- {group , khepri_cluster }
25+ {group , cluster }
2826 ].
2927
3028groups () ->
3129 [
32- {mnesia_store , [], all_tests ()},
33- {khepri_store , [], all_tests ()},
30+ % {tests, [], all_tests()},
3431 {khepri_migration , [], [
3532 from_mnesia_to_khepri
3633 ]},
37- {mnesia_cluster , [], [
38- transient_queue_on_node_down
39- ]},
40- {khepri_cluster , [], [
41- transient_queue_on_node_down
42- ]}
34+ {cluster , [], all_tests ()}
4335 ].
4436
4537all_tests () ->
@@ -61,7 +53,8 @@ all_tests() ->
6153 bind_and_unbind_exchange ,
6254 bind_and_delete_exchange_source ,
6355 bind_and_delete_exchange_destination ,
64- bind_to_unknown_exchange
56+ bind_to_unknown_exchange ,
57+ transient_queue_on_node_down
6558 ].
6659
6760% % -------------------------------------------------------------------
@@ -75,27 +68,24 @@ init_per_suite(Config) ->
7568end_per_suite (Config ) ->
7669 rabbit_ct_helpers :run_teardown_steps (Config ).
7770
78- init_per_group (mnesia_store = Group , Config0 ) ->
79- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , mnesia }]),
80- init_per_group_common (Group , Config , 1 );
81- init_per_group (khepri_store = Group , Config0 ) ->
82- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , khepri }]),
83- init_per_group_common (Group , Config , 1 );
84- init_per_group (khepri_migration = Group , Config0 ) ->
85- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , mnesia }]),
86- init_per_group_common (Group , Config , 1 );
87- init_per_group (mnesia_cluster = Group , Config0 ) ->
88- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , mnesia }]),
89- init_per_group_common (Group , Config , 3 );
90- init_per_group (khepri_cluster = Group , Config0 ) ->
91- Config = rabbit_ct_helpers :set_config (Config0 , [{metadata_store , khepri }]),
71+ % init_per_group(tests = Group, Config) ->
72+ % init_per_group_common(Group, Config, 1);
73+ init_per_group (khepri_migration = Group , Config ) ->
74+ case rabbit_ct_broker_helpers :configured_metadata_store (Config ) of
75+ {khepri , _ } ->
76+ {skip , " skip khepri migration test when khepri already configured" };
77+ mnesia ->
78+ init_per_group_common (Group , Config , 1 )
79+ end ;
80+ init_per_group (cluster = Group , Config ) ->
9281 init_per_group_common (Group , Config , 3 ).
9382
9483init_per_group_common (Group , Config , Size ) ->
9584 Config1 = rabbit_ct_helpers :set_config (Config ,
9685 [{rmq_nodes_count , Size },
9786 {rmq_nodename_suffix , Group },
98- {tcp_ports_base }]),
87+ {tcp_ports_base , {skip_n_nodes , Size }}
88+ ]),
9989 rabbit_ct_helpers :run_steps (Config1 , rabbit_ct_broker_helpers :setup_steps ()).
10090
10191end_per_group (_ , Config ) ->
@@ -853,7 +843,8 @@ transient_queue_on_node_down(Config) ->
853843 rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>])),
854844 30000 ),
855845
856- rabbit_ct_broker_helpers :stop_node (Config , Server ),
846+
847+ ? assertEqual (ok , rabbit_control_helper :command (stop_app , Server )),
857848
858849 ? awaitMatch ([DirectBinding ],
859850 lists :sort (
@@ -863,7 +854,7 @@ transient_queue_on_node_down(Config) ->
863854 rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
864855 30000 ),
865856
866- rabbit_ct_broker_helpers : start_node ( Config , Server ),
857+ ? assertEqual ( ok , rabbit_control_helper : command ( start_app , Server ) ),
867858
868859 Bindings2 = lists :sort ([DefaultBinding , DirectBinding ]),
869860 ? awaitMatch (Bindings2 ,
0 commit comments