=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.76181.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"pgsql_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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_13.22.42/rest_client_suite.msg_is_sent_and_delivered_in_room.224514.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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_13.22.42/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_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_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@983bb6b138f0.2024-04-26_13.09.46"
=== Started at 2024-04-26 13:22:43
*** User 2024-04-26 13:22:43.279 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.280 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff04b31754323786' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:43.281 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.281 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTM2AG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 13:22:43.283 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:43.283 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.284 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0958b97b5fd7fa29' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com'>
*** User 2024-04-26 13:22:43.285 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.285 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<iq type='set' id='80c9f562b1e5d553be9b67044b65b369'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:43.287 ***🔗
alicE_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<iq id='80c9f562b1e5d553be9b67044b65b369' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:43.287 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<iq type='set' id='5e721151608d2a61b473461e7abe61a3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:43.288 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1' id='5e721151608d2a61b473461e7abe61a3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:43.289 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:43.297 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1'/>
*** User 2024-04-26 13:22:43.298 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.299 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5abbbf8362ff42ed' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:43.300 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.300 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMjkzNgBtYWtyb2xpa2E=</auth>
*** User 2024-04-26 13:22:43.308 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:43.308 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac3585380433ee19' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com'>
*** User 2024-04-26 13:22:43.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@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-26 13:22:43.309 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<iq type='set' id='d539ad5324afb5577a6f07050b1b780b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:43.310 ***🔗
bOb_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<iq id='d539ad5324afb5577a6f07050b1b780b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:43.310 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<iq type='set' id='1bcbbcf74a9b7e33414b4a5510f9eae2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:43.311 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1' id='1bcbbcf74a9b7e33414b4a5510f9eae2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:43.311 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:43.385 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1'/>
*** User 2024-04-26 13:22:43.407 ***🔗
REST request:
Code: 201
Req: {<0.76653.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78879986b1a8a057">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5MzZAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1714-137763-400517\"}">>,156,10076}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com">>,
<<"matygrysa">>},
role => client,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:43.505 ***🔗
REST request:
Code: 204
Req: {<0.76742.0>,<<"/api/rooms/1714-137763-400517/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"55e256e2200b9050">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5MzZAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:43 GMT">>}],
<<>>,80,88998}
Params: #{path => <<"/api/rooms/1714-137763-400517/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com">>,
<<"matygrysa">>},
role => client,
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:43.505 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='22d8f39f-a632-4956-bfac-8d9d4a0cfda6' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1714-137763-490933</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-26 13:22:43.505 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='22d8f39f-a632-4956-bfac-8d9d4a0cfda6' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1714-137763-400507</prev-version>
<version>1714-137763-490933</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com</user>
</x>
<body/>
<stanza-id by='1714-137763-400517@muclight.domain.example.com' id='C5NVPHUFUS81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-26 13:22:43.580 ***🔗
REST request:
Code: 200
Req: {<0.76900.0>,<<"/api/rooms/1714-137763-400517/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8ea7fb014ba315ab">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzI5MzZAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"478350d5-15b7-4e17-ad79-24871ea3e87c\"}">>,169,67010}
Params: #{path => <<"/api/rooms/1714-137763-400517/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com">>,
<<"matygrysa">>},
role => client,body => <<"{\"body\":\"Hi all!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:43.598 ***🔗
REST request:
Code: 200
Req: {<0.76960.0>,<<"/api/rooms/1714-137763-400517/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9afecff5ebb8077a">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8yOTM2QGRvbWFpbi5leGFtcGxlLmNvbTptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"f3fc4d66-ed46-44ff-866b-5e424eeeb178\"}">>,169,9596}
Params: #{path => <<"/api/rooms/1714-137763-400517/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com">>,
<<"makrolika">>},
role => client,body => <<"{\"body\":\"Hi all!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:43.599 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='478350d5-15b7-4e17-ad79-24871ea3e87c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1714-137763-400517@muclight.domain.example.com' id='C5NVPHUP64G1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-26 13:22:43.599 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com/alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='478350d5-15b7-4e17-ad79-24871ea3e87c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1714-137763-400517@muclight.domain.example.com' id='C5NVPHUP64G1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-26 13:22:43.599 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com' to='alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='f3fc4d66-ed46-44ff-866b-5e424eeeb178' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1714-137763-400517@muclight.domain.example.com' id='C5NVPHVBO0G1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-26 13:22:43.599 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
<message from='1714-137763-400517@muclight.domain.example.com/bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com' to='bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com' id='f3fc4d66-ed46-44ff-866b-5e424eeeb178' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1714-137763-400517@muclight.domain.example.com' id='C5NVPHVBO0G1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-26 13:22:43.600 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:43.600 ***🔗
bob_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-26 13:22:43.601 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:43.601 ***🔗
alice_msg_is_sent_and_delivered_in_room_2936@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:22:43
=== successfully completed test case
=== === Returned value: ok