@@ -37,7 +37,8 @@ groups() ->
3737 forget_cluster_node_with_all_last_streams ,
3838 forget_cluster_node_with_quorum_queues_and_streams ,
3939 forget_cluster_node_with_one_last_quorum_member_and_streams ,
40- forget_cluster_node_with_one_last_stream_and_quorum_queues
40+ forget_cluster_node_with_one_last_stream_and_quorum_queues ,
41+ forget_cluster_node_with_one_classic_queue
4142 ]}
4243 ].
4344
@@ -354,6 +355,30 @@ forget_cluster_node_with_one_last_stream_and_quorum_queues(Config) ->
354355 ? awaitMatch (Members when length (Members ) == 2 , get_quorum_members (Rabbit , QQ1 ), 30000 ),
355356 ? awaitMatch (Members when length (Members ) == 2 , get_quorum_members (Rabbit , QQ2 ), 30000 ).
356357
358+ forget_cluster_node_with_one_classic_queue (Config ) ->
359+ [Rabbit , Hare , Bunny ] = rabbit_ct_broker_helpers :get_node_configs (Config , nodename ),
360+
361+ assert_clustered ([Rabbit , Hare , Bunny ]),
362+
363+ Ch = rabbit_ct_client_helpers :open_channel (Config , Bunny ),
364+ CQ1 = <<" classic-queue-1" >>,
365+ declare (Ch , CQ1 , [{<<" x-queue-type" >>, longstr , <<" classic" >>}]),
366+
367+ ? awaitMatch ([_ ], rabbit_ct_broker_helpers :rabbitmqctl_list (
368+ Config , Rabbit ,
369+ [" list_queues" , " name" , " --no-table-headers" ]),
370+ 30000 ),
371+
372+ ? assertEqual (ok , rabbit_control_helper :command (stop_app , Bunny )),
373+ ? assertEqual (ok , forget_cluster_node (Rabbit , Bunny )),
374+
375+ assert_cluster_status ({[Rabbit , Hare ], [Rabbit , Hare ], [Rabbit , Hare ]},
376+ [Rabbit , Hare ]),
377+ ? awaitMatch ([], rabbit_ct_broker_helpers :rabbitmqctl_list (
378+ Config , Rabbit ,
379+ [" list_queues" , " name" , " --no-table-headers" ]),
380+ 30000 ).
381+
357382forget_cluster_node (Node , Removee ) ->
358383 rabbit_control_helper :command (forget_cluster_node , Node , [atom_to_list (Removee )],
359384 []).
0 commit comments