=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.78909.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.all_messages_are_archived.103684.html"},
{tc_group_properties,[{name,messages},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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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 => 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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:52
*** User 2024-03-11 09:09:52.185 ***🔗
alicE_all_messages_are_archived_2924@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-11 09:09:52.186 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a2d3f3633c5e1125' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.187 ***🔗
alicE_all_messages_are_archived_2924@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-11 09:09:52.187 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjkyNABtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_all_messages_are_archived_2924@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-11 09:09:52.189 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fa3b9f8f4f508fae' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_2924@localhost'>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_all_messages_are_archived_2924@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-11 09:09:52.190 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='272eb94f81eb378aef889b9fc6fc46df'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alicE_all_messages_are_archived_2924@localhost/res1 in
<iq id='272eb94f81eb378aef889b9fc6fc46df' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_2924@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='15596031b3c57ce4286866cc13bdc043'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.191 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_2924@localhost/res1' id='15596031b3c57ce4286866cc13bdc043' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.191 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.193 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 in
<presence from='alice_all_messages_are_archived_2924@localhost/res1' to='alice_all_messages_are_archived_2924@localhost/res1'/>
*** User 2024-03-11 09:09:52.193 ***🔗
bOb_all_messages_are_archived_2924@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-11 09:09:52.194 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c953feab2e19dab' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.194 ***🔗
bOb_all_messages_are_archived_2924@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-11 09:09:52.194 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzI5MjQAbWFrcm9saWth</auth>
*** User 2024-03-11 09:09:52.196 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.196 ***🔗
bOb_all_messages_are_archived_2924@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-11 09:09:52.196 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6efb44eb30b4287' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_2924@localhost'>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_all_messages_are_archived_2924@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-11 09:09:52.197 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='db48810a77353180c1fb8bc36c5340e1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_all_messages_are_archived_2924@localhost/res1 in
<iq id='db48810a77353180c1fb8bc36c5340e1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_2924@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.197 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='382fd854d8ff9be6fbd500faf916ced0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.198 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_2924@localhost/res1' id='382fd854d8ff9be6fbd500faf916ced0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.198 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.201 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 in
<presence from='bob_all_messages_are_archived_2924@localhost/res1' to='bob_all_messages_are_archived_2924@localhost/res1'/>
*** User 2024-03-11 09:09:52.202 ***🔗
kate_all_messages_are_archived_2924@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-11 09:09:52.202 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9231c7a10861104' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.202 ***🔗
kate_all_messages_are_archived_2924@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-11 09:09:52.202 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTI0AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-11 09:09:52.204 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.204 ***🔗
kate_all_messages_are_archived_2924@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-11 09:09:52.205 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90bbef50b0f97f93' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_2924@localhost'>
*** User 2024-03-11 09:09:52.206 ***🔗
kate_all_messages_are_archived_2924@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-11 09:09:52.206 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='c88e4e89a65397e187acdbe6cc5e7491'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.206 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<iq id='c88e4e89a65397e187acdbe6cc5e7491' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_2924@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.206 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 out
<iq type='set' id='841deaaf73c8f1b02b13edee8df93fee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.208 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_2924@localhost/res1' id='841deaaf73c8f1b02b13edee8df93fee' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.208 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.211 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
<presence from='kate_all_messages_are_archived_2924@localhost/res1' to='kate_all_messages_are_archived_2924@localhost/res1'/>
*** User 2024-03-11 09:09:52.226 ***🔗
REST request:
Code: 200
Req: {<0.79024.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6373818e5b5bd489">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjkyNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2924@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c8d8854d875efb89\"}">>,149,7257}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2924@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_all_messages_are_archived_2924@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:52.286 ***🔗
REST request:
Code: 200
Req: {<0.79053.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02007f9e9d32ecc6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTI0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_2924@localhost it's me\",\"to\":\"bob_all_messages_are_archived_2924@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"74b4a99be376bd8d\"}">>,149,53601}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_2924@localhost it's me\",\"to\":\"bob_all_messages_are_archived_2924@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_all_messages_are_archived_2924@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-03-11 09:09:52.299 ***🔗
REST request:
Code: 200
Req: {<0.79082.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"38e84ffd50d1c2bc">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzI5MjRAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2924@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"69d2f85754d7e04f\"}">>,149,6637}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2924@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_all_messages_are_archived_2924@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:52.309 ***🔗
REST request:
Code: 200
Req: {<0.79107.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6af031cb6da04da6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTI0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_2924@localhost\",\"timestamp\":1710148192222,\"id\":\"c8d8854d875efb89\",\"from\":\"bob_all_messages_are_archived_2924@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_2924@localhost\",\"timestamp\":1710148192282,\"id\":\"74b4a99be376bd8d\",\"from\":\"alice_all_messages_are_archived_2924@localhost\",\"body\":\"hello, bob_all_messages_are_archived_2924@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_2924@localhost\",\"timestamp\":1710148192294,\"id\":\"69d2f85754d7e04f\",\"from\":\"kate_all_messages_are_archived_2924@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2924@localhost it's me\"}]">>,
818,3030}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_all_messages_are_archived_2924@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:52.309 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.309 ***🔗
kate_all_messages_are_archived_2924@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:52.309 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.310 ***🔗
bob_all_messages_are_archived_2924@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:52.310 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.311 ***🔗
alice_all_messages_are_archived_2924@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:52
=== successfully completed test case
=== === Returned value: ok