=== Test case: rest_client_SUITE:messages_can_be_sent_and_fetched_by_room_jid/1 (click for source code)
=== Config value:
[{watchdog,<0.88114.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/rest_client_suite.messages_can_be_sent_and_fetched_by_room_jid.238082.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/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_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@97931f009ece.2024-04-23_10.53.14"
=== Started at 2024-04-23 11:09:47
*** User 2024-04-23 11:09:47.150 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.151 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0184d26aedd8caa0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:47.152 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.152 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9zZW50X2FuZF9mZXRjaGVkX2J5X3Jvb21famlkXzMzNDcAbWF0eWdyeXNh</auth>
*** User 2024-04-23 11:09:47.154 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:47.154 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.154 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffe67ddf4e92b333' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost'>
*** User 2024-04-23 11:09:47.154 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.155 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<iq type='set' id='aaab545b6aadf15ddc5f4c20db3b33a7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:47.155 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<iq id='aaab545b6aadf15ddc5f4c20db3b33a7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:47.155 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<iq type='set' id='6e0133c4dfbb899d3f4db7210b85293b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:47.156 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1' id='6e0133c4dfbb899d3f4db7210b85293b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:47.157 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:47.163 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<presence from='alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1'/>
*** User 2024-04-23 11:09:47.164 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.165 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9be36d343a966d15' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:47.165 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.165 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfc2VudF9hbmRfZmV0Y2hlZF9ieV9yb29tX2ppZF8zMzQ3AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-23 11:09:47.171 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:47.171 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.171 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88e3abdbe4efc0e7' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost'>
*** User 2024-04-23 11:09:47.172 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@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-23 11:09:47.172 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<iq type='set' id='53b42bec285ca282e7d7c6337858fdc9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:47.173 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<iq id='53b42bec285ca282e7d7c6337858fdc9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:47.173 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<iq type='set' id='5e7657468c5f64786c7344867d178d63'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:47.227 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1' id='5e7657468c5f64786c7344867d178d63' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:47.227 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:47.245 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
<presence from='bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1'/>
*** User 2024-04-23 11:09:47.269 ***🔗
REST request:
Code: 201
Req: {<0.88618.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41cf94097d7382b8">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzM0N0Bsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-870587-258584\"}">>,156,12803}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-23 11:09:47.372 ***🔗
REST request:
Code: 200
Req: {<0.88721.0>,
<<"/api/rooms/1713-870587-258584@muclight.localhost/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"961a4d701c84cf47">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzM0N0Bsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"87e1b000-6ead-444a-a2c6-6d1fa746feb8\"}">>,169,34733}
Params: #{path =>
<<"/api/rooms/1713-870587-258584@muclight.localhost/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,
body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-23 11:09:47.440 ***🔗
REST request:
Code: 200
Req: {<0.88870.0>,
<<"/api/rooms/1713-870587-258584@muclight.localhost/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbc68b225d5f3ac6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzM0N0Bsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"182">>}],
<<"[{\"from\":\"alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost\",\"body\":\"Hi all!\",\"type\":\"message\",\"timestamp\":1713870587349,\"id\":\"87e1b000-6ead-444a-a2c6-6d1fa746feb8\"}]">>,
307,5498}
Params: #{path =>
<<"/api/rooms/1713-870587-258584@muclight.localhost/messages?limit=10">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:47.440 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:47.441 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:09:47.441 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:47.441 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3347@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:09:47
=== successfully completed test case
=== === Returned value: ok