=== Test case: rest_client_SUITE:messages_can_be_sent_and_fetched_by_room_jid/1 (click for source code)
=== Config value:
[{watchdog,<0.83834.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@e84896a28784.2023-12-20_12.31.47/big_tests.tests.rest_client_SUITE.logs/run.2023-12-20_12.48.35/rest_client_suite.messages_can_be_sent_and_fetched_by_room_jid.229378.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@e84896a28784.2023-12-20_12.31.47/big_tests.tests.rest_client_SUITE.logs/run.2023-12-20_12.48.35/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_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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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@e84896a28784.2023-12-20_12.31.47"
=== Started at 2023-12-20 12:48:36
*** User 2023-12-20 12:48:36.523 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.524 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a47859b0d6738c2' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:36.524 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.524 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9zZW50X2FuZF9mZXRjaGVkX2J5X3Jvb21famlkXzMwODEAbWF0eWdyeXNh</auth>
*** User 2023-12-20 12:48:36.527 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:36.527 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.528 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11c291c84e0c12f2' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost'>
*** User 2023-12-20 12:48:36.528 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.528 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<iq type='set' id='0bcd448332de91fbbf03c488bf0064da'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:36.529 ***🔗
alicE_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<iq id='0bcd448332de91fbbf03c488bf0064da' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:36.530 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<iq type='set' id='e9d9281cf625b0423fabf79057b2bb8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:36.531 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1' id='e9d9281cf625b0423fabf79057b2bb8c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:36.531 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:36.604 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<presence from='alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1' to='alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1'/>
*** User 2023-12-20 12:48:36.606 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.607 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='653313fc54820b5a' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-12-20 12:48:36.608 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.608 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfc2VudF9hbmRfZmV0Y2hlZF9ieV9yb29tX2ppZF8zMDgxAG1ha3JvbGlrYQ==</auth>
*** User 2023-12-20 12:48:36.617 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-20 12:48:36.617 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.617 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d29df8fde5559ce' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost'>
*** User 2023-12-20 12:48:36.617 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@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-12-20 12:48:36.618 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<iq type='set' id='6a8fe1e3e28ef0e7200c29403b4dad6b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-20 12:48:36.618 ***🔗
bOb_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<iq id='6a8fe1e3e28ef0e7200c29403b4dad6b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1</jid>
</bind>
</iq>
*** User 2023-12-20 12:48:36.618 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<iq type='set' id='05b6c639ea1c2219da9fdd99b84dbdc0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:36.622 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1' id='05b6c639ea1c2219da9fdd99b84dbdc0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-20 12:48:36.622 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
<presence/>
*** User 2023-12-20 12:48:36.627 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
<presence from='bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1' to='bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1'/>
*** User 2023-12-20 12:48:36.714 ***🔗
REST request:
Code: 201
Req: {<0.84390.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1d9a467d2e5afa44">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzA4MUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"{\"id\":\"1703-76516-705468\"}">>,155,79192}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
return_headers => true}
*** User 2023-12-20 12:48:36.821 ***🔗
REST request:
Code: 200
Req: {<0.84495.0>,
<<"/api/rooms/1703-76516-705468@muclight.localhost/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fd9dd78999020f36">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzA4MUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"59ede667-63e1-44da-952c-873f95c37edc\"}">>,169,100855}
Params: #{path =>
<<"/api/rooms/1703-76516-705468@muclight.localhost/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => client,
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost">>,
<<"matygrysa">>},
body => <<"{\"body\":\"Hi all!\"}">>,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2023-12-20 12:48:36.839 ***🔗
REST request:
Code: 200
Req: {<0.84638.0>,
<<"/api/rooms/1703-76516-705468@muclight.localhost/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2c9ae93b6dd74f4">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3NlbnRfYW5kX2ZldGNoZWRfYnlfcm9vbV9qaWRfMzA4MUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 20 Dec 2023 12:48:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"182">>}],
<<"[{\"from\":\"alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost\",\"body\":\"Hi all!\",\"type\":\"message\",\"timestamp\":1703076516807,\"id\":\"59ede667-63e1-44da-952c-873f95c37edc\"}]">>,
307,9741}
Params: #{path =>
<<"/api/rooms/1703-76516-705468@muclight.localhost/messages?limit=10">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => client,
creds =>
{<<"alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost">>,
<<"matygrysa">>},
body => <<>>,return_headers => true}
*** User 2023-12-20 12:48:36.839 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:36.839 ***🔗
bob_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
</stream:stream>
*** User 2023-12-20 12:48:36.839 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 out
</stream:stream>
*** User 2023-12-20 12:48:36.903 ***🔗
alice_messages_can_be_sent_and_fetched_by_room_jid_3081@localhost/res1 in
</stream:stream>
=== Ended at 2023-12-20 12:48:36
=== successfully completed test case
=== === Returned value: ok