=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.77531.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@5294fb6485a9.2024-04-22_14.32.43/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_14.48.14/rest_client_suite.msg_is_sent_and_delivered_in_room.112516.html"},
{tc_group_properties,[{name,muc},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@5294fb6485a9.2024-04-22_14.32.43/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_14.48.14/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@5294fb6485a9.2024-04-22_14.32.43"
=== Started at 2024-04-22 14:48:15
*** User 2024-04-22 14:48:15.447 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:48:15.448 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7bc7d8ce7d9a02b2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:48:15.448 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:48:15.449 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMDMzAG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:48:15.450 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:48:15.451 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:48:15.453 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7117aebe2a9df3a8' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com'>
*** User 2024-04-22 14:48:15.453 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:48:15.453 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<iq type='set' id='289b9183f441c6310acd019307f5e602'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:48:15.513 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<iq id='289b9183f441c6310acd019307f5e602' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:48:15.513 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<iq type='set' id='c12cffa3e222f1bff7ebc422dc986a6a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:48:15.514 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1' id='c12cffa3e222f1bff7ebc422dc986a6a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:48:15.515 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 14:48:15.522 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1'/>
*** User 2024-04-22 14:48:15.525 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:48:15.526 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88e15ecc12515160' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:48:15.527 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:48:15.527 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzAzMwBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 14:48:15.529 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:48:15.529 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:48:15.529 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f197f475d52da0e' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com'>
*** User 2024-04-22 14:48:15.530 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:48:15.530 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<iq type='set' id='5360ab9917dd372f6102ed7b0446a6ab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:48:15.530 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<iq id='5360ab9917dd372f6102ed7b0446a6ab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:48:15.531 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<iq type='set' id='79b2ba4c6d573a8dadcaa13e16a6e79e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:48:15.531 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1' id='79b2ba4c6d573a8dadcaa13e16a6e79e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:48:15.532 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 14:48:15.541 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1'/>
*** User 2024-04-22 14:48:15.642 ***🔗
REST request:
Code: 201
Req: {<0.77936.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"76009f39cb9d530a">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMwMzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:48:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-797295-616684\"}">>,156,29584}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
return_headers => true}
*** User 2024-04-22 14:48:15.749 ***🔗
REST request:
Code: 204
Req: {<0.78072.0>,<<"/api/rooms/1713-797295-616684/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5de2efbc9ccece28">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMwMzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:48:14 GMT">>}],
<<>>,80,99451}
Params: #{path => <<"/api/rooms/1713-797295-616684/users">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-22 14:48:15.749 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='1d00cafe-85b4-4c9b-9a5b-c62d8053c6ea' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1713-797295-731575</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-22 14:48:15.750 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='1d00cafe-85b4-4c9b-9a5b-c62d8053c6ea' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1713-797295-616673</prev-version>
<version>1713-797295-731575</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com</user>
</x>
<body/>
<stanza-id by='1713-797295-616684@muclight.domain.example.com' id='C5LGGS3JL801' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 14:48:15.925 ***🔗
REST request:
Code: 200
Req: {<0.78222.0>,<<"/api/rooms/1713-797295-616684/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89afca40e4cff4be">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMwMzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:48:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"f8b475ae-9813-44d5-8b52-36c927eb5c20\"}">>,169,105200}
Params: #{path => <<"/api/rooms/1713-797295-616684/messages">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com">>,
<<"matygrysa">>},
body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}
*** User 2024-04-22 14:48:16.029 ***🔗
REST request:
Code: 200
Req: {<0.78357.0>,<<"/api/rooms/1713-797295-616684/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8a69f54bf71e897">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMDMzQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:48:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"cdecf63c-6f88-4fd2-ba36-ac58bb97c8b5\"}">>,169,92980}
Params: #{path => <<"/api/rooms/1713-797295-616684/messages">>,
server => #{node => mongooseim@localhost},
role => client,method => <<"POST">>,
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com">>,
<<"makrolika">>},
body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}
*** User 2024-04-22 14:48:16.029 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='f8b475ae-9813-44d5-8b52-36c927eb5c20' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-797295-616684@muclight.domain.example.com' id='C5LGGS4FRNO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 14:48:16.029 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='f8b475ae-9813-44d5-8b52-36c927eb5c20' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-797295-616684@muclight.domain.example.com' id='C5LGGS4FRNO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 14:48:16.030 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='cdecf63c-6f88-4fd2-ba36-ac58bb97c8b5' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-797295-616684@muclight.domain.example.com' id='C5LGGS5A6DG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 14:48:16.030 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
<message from='1713-797295-616684@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com' id='cdecf63c-6f88-4fd2-ba36-ac58bb97c8b5' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-797295-616684@muclight.domain.example.com' id='C5LGGS5A6DG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 14:48:16.030 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 14:48:16.030 ***🔗
bob_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 14:48:16.030 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 14:48:16.030 ***🔗
alice_msg_is_sent_and_delivered_in_room_3033@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:48:16
=== successfully completed test case
=== === Returned value: ok