@@ -100,6 +100,11 @@ groups() ->
100100 start_nodes_in_stop_order ,
101101 start_nodes_in_stop_order_with_force_boot
102102 ]}
103+ ]},
104+ {clustered_3_nodes , [],
105+ [{cluster_size_3 , [], [
106+ force_standalone_boot
107+ ]}
103108 ]}
104109 ]}
105110 ].
@@ -1222,6 +1227,23 @@ start_nodes_in_stop_order_with_force_boot(Config) ->
12221227 ok = rabbit_ct_broker_helpers :start_node (Config , Bunny ),
12231228 assert_clustered ([Rabbit , Hare , Bunny ]).
12241229
1230+ % % TODO test force_standalone after restarting this last node
1231+ force_standalone_boot (Config ) ->
1232+ [Rabbit , Hare , Bunny ] = cluster_members (Config ),
1233+
1234+ assert_cluster_status ({[Rabbit , Hare , Bunny ], [Rabbit , Hare , Bunny ], [Rabbit , Hare , Bunny ]},
1235+ [Rabbit , Hare , Bunny ]),
1236+
1237+ ok = rabbit_ct_broker_helpers :stop_node (Config , Hare ),
1238+ ok = rabbit_ct_broker_helpers :stop_node (Config , Bunny ),
1239+ ok = force_standalone_khepri_boot (Rabbit ),
1240+
1241+ assert_cluster_status ({[Rabbit ], [Rabbit ], [Rabbit , Hare , Bunny ],
1242+ [Rabbit , Hare , Bunny ], [Rabbit ]},
1243+ [Rabbit ]),
1244+
1245+ ok .
1246+
12251247% % ----------------------------------------------------------------------------
12261248% % Internal utils
12271249% % ----------------------------------------------------------------------------
@@ -1368,6 +1390,9 @@ change_cluster_node_type(Node, Type) ->
13681390update_cluster_nodes (Node , DiscoveryNode ) ->
13691391 rabbit_control_helper :command (update_cluster_nodes , Node , [atom_to_list (DiscoveryNode )]).
13701392
1393+ force_standalone_khepri_boot (Node ) ->
1394+ rabbit_control_helper :command (force_standalone_khepri_boot , Node , []).
1395+
13711396stop_join_start (Node , ClusterTo , Ram ) ->
13721397 ok = stop_app (Node ),
13731398 ok = join_cluster (Node , ClusterTo , Ram ),
0 commit comments