=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.75271.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@096d5789c860.2024-02-29_08.03.24/big_tests.tests.rest_client_SUITE.logs/run.2024-02-29_08.18.22/rest_client_suite.msg_is_sent_and_delivered_in_room.138883.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@096d5789c860.2024-02-29_08.03.24/big_tests.tests.rest_client_SUITE.logs/run.2024-02-29_08.18.22/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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,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@096d5789c860.2024-02-29_08.03.24"
=== Started at 2024-02-29 08:18:23
*** User 2024-02-29 08:18:23.554 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.558 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b28cfcc8294bd69f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:23.558 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.558 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yODkyAG1hdHlncnlzYQ==</auth>
*** User 2024-02-29 08:18:23.562 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:23.562 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.564 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='059fdcb9cc28bba1' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com'>
*** User 2024-02-29 08:18:23.564 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.564 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<iq type='set' id='e7dbe01a7d90153ba02b17eb4571de99'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:23.565 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<iq id='e7dbe01a7d90153ba02b17eb4571de99' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:23.565 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<iq type='set' id='cc2814dedba5ba10c143ef75195d16a4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:23.566 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1' id='cc2814dedba5ba10c143ef75195d16a4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:23.566 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:23.642 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1'/>
*** User 2024-02-29 08:18:23.643 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.643 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='672b24d0bb4b89a1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 08:18:23.643 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.643 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjg5MgBtYWtyb2xpa2E=</auth>
*** User 2024-02-29 08:18:23.645 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 08:18:23.645 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.646 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cec1140e47d3ce9d' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com'>
*** User 2024-02-29 08:18:23.646 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@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-02-29 08:18:23.646 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<iq type='set' id='5ca7cdd552b3d30ed563a618409d380e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-29 08:18:23.647 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<iq id='5ca7cdd552b3d30ed563a618409d380e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-29 08:18:23.647 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<iq type='set' id='7454368a9ad7ea0537cf4d8e2b92b2e2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:23.648 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1' id='7454368a9ad7ea0537cf4d8e2b92b2e2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-29 08:18:23.648 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
<presence/>
*** User 2024-02-29 08:18:23.654 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1'/>
*** User 2024-02-29 08:18:23.756 ***🔗
REST request:
Code: 201
Req: {<0.75648.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"22683d8eec7b5e0d">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI4OTJAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1709-194703-733614\"}">>,156,85976}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:23.951 ***🔗
REST request:
Code: 204
Req: {<0.75786.0>,<<"/api/rooms/1709-194703-733614/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f623c7d95bfde78">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI4OTJAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:23 GMT">>}],
<<>>,80,186217}
Params: #{path => <<"/api/rooms/1709-194703-733614/users">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com\"}">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:23.951 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='53ddf887-f36c-4731-bf7d-e2f583ec44db' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1709-194703-857911</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-02-29 08:18:23.952 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='53ddf887-f36c-4731-bf7d-e2f583ec44db' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1709-194703-733601</prev-version>
<version>1709-194703-857911</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com</user>
</x>
<body/>
<stanza-id by='1709-194703-733614@muclight.domain.example.com' id='C4K0SSMA9R81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-02-29 08:18:24.049 ***🔗
REST request:
Code: 200
Req: {<0.75966.0>,<<"/api/rooms/1709-194703-733614/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3de8d210e0dfc01b">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI4OTJAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"d188a5e4-2d53-42f4-85ea-e795161a2ec8\"}">>,169,90349}
Params: #{path => <<"/api/rooms/1709-194703-733614/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"body\":\"Hi all!\"}">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:24.127 ***🔗
REST request:
Code: 200
Req: {<0.76085.0>,<<"/api/rooms/1709-194703-733614/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39cbdf1df75f3a2c">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yODkyQGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 29 Feb 2024 08:18:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"d3fb921e-8fb6-4b9e-a4bc-2d49701504dd\"}">>,169,71088}
Params: #{path => <<"/api/rooms/1709-194703-733614/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"body\":\"Hi all!\"}">>,
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-02-29 08:18:24.129 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='d188a5e4-2d53-42f4-85ea-e795161a2ec8' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1709-194703-733614@muclight.domain.example.com' id='C4K0SSN98701' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-02-29 08:18:24.129 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='d188a5e4-2d53-42f4-85ea-e795161a2ec8' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1709-194703-733614@muclight.domain.example.com' id='C4K0SSN98701' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-02-29 08:18:24.129 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='d3fb921e-8fb6-4b9e-a4bc-2d49701504dd' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1709-194703-733614@muclight.domain.example.com' id='C4K0SSO01L01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-02-29 08:18:24.129 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
<message from='1709-194703-733614@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com' id='d3fb921e-8fb6-4b9e-a4bc-2d49701504dd' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1709-194703-733614@muclight.domain.example.com' id='C4K0SSO01L01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-02-29 08:18:24.129 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:24.130 ***🔗
bob_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-29 08:18:24.130 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-29 08:18:24.130 ***🔗
alice_msg_is_sent_and_delivered_in_room_2892@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-29 08:18:24
=== successfully completed test case
=== === Returned value: ok