@@ -35,10 +35,10 @@ groups() ->
35
35
from_mnesia_to_khepri
36
36
]},
37
37
{mnesia_cluster , [], [
38
- transient_queue_on_node_down_mnesia
38
+ transient_queue_on_node_down
39
39
]},
40
40
{khepri_cluster , [], [
41
- transient_queue_on_node_down_khepri
41
+ transient_queue_on_node_down
42
42
]}
43
43
].
44
44
@@ -815,7 +815,7 @@ bind_and_delete_exchange_source(Config) ->
815
815
rabbit_ct_broker_helpers :rpc (Config , 0 , rabbit_binding , list , [<<" /" >>])),
816
816
ok .
817
817
818
- transient_queue_on_node_down_mnesia (Config ) ->
818
+ transient_queue_on_node_down (Config ) ->
819
819
Server = rabbit_ct_broker_helpers :get_node_config (Config , 0 , nodename ),
820
820
821
821
Ch = rabbit_ct_client_helpers :open_channel (Config , Server ),
@@ -846,88 +846,33 @@ transient_queue_on_node_down_mnesia(Config) ->
846
846
QResource , Q , []),
847
847
DirectAltBinding = binding_record (rabbit_misc :r (<<" /" >>, exchange , <<" amq.direct" >>),
848
848
QAltResource , QAlt , []),
849
- Bindings = lists :sort ([DefaultBinding , DirectBinding , DefaultAltBinding , DirectAltBinding ]),
850
-
851
- ? assertEqual (Bindings ,
852
- lists :sort (
853
- rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>]))),
854
-
855
- rabbit_ct_broker_helpers :stop_node (Config , Server ),
856
-
857
- Bindings1 = lists :sort ([DefaultBinding , DirectBinding ]),
858
- ? assertEqual ([DirectBinding ],
859
- lists :sort (rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>]))),
860
- ? assertMatch ([],
861
- rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>])),
862
-
863
- rabbit_ct_broker_helpers :start_node (Config , Server ),
864
849
850
+ Bindings1 = lists :sort ([DefaultBinding , DirectBinding , DefaultAltBinding , DirectAltBinding ]),
865
851
? awaitMatch (Bindings1 ,
866
852
lists :sort (
867
853
rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>])),
868
854
30000 ),
869
- ? awaitMatch ([_ ], rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
870
- 30000 ),
871
- ok .
872
-
873
- transient_queue_on_node_down_khepri (Config ) ->
874
- % % All entities are durable in khepri
875
- Server = rabbit_ct_broker_helpers :get_node_config (Config , 0 , nodename ),
876
-
877
- Ch = rabbit_ct_client_helpers :open_channel (Config , Server ),
878
- Q = ? config (queue_name , Config ),
879
- QAlt = ? config (alt_queue_name , Config ),
880
- ? assertEqual ({'queue.declare_ok' , Q , 0 , 0 }, declare (Ch , Q , [])),
881
- ? assertEqual ({'queue.declare_ok' , QAlt , 0 , 0 }, declare (Ch , QAlt , [], false )),
882
-
883
- DefaultExchange = rabbit_misc :r (<<" /" >>, exchange , <<>>),
884
- QResource = rabbit_misc :r (<<" /" >>, queue , Q ),
885
- QAltResource = rabbit_misc :r (<<" /" >>, queue , QAlt ),
886
- DefaultBinding = binding_record (DefaultExchange , QResource , Q , []),
887
- DefaultAltBinding = binding_record (DefaultExchange , QAltResource , QAlt , []),
888
-
889
- % % Binding to the default exchange, it's always present
890
- ? assertEqual (lists :sort ([DefaultBinding , DefaultAltBinding ]),
891
- lists :sort (rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>]))),
892
-
893
- % % Let's bind to other exchange
894
- # 'queue.bind_ok' {} = amqp_channel :call (Ch , # 'queue.bind' {exchange = <<" amq.direct" >>,
895
- queue = Q ,
896
- routing_key = Q }),
897
- # 'queue.bind_ok' {} = amqp_channel :call (Ch , # 'queue.bind' {exchange = <<" amq.direct" >>,
898
- queue = QAlt ,
899
- routing_key = QAlt }),
900
-
901
- DirectBinding = binding_record (rabbit_misc :r (<<" /" >>, exchange , <<" amq.direct" >>),
902
- QResource , Q , []),
903
- DirectAltBinding = binding_record (rabbit_misc :r (<<" /" >>, exchange , <<" amq.direct" >>),
904
- QAltResource , QAlt , []),
905
- Bindings = lists :sort ([DefaultBinding , DirectBinding , DefaultAltBinding , DirectAltBinding ]),
906
-
907
- ? assertEqual (Bindings ,
908
- lists :sort (
909
- rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>]))),
910
855
911
856
rabbit_ct_broker_helpers :stop_node (Config , Server ),
912
857
913
- Bindings1 = lists :sort ([DirectBinding ]),
914
- ? awaitMatch (Bindings1 ,
858
+ ? awaitMatch ([DirectBinding ],
915
859
lists :sort (
916
860
rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>])),
917
861
30000 ),
918
862
? awaitMatch ([],
919
- rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
863
+ rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
920
864
30000 ),
921
865
922
866
rabbit_ct_broker_helpers :start_node (Config , Server ),
923
867
924
868
Bindings2 = lists :sort ([DefaultBinding , DirectBinding ]),
925
- ? awaitMatch ([_ ], rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
926
- 30000 ),
927
869
? awaitMatch (Bindings2 ,
928
870
lists :sort (
929
871
rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_binding , list , [<<" /" >>])),
930
872
30000 ),
873
+ ? awaitMatch ([_ ],
874
+ rabbit_ct_broker_helpers :rpc (Config , 1 , rabbit_amqqueue , list , [<<" /" >>]),
875
+ 30000 ),
931
876
ok .
932
877
933
878
% % Internal
0 commit comments