=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.87429.0>},
{muc_light_host,<<"muclight.localhost">>},
{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@1877d89c8d91.2024-03-12_08.05.07/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_08.21.15/rest_client_suite.msg_is_sent_and_delivered_in_room.228354.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@1877d89c8d91.2024-03-12_08.05.07/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_08.21.15/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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@1877d89c8d91.2024-03-12_08.05.07"
=== Started at 2024-03-12 08:21:15
*** User 2024-03-12 08:21:15.716 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.717 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3b2e6f963c4ffac2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 08:21:15.717 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.718 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMzQ2AG1hdHlncnlzYQ==</auth>
*** User 2024-03-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7b3c6224f5fd576c' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost'>
*** User 2024-03-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<iq type='set' id='64125a4796fbe0a054800fdae4f56e56'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 08:21:15.720 ***🔗
alicE_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<iq id='64125a4796fbe0a054800fdae4f56e56' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 08:21:15.720 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<iq type='set' id='b5b3c58643c150a9cc2cc09923960a02'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 08:21:15.721 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1' id='b5b3c58643c150a9cc2cc09923960a02' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 08:21:15.721 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<presence/>
*** User 2024-03-12 08:21:15.783 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1'/>
*** User 2024-03-12 08:21:15.785 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.786 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='998e1b7fc99e3fc5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 08:21:15.786 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.787 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX2luX3Jvb21fMzM0NgBtYWtyb2xpa2E=</auth>
*** User 2024-03-12 08:21:15.788 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 08:21:15.788 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.789 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a64e3f6f54189183' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost'>
*** User 2024-03-12 08:21:15.789 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@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-12 08:21:15.789 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<iq type='set' id='579d9eb9ab2d0e13809df2860d5d1faa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 08:21:15.789 ***🔗
bOb_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<iq id='579d9eb9ab2d0e13809df2860d5d1faa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 08:21:15.790 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<iq type='set' id='74b9e48122691cbfda73c01c1df03b2a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 08:21:15.790 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1' id='74b9e48122691cbfda73c01c1df03b2a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 08:21:15.790 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
<presence/>
*** User 2024-03-12 08:21:15.802 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1'/>
*** User 2024-03-12 08:21:15.823 ***🔗
REST request:
Code: 201
Req: {<0.87855.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7aa50beae4392e39">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzNDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 08:21:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1710-231675-813362\"}">>,156,14701}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3346@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 08:21:15.989 ***🔗
REST request:
Code: 204
Req: {<0.87981.0>,<<"/api/rooms/1710-231675-813362/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2575063847ca72a1">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzNDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3346@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 08:21:15 GMT">>}],
<<>>,80,101581}
Params: #{path => <<"/api/rooms/1710-231675-813362/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3346@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"user\":\"bob_msg_is_sent_and_delivered_in_room_3346@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 08:21:15.989 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost' id='93ca3ec3-1579-42f3-bd25-31f8ec02892d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1710-231675-923502</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3346@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-12 08:21:15.989 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost' id='93ca3ec3-1579-42f3-bd25-31f8ec02892d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1710-231675-813352</prev-version>
<version>1710-231675-923502</version>
<user affiliation='member'>bob_msg_is_sent_and_delivered_in_room_3346@localhost</user>
</x>
<body/>
<stanza-id by='1710-231675-813362@muclight.localhost' id='C4RIAU3EI201' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-12 08:21:16.002 ***🔗
REST request:
Code: 200
Req: {<0.88224.0>,<<"/api/rooms/1710-231675-813362/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4253aa9b12c64954">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9pbl9yb29tXzMzNDZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 08:21:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"1d79e337-c645-4cff-b34c-c491e968a030\"}">>,169,4983}
Params: #{path => <<"/api/rooms/1710-231675-813362/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_msg_is_sent_and_delivered_in_room_3346@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 08:21:16.012 ***🔗
REST request:
Code: 200
Req: {<0.88264.0>,<<"/api/rooms/1710-231675-813362/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2da3c224f2bf8b73">>},
{<<"authorization">>,
<<"Basic Ym9iX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfaW5fcm9vbV8zMzQ2QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 08:21:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"cf77b7f7-b12e-4b0d-883c-742f7838181c\"}">>,169,4473}
Params: #{path => <<"/api/rooms/1710-231675-813362/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_msg_is_sent_and_delivered_in_room_3346@localhost">>,
<<"makrolika">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 08:21:16.013 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3346@localhost' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost' id='1d79e337-c645-4cff-b34c-c491e968a030' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1710-231675-813362@muclight.localhost' id='C4RIAU415L01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-12 08:21:16.013 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost/alice_msg_is_sent_and_delivered_in_room_3346@localhost' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost' id='1d79e337-c645-4cff-b34c-c491e968a030' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1710-231675-813362@muclight.localhost' id='C4RIAU415L01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-12 08:21:16.013 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3346@localhost' to='alice_msg_is_sent_and_delivered_in_room_3346@localhost' id='cf77b7f7-b12e-4b0d-883c-742f7838181c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1710-231675-813362@muclight.localhost' id='C4RIAU43QCG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-12 08:21:16.014 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
<message from='1710-231675-813362@muclight.localhost/bob_msg_is_sent_and_delivered_in_room_3346@localhost' to='bob_msg_is_sent_and_delivered_in_room_3346@localhost' id='cf77b7f7-b12e-4b0d-883c-742f7838181c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1710-231675-813362@muclight.localhost' id='C4RIAU43QCG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-12 08:21:16.014 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
</stream:stream>
*** User 2024-03-12 08:21:16.014 ***🔗
bob_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
</stream:stream>
*** User 2024-03-12 08:21:16.014 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 out
</stream:stream>
*** User 2024-03-12 08:21:16.015 ***🔗
alice_msg_is_sent_and_delivered_in_room_3346@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-12 08:21:16
=== successfully completed test case
=== === Returned value: ok