@@ -24,7 +24,7 @@ all() ->
24
24
{group , rabbitmq },
25
25
{group , rabbitmq_strict },
26
26
{group , activemq },
27
- % {group, ibmmq}
27
+ {group , ibmmq },
28
28
{group , activemq_no_anon },
29
29
{group , mock }
30
30
].
@@ -33,7 +33,10 @@ groups() ->
33
33
[
34
34
{rabbitmq , [], shared ()},
35
35
{activemq , [], shared ()},
36
- {ibmmq , [], test ()},
36
+ {ibmmq , [], [
37
+ open_close_connection ,
38
+ basic_roundtrip_ibmmq
39
+ ]},
37
40
{rabbitmq_strict , [], [
38
41
basic_roundtrip_tls ,
39
42
roundtrip_tls_global_config ,
@@ -62,12 +65,6 @@ groups() ->
62
65
]}
63
66
].
64
67
65
- test () ->
66
- [
67
- open_close_connection ,
68
- basic_roundtrip
69
- ].
70
-
71
68
shared () ->
72
69
[
73
70
open_close_connection ,
@@ -350,7 +347,7 @@ basic_roundtrip_ibmmq(Config) ->
350
347
Hostname = ? config (rmq_hostname , Config ),
351
348
Port = rabbit_ct_broker_helpers :get_node_config (Config , 0 , tcp_port_amqp ),
352
349
OpenConf = #{address => Hostname , port => Port , sasl => ? config (sasl , Config )},
353
- roundtrip (OpenConf , [{body , <<" banana" >>}, {destination , <<" DEV.QUEUE.1 " >>}]).
350
+ roundtrip (OpenConf , [{body , <<" banana" >>}, {destination , <<" DEV.QUEUE.3 " >>}]).
354
351
355
352
roundtrip (OpenConf ) ->
356
353
roundtrip (OpenConf , []).
@@ -361,7 +358,7 @@ roundtrip(OpenConf, Args) ->
361
358
{ok , Connection } = amqp10_client :open_connection (OpenConf ),
362
359
{ok , Session } = amqp10_client :begin_session (Connection ),
363
360
ct :log (" Session attached " ),
364
- SenderAttachArgs = #{name => <<" banana-sender" >>,
361
+ SenderAttachArgs = #{name => <<" banana-sender:DEV.QUEUE.3 " >>,
365
362
role => {sender , #{address => Destination ,
366
363
durable => unsettled_state ,
367
364
capabilities => <<" queue" >>}},
@@ -376,12 +373,14 @@ roundtrip(OpenConf, Args) ->
376
373
ct :log (" Sender attached " ),
377
374
378
375
Now = os :system_time (millisecond ),
379
- Props = #{creation_time => Now ,
380
- message_id => <<" my message ID" >>,
381
- correlation_id => <<" my correlation ID" >>,
376
+ Props = #{content_encoding => <<" my content encoding" >>,
382
377
content_type => <<" my content type" >>,
383
- content_encoding => <<" my content encoding" >>,
384
- group_id => <<" my group ID" >>},
378
+ correlation_id => <<" my correlation ID" >>,
379
+ creation_time => Now ,
380
+ group_id => <<" my group ID" >>,
381
+ message_id => <<" my message ID" >>,
382
+ to => Destination
383
+ },
385
384
Msg0 = amqp10_msg :new (<<" my-tag" >>, Body , true ),
386
385
Msg1 = amqp10_msg :set_application_properties (#{" a_key" => " a_value" }, Msg0 ),
387
386
Msg2 = amqp10_msg :set_properties (Props , Msg1 ),
@@ -403,12 +402,14 @@ roundtrip(OpenConf, Args) ->
403
402
properties => #{}
404
403
},
405
404
{ok , Receiver } = amqp10_client :attach_link (Session , ReceiverAttachArgs ),
406
- {ok , OutMsg } = amqp10_client :get_msg (Receiver , 4 * 60_000 ),
405
+ {ok , OutMsg } = amqp10_client :get_msg (Receiver , 4_000 ),
407
406
ok = amqp10_client :end_session (Session ),
408
407
ok = amqp10_client :close_connection (Connection ),
409
408
410
409
% ct:pal(?LOW_IMPORTANCE, "roundtrip message Out: ~tp~nIn: ~tp~n", [OutMsg, Msg]),
411
- ? assertMatch (Props , amqp10_msg :properties (OutMsg )),
410
+ ActualProps = amqp10_msg :properties (OutMsg ),
411
+ [ ? assertMatch (V , maps :get (K , ActualProps )) || K := V <- Props , K =/= creation_time ],
412
+
412
413
? assertEqual (#{<<" a_key" >> => <<" a_value" >>}, amqp10_msg :application_properties (OutMsg )),
413
414
? assertMatch (#{<<" x-key" >> := <<" x-value" >>,
414
415
<<" x_key" >> := <<" x_value" >>}, amqp10_msg :message_annotations (OutMsg )),
0 commit comments