=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.82679.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_client_SUITE.logs/run.2024-04-18_11.10.07/rest_client_suite.msg_is_sent_and_delivered_in_room.92676.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_client_SUITE.logs/run.2024-04-18_11.10.07/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:10:08
*** User 2024-04-18 11:10:08.249 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.250 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ea6d98967bc4db10' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:10:08.250 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.251 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTgxAG1hdHlncnlzYQ==</auth>
*** User 2024-04-18 11:10:08.252 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:10:08.252 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.253 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8f3990f1931b955d' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost'>
*** User 2024-04-18 11:10:08.253 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.254 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<iq type='set' id='8c01c74b27bc2a9873907c7372be39ba'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:10:08.254 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<iq id='8c01c74b27bc2a9873907c7372be39ba' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:10:08.254 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<iq type='set' id='68e4babdf39edae015095faca2685883'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:08.256 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1' id='68e4babdf39edae015095faca2685883' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:08.256 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<presence/>
*** User 2024-04-18 11:10:08.259 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1'/>
*** User 2024-04-18 11:10:08.260 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.261 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d009bf632e180235' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:10:08.261 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.261 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjk4MQBtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:10:08.263 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:10:08.263 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.264 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffe79bbea53fb85a' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost'>
*** User 2024-04-18 11:10:08.264 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@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-04-18 11:10:08.264 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<iq type='set' id='ff67497fa9c8fef39ddd329c8c09c0d3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:10:08.264 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<iq id='ff67497fa9c8fef39ddd329c8c09c0d3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:10:08.264 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<iq type='set' id='722225b3aa67eea7e78f324fbe796a48'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:08.265 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1' id='722225b3aa67eea7e78f324fbe796a48' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:08.265 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
<presence/>
*** User 2024-04-18 11:10:08.282 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1'/>
*** User 2024-04-18 11:10:08.365 ***🔗
REST request:
Code: 201
Req: {<0.83132.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"69e82f8927f8228d">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-438608-352307\"}">>,156,15946}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2981@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-18 11:10:08.456 ***🔗
REST request:
Code: 204
Req: {<0.83268.0>,<<"/api/rooms/1713-438608-352307/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56224755da42504a">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2981@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:08 GMT">>}],
<<>>,80,85461}
Params: #{path => <<"/api/rooms/1713-438608-352307/users">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2981@localhost\"}">>,
role => client,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2981@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-18 11:10:08.457 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost' id='9c3aa913-1fbd-4274-ae51-fd5ebabce8a0' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1713-438608-384489</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2981@localhost</user>
</x>
<body/>
</message>
*** User 2024-04-18 11:10:08.457 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost' id='9c3aa913-1fbd-4274-ae51-fd5ebabce8a0' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1713-438608-352299</prev-version>
<version>1713-438608-384489</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2981@localhost</user>
</x>
<body/>
<stanza-id by='1713-438608-352307@muclight.localhost' id='C5IT0ECCTFG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-18 11:10:08.473 ***🔗
REST request:
Code: 200
Req: {<0.83414.0>,<<"/api/rooms/1713-438608-352307/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"22cd7b95a448eb9b">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5ODFAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"9866e4c2-ac1e-4fa2-aef8-247a0a9c2a55\"}">>,169,8866}
Params: #{path => <<"/api/rooms/1713-438608-352307/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2981@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-18 11:10:08.485 ***🔗
REST request:
Code: 200
Req: {<0.83486.0>,<<"/api/rooms/1713-438608-352307/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e4cf1a8b88254a5">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTgxQGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"4debae4f-2258-4f92-9b4b-9a321252ee90\"}">>,169,4901}
Params: #{path => <<"/api/rooms/1713-438608-352307/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_2981@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-18 11:10:08.486 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2981@localhost' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost' id='9866e4c2-ac1e-4fa2-aef8-247a0a9c2a55' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-438608-352307@muclight.localhost' id='C5IT0ED2CLO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-18 11:10:08.486 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_2981@localhost' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost' id='9866e4c2-ac1e-4fa2-aef8-247a0a9c2a55' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-438608-352307@muclight.localhost' id='C5IT0ED2CLO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-18 11:10:08.486 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2981@localhost' to='alice_msg_is_sent_and_delivered_in_room_2981@localhost' id='4debae4f-2258-4f92-9b4b-9a321252ee90' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-438608-352307@muclight.localhost' id='C5IT0ED5QG81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-18 11:10:08.486 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
<message from='1713-438608-352307@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_2981@localhost' to='bob_msg_is_sent_and_delivered_in_room_2981@localhost' id='4debae4f-2258-4f92-9b4b-9a321252ee90' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-438608-352307@muclight.localhost' id='C5IT0ED5QG81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-18 11:10:08.487 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:10:08.487 ***🔗
bob_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:10:08.488 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:10:08.488 ***🔗
alice_msg_is_sent_and_delivered_in_room_2981@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-18 11:10:08
=== successfully completed test case
=== === Returned value: ok