=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.84048.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/rest_client_suite.msg_is_sent_and_delivered_in_room.55429.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
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 => cets,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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:24:29
*** User 2023-11-17 15:24:29.251 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:29.252 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbd8f582f4a77831' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:29.253 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@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 2023-11-17 15:24:29.253 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTQ2AG1hdHlncnlzYQ==</auth>
*** User 2023-11-17 15:24:29.255 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:29.255 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:29.296 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb9d5248c1ee2e81' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost'>
*** User 2023-11-17 15:24:29.296 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@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 2023-11-17 15:24:29.296 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<iq type='set' id='166fea55907364a5756b4b06576c99b7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:29.297 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<iq id='166fea55907364a5756b4b06576c99b7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:29.297 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<iq type='set' id='66fd73709677cc878ae876d6b65cdf67'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:29.299 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1' id='66fd73709677cc878ae876d6b65cdf67' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:29.299 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:29.303 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1'/>
*** User 2023-11-17 15:24:29.304 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:29.305 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0fa249764c8cd062' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:29.305 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@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 2023-11-17 15:24:29.305 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjk0NgBtYWtyb2xpa2E=</auth>
*** User 2023-11-17 15:24:29.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:29.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:29.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f8ac72f320aee7a' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost'>
*** User 2023-11-17 15:24:29.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@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 2023-11-17 15:24:29.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<iq type='set' id='71beef8a9e593086f3adff64d75aa640'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:29.310 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<iq id='71beef8a9e593086f3adff64d75aa640' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:29.310 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<iq type='set' id='b20b09deafe7f92b886f80fcd2a888a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:29.311 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1' id='b20b09deafe7f92b886f80fcd2a888a0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:29.311 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:29.318 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1'/>
*** User 2023-11-17 15:24:29.397 ***🔗
REST request:
Code: 201
Req: {<0.84459.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78999938dc2ce1e3">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1700-234669-327615\"}">>,156,72636}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2946@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.437 ***🔗
REST request:
Code: 204
Req: {<0.84580.0>,<<"/api/rooms/1700-234669-327615/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f33a0ef93f3592e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2946@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>}],
<<>>,80,32778}
Params: #{path => <<"/api/rooms/1700-234669-327615/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2946@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2946@localhost\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.437 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost' id='7ca0fd1e-637a-4ebc-afbd-018528556805' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1700-234669-420160</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2946@localhost</user>
</x>
<body/>
</message>
*** User 2023-11-17 15:24:29.437 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost' id='7ca0fd1e-637a-4ebc-afbd-018528556805' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1700-234669-327608</prev-version>
<version>1700-234669-420160</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2946@localhost</user>
</x>
<body/>
<stanza-id by='1700-234669-327615@muclight.localhost' id='C2IQNE0MCMG0' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-11-17 15:24:29.509 ***🔗
REST request:
Code: 200
Req: {<0.84793.0>,<<"/api/rooms/1700-234669-327615/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6244d70c419e253e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5NDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"bee2d6fe-0bda-42f8-b790-167c20c7d723\"}">>,169,7299}
Params: #{path => <<"/api/rooms/1700-234669-327615/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2946@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.521 ***🔗
REST request:
Code: 200
Req: {<0.84846.0>,<<"/api/rooms/1700-234669-327615/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4ce9c0c8345a2b98">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTQ2QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"3ba23b27-b01d-428b-b28b-c9cd37efa9c4\"}">>,169,6478}
Params: #{path => <<"/api/rooms/1700-234669-327615/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_2946@localhost">>,
<<"makrolika">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.522 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2946@localhost' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost' id='bee2d6fe-0bda-42f8-b790-167c20c7d723' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1700-234669-327615@muclight.localhost' id='C2IQNE1BEMO0' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-11-17 15:24:29.522 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2946@localhost' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost' id='bee2d6fe-0bda-42f8-b790-167c20c7d723' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1700-234669-327615@muclight.localhost' id='C2IQNE1BEMO0' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-11-17 15:24:29.522 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2946@localhost' to='alice_msg_is_sent_and_delivered_in_room_2946@localhost' id='3ba23b27-b01d-428b-b28b-c9cd37efa9c4' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1700-234669-327615@muclight.localhost' id='C2IQNE1EN580' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-11-17 15:24:29.522 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
<message from='1700-234669-327615@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2946@localhost' to='bob_msg_is_sent_and_delivered_in_room_2946@localhost' id='3ba23b27-b01d-428b-b28b-c9cd37efa9c4' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1700-234669-327615@muclight.localhost' id='C2IQNE1EN580' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-11-17 15:24:29.522 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:29.523 ***🔗
bob_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:29.523 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:29.523 ***🔗
alice_msg_is_sent_and_delivered_in_room_2946@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:24:29
=== successfully completed test case
=== === Returned value: ok