@@ -76,7 +76,6 @@ groups() ->
7676 status_with_alarm ,
7777 pid_file_and_await_node_startup_in_khepri ,
7878 await_running_count_in_khepri ,
79- start_with_invalid_schema_in_path ,
8079 persistent_cluster_id ,
8180 stop_start_cluster_node ,
8281 restart_cluster_node ,
@@ -331,7 +330,7 @@ restart_cluster_node(Config) ->
331330 assert_clustered ([Rabbit , Hare ]).
332331
333332join_and_part_cluster_in_khepri (Config ) ->
334- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
333+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
335334 assert_not_clustered (Rabbit ),
336335 assert_not_clustered (Hare ),
337336 assert_not_clustered (Bunny ),
@@ -441,38 +440,38 @@ join_to_start_interval(Config) ->
441440 assert_clustered ([Rabbit , Hare ]).
442441
443442join_cluster_in_minority (Config ) ->
444- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
443+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
445444 assert_not_clustered (Rabbit ),
446445 assert_not_clustered (Hare ),
447446 assert_not_clustered (Bunny ),
448447
449- stop_join_start (Config , Bunny , Rabbit ),
448+ stop_join_start (Config , Rabbit , Bunny ),
450449 assert_clustered ([Rabbit , Bunny ]),
451- ok = rabbit_ct_broker_helpers :stop_node (Config , Bunny ),
450+ ok = rabbit_ct_broker_helpers :stop_node (Config , Rabbit ),
452451
453452 ok = stop_app (Config , Hare ),
454- ? assertEqual (ok , join_cluster (Config , Hare , Rabbit , false )),
453+ ? assertEqual (ok , join_cluster (Config , Hare , Bunny , false )),
455454
456- ok = rabbit_ct_broker_helpers :start_node (Config , Bunny ),
455+ ok = rabbit_ct_broker_helpers :start_node (Config , Rabbit ),
457456 ? assertEqual (ok , join_cluster (Config , Hare , Rabbit , false )),
458457 ? assertEqual (ok , start_app (Config , Hare )),
459458
460459 assert_clustered ([Rabbit , Bunny , Hare ]).
461460
462461join_cluster_with_rabbit_stopped (Config ) ->
463- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
462+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
464463 assert_not_clustered (Rabbit ),
465464 assert_not_clustered (Hare ),
466465 assert_not_clustered (Bunny ),
467466
468- stop_join_start (Config , Bunny , Rabbit ),
467+ stop_join_start (Config , Rabbit , Bunny ),
469468 assert_clustered ([Rabbit , Bunny ]),
470- ok = stop_app (Config , Bunny ),
469+ ok = stop_app (Config , Rabbit ),
471470
472471 ok = stop_app (Config , Hare ),
473- ? assertEqual (ok , join_cluster (Config , Hare , Rabbit , false )),
472+ ? assertEqual (ok , join_cluster (Config , Hare , Bunny , false )),
474473
475- ok = start_app (Config , Bunny ),
474+ ok = start_app (Config , Rabbit ),
476475 ? assertEqual (ok , join_cluster (Config , Hare , Rabbit , false )),
477476 ? assertEqual (ok , start_app (Config , Hare )),
478477
@@ -947,22 +946,11 @@ force_reset_node_in_khepri(Config) ->
947946
948947 stop_join_start (Config , Rabbit , Hare ),
949948 stop_app (Config , Rabbit ),
950- ok = force_reset (Config , Rabbit ),
951- assert_cluster_status ({[Rabbit , Hare ], [Rabbit , Hare ], [Hare ]}, [Hare ]),
952- % % Khepri is stopped, so it won't report anything.
953- assert_status ({[Rabbit ], [], [Rabbit ], [Rabbit ], []}, [Rabbit ]),
954- % % Hare thinks that Rabbit is still clustered
955- assert_cluster_status ({[Rabbit , Hare ], [Rabbit , Hare ], [Hare ]},
956- [Hare ]),
957- ok = start_app (Config , Rabbit ),
958- assert_not_clustered (Rabbit ),
959- % % We can rejoin Rabbit and Hare. Unlike with Mnesia, we try to solve the
960- % % inconsistency instead of returning an error.
961- ok = stop_app (Config , Rabbit ),
962- ? assertEqual (ok , join_cluster (Config , Rabbit , Hare , false )),
963- ok = start_app (Config , Rabbit ),
964- assert_cluster_status ({[Rabbit , Hare ], [Rabbit , Hare ], [Rabbit , Hare ]},
965- [Rabbit , Hare ]).
949+ {error , 69 , Msg } = force_reset (Config , Rabbit ),
950+ ? assertEqual (
951+ match ,
952+ re :run (
953+ Msg , " Forced reset is unsupported with Khepri" , [{capture , none }])).
966954
967955status_with_alarm (Config ) ->
968956 [Rabbit , Hare ] = rabbit_ct_broker_helpers :get_node_configs (Config ,
@@ -1124,7 +1112,7 @@ await_running_count_in_khepri(Config) ->
11241112 await_running_count , [5 , 1000 ])).
11251113
11261114start_nodes_in_reverse_order (Config ) ->
1127- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
1115+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
11281116 assert_not_clustered (Rabbit ),
11291117 assert_not_clustered (Hare ),
11301118 assert_not_clustered (Bunny ),
@@ -1147,7 +1135,7 @@ start_nodes_in_reverse_order(Config) ->
11471135
11481136% % Test booting nodes in the wrong order for Mnesia. Interesting...
11491137start_nodes_in_stop_order (Config ) ->
1150- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
1138+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
11511139 assert_not_clustered (Rabbit ),
11521140 assert_not_clustered (Hare ),
11531141 assert_not_clustered (Bunny ),
@@ -1172,7 +1160,7 @@ start_nodes_in_stop_order(Config) ->
11721160 end .
11731161
11741162start_nodes_in_stop_order_in_khepri (Config ) ->
1175- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
1163+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
11761164 assert_not_clustered (Rabbit ),
11771165 assert_not_clustered (Hare ),
11781166 assert_not_clustered (Bunny ),
@@ -1195,7 +1183,7 @@ start_nodes_in_stop_order_in_khepri(Config) ->
11951183
11961184% % TODO test force_boot with Khepri involved
11971185start_nodes_in_stop_order_with_force_boot (Config ) ->
1198- [Rabbit , Hare , Bunny ] = cluster_members (Config ),
1186+ [Rabbit , Bunny , Hare ] = cluster_members (Config ),
11991187 assert_not_clustered (Rabbit ),
12001188 assert_not_clustered (Hare ),
12011189 assert_not_clustered (Bunny ),
0 commit comments