@@ -48,7 +48,8 @@ groups() ->
4848 ]},
4949
5050 {stream_queue_tests , [], [
51- stream_queues
51+ stream_queues ,
52+ stream_queues_with_dest_args
5253 ]}
5354 ].
5455
@@ -109,7 +110,9 @@ quorum_queues(Config) ->
109110 {<<" src-queue" >>, <<" src" >>},
110111 {<<" dest-queue" >>, <<" dest" >>},
111112 {<<" src-queue-args" >>, #{<<" x-queue-type" >> => <<" quorum" >>}},
112- {<<" dest-queue-args" >>, #{<<" x-queue-type" >> => <<" quorum" >>}}
113+ {<<" dest-queue-args" >>, #{<<" x-queue-type" >> => <<" quorum" >>,
114+ <<" x-dead-letter-exchange" >> => <<" dlx1" >>,
115+ <<" x-dead-letter-routing-key" >> => <<" rk1" >>}}
113116 ]),
114117 amqp091_publish_expect (Ch , <<>>, <<" src" >>, <<" dest" >>, <<" hello" >>)
115118 end ).
@@ -128,6 +131,21 @@ stream_queues(Config) ->
128131 amqp091_publish_expect (Ch , <<>>, <<" src" >>, <<" dest" >>, <<" hello" >>)
129132 end ).
130133
134+ stream_queues_with_dest_args (Config ) ->
135+ with_amqp091_ch (Config ,
136+ fun (Ch ) ->
137+ shovel_test_utils :set_param (
138+ Config ,
139+ <<" test" >>, [
140+ {<<" src-queue" >>, <<" src" >>},
141+ {<<" dest-queue" >>, <<" dest" >>},
142+ {<<" dest-queue-args" >>, #{<<" x-queue-type" >> => <<" stream" >>,
143+ <<" x-max-age" >> => <<" 12h" >>}}
144+ ]),
145+ amqp091_publish (Ch , <<>>, <<" src" >>, <<" hello" >>),
146+ shovel_test_utils :amqp091_await_empty (Ch , <<" src" >>)
147+ end ).
148+
131149set_properties_using_map (Config ) ->
132150 with_amqp091_ch (Config ,
133151 fun (Ch ) ->
0 commit comments