=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.55097.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{preset,"internal_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@128b3716d043.2024-03-21_07.35.33/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.48.54/rest_client_suite.msg_is_sent_and_delivered_in_room.105474.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@128b3716d043.2024-03-21_07.35.33/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.48.54/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => mnesia},
mod_roster =>
#{iqdisc => one_queue,backend => mnesia,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_amp => #{},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,
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@128b3716d043.2024-03-21_07.35.33"
=== Started at 2024-03-21 07:48:55
*** User 2024-03-21 07:48:55.048 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:48:55.049 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82ff0d0500bc85b7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:55.049 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/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-03-21 07:48:55.050 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8xODA4AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:48:55.051 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:55.051 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:48:55.053 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='412342aa208efc1d' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost'>
*** User 2024-03-21 07:48:55.053 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/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-03-21 07:48:55.053 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<iq type='set' id='c10abc78d8f809d27d7b80e8a492d65a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:48:55.056 ***🔗
alicE_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<iq id='c10abc78d8f809d27d7b80e8a492d65a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:48:55.056 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<iq type='set' id='723c96ae3a01325102271accbdae0fff'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.075 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1' id='723c96ae3a01325102271accbdae0fff' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.076 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<presence/>
*** User 2024-03-21 07:48:55.077 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1'/>
*** User 2024-03-21 07:48:55.078 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:48:55.079 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fdb87fcce5d88b7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:55.080 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/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-03-21 07:48:55.080 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMTgwOABtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:48:55.082 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:55.082 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:48:55.084 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e23dc36728cbae0b' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost'>
*** User 2024-03-21 07:48:55.084 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/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-03-21 07:48:55.084 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<iq type='set' id='0fe0a380effd54e387c139cf42b1662a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:48:55.084 ***🔗
bOb_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<iq id='0fe0a380effd54e387c139cf42b1662a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:48:55.084 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<iq type='set' id='3fd73eaa1a4f1ed4f2809dd36cafe5a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.085 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1' id='3fd73eaa1a4f1ed4f2809dd36cafe5a0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.085 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
<presence/>
*** User 2024-03-21 07:48:55.086 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1'/>
*** User 2024-03-21 07:48:55.105 ***🔗
REST request:
Code: 201
Req: {<0.55527.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a0f0a562854f39ef">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzE4MDhAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1711-7335-103044\"}">>,154,5920}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_1808@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 07:48:55.120 ***🔗
REST request:
Code: 204
Req: {<0.55664.0>,<<"/api/rooms/1711-7335-103044/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c87cfecb801ce10">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzE4MDhAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_1808@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>}],
<<>>,80,1627}
Params: #{path => <<"/api/rooms/1711-7335-103044/users">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_1808@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_1808@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 07:48:55.173 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost' id='82987527-d38e-4532-b6de-d2d9af377154' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1711-7335-118503</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_1808@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:48:55.174 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost' id='82987527-d38e-4532-b6de-d2d9af377154' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1711-7335-102982</prev-version>
<version>1711-7335-118503</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_1808@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:48:55.181 ***🔗
REST request:
Code: 200
Req: {<0.55728.0>,<<"/api/rooms/1711-7335-103044/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3655091cf1a9d359">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzE4MDhAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"a281667b-4114-4056-93a7-48f1881b2949\"}">>,169,919}
Params: #{path => <<"/api/rooms/1711-7335-103044/messages">>,
server => #{node => mongooseim@localhost},
role => client,body => <<"{\"body\":\"Hi all!\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_1808@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 07:48:55.189 ***🔗
REST request:
Code: 200
Req: {<0.55763.0>,<<"/api/rooms/1711-7335-103044/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c693227ba8e1b3cf">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8xODA4QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"96da9f2b-4753-42d7-9232-04b23c5d5bb4\"}">>,169,687}
Params: #{path => <<"/api/rooms/1711-7335-103044/messages">>,
server => #{node => mongooseim@localhost},
role => client,body => <<"{\"body\":\"Hi all!\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_1808@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-03-21 07:48:55.189 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_1808@localhost' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost' id='a281667b-4114-4056-93a7-48f1881b2949' type='groupchat'>
<body>Hi all!</body>
</message>
*** User 2024-03-21 07:48:55.189 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_1808@localhost' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost' id='a281667b-4114-4056-93a7-48f1881b2949' type='groupchat'>
<body>Hi all!</body>
</message>
*** User 2024-03-21 07:48:55.189 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_1808@localhost' to='alice_msg_is_sent_and_delivered_in_room_1808@localhost' id='96da9f2b-4753-42d7-9232-04b23c5d5bb4' type='groupchat'>
<body>Hi all!</body>
</message>
*** User 2024-03-21 07:48:55.189 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
<message from='1711-7335-103044@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_1808@localhost' to='bob_msg_is_sent_and_delivered_in_room_1808@localhost' id='96da9f2b-4753-42d7-9232-04b23c5d5bb4' type='groupchat'>
<body>Hi all!</body>
</message>
*** User 2024-03-21 07:48:55.189 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:48:55.190 ***🔗
bob_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:48:55.190 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:48:55.190 ***🔗
alice_msg_is_sent_and_delivered_in_room_1808@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:48:55
=== successfully completed test case
=== === Returned value: ok