@@ -34,7 +34,7 @@ groups() ->
3434 [
3535 {unclustered , [], [
3636 {cluster_size_2 , [], [
37- erlang_config
37+ classic_config_discovery_node_list
3838 ]},
3939 {cluster_size_3 , [], [
4040 join_and_part_cluster ,
@@ -137,7 +137,6 @@ start_with_invalid_schema_in_path(Config) ->
137137 end .
138138
139139create_bad_schema (Rabbit , Hare , Config ) ->
140-
141140 {ok , RabbitMnesiaDir } = rpc :call (Rabbit , application , get_env , [mnesia , dir ]),
142141 {ok , HareMnesiaDir } = rpc :call (Hare , application , get_env , [mnesia , dir ]),
143142 % % Make sure we don't use the current dir:
@@ -525,7 +524,7 @@ update_cluster_nodes(Config) ->
525524 assert_not_clustered (Hare ),
526525 assert_clustered ([Rabbit , Bunny ]).
527526
528- erlang_config (Config ) ->
527+ classic_config_discovery_node_list (Config ) ->
529528 [Rabbit , Hare ] = cluster_members (Config ),
530529
531530 ok = stop_app (Hare ),
@@ -543,26 +542,6 @@ erlang_config(Config) ->
543542 assert_cluster_status ({[Rabbit , Hare ], [Rabbit ], [Rabbit , Hare ]},
544543 [Rabbit , Hare ]),
545544
546- % % Check having a stop_app'ed node around doesn't break completely.
547- ok = stop_app (Hare ),
548- ok = reset (Hare ),
549- ok = stop_app (Rabbit ),
550- ok = rpc :call (Hare , application , set_env ,
551- [rabbit , cluster_nodes , {[Rabbit ], disc }]),
552- ok = start_app (Hare ),
553- ok = start_app (Rabbit ),
554- assert_not_clustered (Hare ),
555- assert_not_clustered (Rabbit ),
556-
557- % % We get a warning but we start anyway
558- ok = stop_app (Hare ),
559- ok = reset (Hare ),
560- ok = rpc :call (Hare , application , set_env ,
561- [rabbit , cluster_nodes , {[non@existent ], disc }]),
562- ok = start_app (Hare ),
563- assert_not_clustered (Hare ),
564- assert_not_clustered (Rabbit ),
565-
566545 % % List of nodes [node()] is equivalent to {[node()], disk}
567546 ok = stop_app (Hare ),
568547 ok = reset (Hare ),
@@ -576,38 +555,7 @@ erlang_config(Config) ->
576555 rabbit_ct_broker_helpers :start_node (Config , Hare ),
577556 ok = stop_app (Hare ),
578557 ok = reset (Hare ),
579- ok = rpc :call (Hare , application , set_env ,
580- [rabbit , cluster_nodes , {[" Mike's computer" ], disc }]),
581- % % Rabbit app stops abnormally, node goes down
582- assert_failure (fun () -> start_app (Hare ) end ),
583- assert_not_clustered (Rabbit ),
584-
585- % % If we use an invalid node type, the node fails to start.
586- % % The Erlang VM has stopped after previous rabbit app failure
587- rabbit_ct_broker_helpers :start_node (Config , Hare ),
588- ok = stop_app (Hare ),
589- ok = reset (Hare ),
590- ok = rpc :call (Hare , application , set_env ,
591- [rabbit , cluster_nodes , {[Rabbit ], blue }]),
592- % % Rabbit app stops abnormally, node goes down
593- assert_failure (fun () -> start_app (Hare ) end ),
594- assert_not_clustered (Rabbit ),
595-
596558 % % If we use an invalid cluster_nodes conf, the node fails to start.
597- % % The Erlang VM has stopped after previous rabbit app failure
598- rabbit_ct_broker_helpers :start_node (Config , Hare ),
599- ok = stop_app (Hare ),
600- ok = reset (Hare ),
601- ok = rpc :call (Hare , application , set_env ,
602- [rabbit , cluster_nodes , true ]),
603- % % Rabbit app stops abnormally, node goes down
604- assert_failure (fun () -> start_app (Hare ) end ),
605- assert_not_clustered (Rabbit ),
606-
607- % % The Erlang VM has stopped after previous rabbit app failure
608- rabbit_ct_broker_helpers :start_node (Config , Hare ),
609- ok = stop_app (Hare ),
610- ok = reset (Hare ),
611559 ok = rpc :call (Hare , application , set_env ,
612560 [rabbit , cluster_nodes , " Yes, please" ]),
613561 assert_failure (fun () -> start_app (Hare ) end ),
0 commit comments