1212-include_lib (" eunit/include/eunit.hrl" ).
1313-include_lib (" rabbitmq_ct_helpers/include/rabbit_assert.hrl" ).
1414
15+ -compile (nowarn_export_all ).
1516-compile (export_all ).
1617
1718all () ->
1819 [
19- {group , mnesia_store },
20- {group , khepri_store },
20+ {group , tests },
2121 {group , khepri_migration }
2222 ].
2323
@@ -35,7 +35,7 @@ groups() ->
3535 single_node_multiple_users_zero_limit
3636
3737 ],
38- ClusterSize2Tests = [
38+ ClusterSize3Tests = [
3939 most_basic_cluster_connection_and_channel_count ,
4040 cluster_single_user_connection_and_channel_count ,
4141 cluster_multiple_users_connection_and_channel_count ,
@@ -49,16 +49,11 @@ groups() ->
4949 cluster_multiple_users_zero_limit
5050 ],
5151 [
52- {mnesia_store , [], [
53- {cluster_size_1_network , [], ClusterSize1Tests },
54- {cluster_size_3_network , [], ClusterSize2Tests },
55- {cluster_size_3_direct , [], ClusterSize2Tests }
56- ]},
57- {khepri_store , [], [
58- {cluster_size_1_network , [], ClusterSize1Tests },
59- {cluster_size_3_network , [], ClusterSize2Tests },
60- {cluster_size_3_direct , [], ClusterSize2Tests }
61- ]},
52+ {tests , [], [
53+ {cluster_size_1_network , [], ClusterSize1Tests },
54+ {cluster_size_3_network , [], ClusterSize3Tests },
55+ {cluster_size_3_direct , [], ClusterSize3Tests }
56+ ]},
6257 {khepri_migration , [], [from_mnesia_to_khepri ]}
6358 ].
6459
@@ -79,10 +74,6 @@ init_per_suite(Config) ->
7974end_per_suite (Config ) ->
8075 rabbit_ct_helpers :run_teardown_steps (Config ).
8176
82- init_per_group (mnesia_store , Config ) ->
83- rabbit_ct_helpers :set_config (Config , [{metadata_store , mnesia }]);
84- init_per_group (khepri_store , Config ) ->
85- rabbit_ct_helpers :set_config (Config , [{metadata_store , khepri }]);
8677init_per_group (khepri_migration , Config ) ->
8778 Config1 = rabbit_ct_helpers :set_config (Config , [{connection_type , network },
8879 {metadata_store , mnesia }]),
@@ -96,26 +87,20 @@ init_per_group(cluster_size_3_network, Config) ->
9687init_per_group (cluster_size_3_direct , Config ) ->
9788 Config1 = rabbit_ct_helpers :set_config (Config , [{connection_type , direct }]),
9889 init_per_multinode_group (cluster_size_3_direct , Config1 , 3 );
99- init_per_group (cluster_rename , Config ) ->
100- init_per_multinode_group ( cluster_rename , Config , 2 ) .
90+ init_per_group (tests , Config ) ->
91+ Config .
10192
102- init_per_multinode_group (Group , Config , NodeCount ) ->
93+ init_per_multinode_group (_Group , Config , NodeCount ) ->
10394 Suffix = rabbit_ct_helpers :testcase_absname (Config , " " , " -" ),
10495 Config1 = rabbit_ct_helpers :set_config (Config , [
10596 {rmq_nodes_count , NodeCount },
10697 {rmq_nodename_suffix , Suffix }
10798 ]),
108- case Group of
109- cluster_rename ->
110- % The broker is managed by {init,end}_per_testcase().
111- Config1 ;
112- _ ->
11399 rabbit_ct_helpers :run_steps (
114100 Config1 , rabbit_ct_broker_helpers :setup_steps () ++
115- rabbit_ct_client_helpers :setup_steps ())
116- end .
101+ rabbit_ct_client_helpers :setup_steps ()).
117102
118- end_per_group (Group , Config ) when Group == mnesia_store ; Group == khepri_store ->
103+ end_per_group (tests , Config ) ->
119104 % The broker is managed by {init,end}_per_testcase().
120105 Config ;
121106end_per_group (_Group , Config ) ->
0 commit comments