=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.88447.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/rest_client_suite.all_messages_are_archived.179459.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_22.35.00/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_amp => #{},
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_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,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@17a96e781220.2024-03-21_22.20.25"
=== Started at 2024-03-21 22:35:00
*** User 2024-03-21 22:35:00.492 ***🔗
alicE_all_messages_are_archived_3127@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-21 22:35:00.493 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bbf05de8628cb855' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:00.493 ***🔗
alicE_all_messages_are_archived_3127@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-21 22:35:00.493 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzEyNwBtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 22:35:00.495 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:00.495 ***🔗
alicE_all_messages_are_archived_3127@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-21 22:35:00.496 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3210aa83c55ad0fe' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_3127@localhost'>
*** User 2024-03-21 22:35:00.496 ***🔗
alicE_all_messages_are_archived_3127@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-21 22:35:00.496 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='531d9cba7a0ebe21a1aa422b738e03ab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:00.496 ***🔗
alicE_all_messages_are_archived_3127@localhost/res1 in
<iq id='531d9cba7a0ebe21a1aa422b738e03ab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_3127@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:00.496 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='ac626fd1773b71ee654d9e9b9a9338c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.498 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_3127@localhost/res1' id='ac626fd1773b71ee654d9e9b9a9338c4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.498 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:00.503 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 in
<presence from='alice_all_messages_are_archived_3127@localhost/res1' to='alice_all_messages_are_archived_3127@localhost/res1'/>
*** User 2024-03-21 22:35:00.504 ***🔗
bOb_all_messages_are_archived_3127@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-21 22:35:00.504 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ca91b6b02bdca27' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:00.504 ***🔗
bOb_all_messages_are_archived_3127@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-21 22:35:00.504 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMxMjcAbWFrcm9saWth</auth>
*** User 2024-03-21 22:35:00.506 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:00.506 ***🔗
bOb_all_messages_are_archived_3127@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-21 22:35:00.507 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7739769d2a66ab99' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_3127@localhost'>
*** User 2024-03-21 22:35:00.507 ***🔗
bOb_all_messages_are_archived_3127@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-21 22:35:00.507 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='9b88403e1aabe899531e239fffbd30f8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:00.507 ***🔗
bOb_all_messages_are_archived_3127@localhost/res1 in
<iq id='9b88403e1aabe899531e239fffbd30f8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_3127@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:00.507 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='a5d33c191f5e96d013cbe8261685143c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.508 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_3127@localhost/res1' id='a5d33c191f5e96d013cbe8261685143c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.508 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:00.514 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 in
<presence from='bob_all_messages_are_archived_3127@localhost/res1' to='bob_all_messages_are_archived_3127@localhost/res1'/>
*** User 2024-03-21 22:35:00.514 ***🔗
kate_all_messages_are_archived_3127@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-21 22:35:00.515 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb214ee42c4207f1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 22:35:00.516 ***🔗
kate_all_messages_are_archived_3127@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-21 22:35:00.516 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTI3AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-21 22:35:00.518 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 22:35:00.518 ***🔗
kate_all_messages_are_archived_3127@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-21 22:35:00.518 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b51b4daf49666534' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_3127@localhost'>
*** User 2024-03-21 22:35:00.519 ***🔗
kate_all_messages_are_archived_3127@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-21 22:35:00.519 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='0a6dde811995d26d87b33c218aab6d18'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 22:35:00.519 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<iq id='0a6dde811995d26d87b33c218aab6d18' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_3127@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 22:35:00.519 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 out
<iq type='set' id='fd69d5f31d46efc61b3ae4f316ad3da6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.520 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_3127@localhost/res1' id='fd69d5f31d46efc61b3ae4f316ad3da6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 22:35:00.520 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 out
<presence/>
*** User 2024-03-21 22:35:00.523 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
<presence from='kate_all_messages_are_archived_3127@localhost/res1' to='kate_all_messages_are_archived_3127@localhost/res1'/>
*** User 2024-03-21 22:35:00.599 ***🔗
REST request:
Code: 200
Req: {<0.88558.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b7b1a4c18859005">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzEyN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3127@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:34:59 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"3038e9e7d3bdcb02\"}">>,149,67941}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3127@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_all_messages_are_archived_3127@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:00.614 ***🔗
REST request:
Code: 200
Req: {<0.88612.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f4047e2867b76432">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTI3QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_3127@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3127@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:34:59 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c59d517fc28e320e\"}">>,149,7866}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_3127@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3127@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_all_messages_are_archived_3127@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-21 22:35:00.627 ***🔗
REST request:
Code: 200
Req: {<0.88634.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e393a38865ae15ef">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMxMjdAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3127@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"640c5bb35826c668\"}">>,149,6748}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3127@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_all_messages_are_archived_3127@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:00.686 ***🔗
REST request:
Code: 200
Req: {<0.88654.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7eea1cb723d40849">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMTI3QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 22:35:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_3127@localhost\",\"timestamp\":1711060500539,\"id\":\"3038e9e7d3bdcb02\",\"from\":\"bob_all_messages_are_archived_3127@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_3127@localhost\",\"timestamp\":1711060500608,\"id\":\"c59d517fc28e320e\",\"from\":\"alice_all_messages_are_archived_3127@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3127@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_3127@localhost\",\"timestamp\":1711060500622,\"id\":\"640c5bb35826c668\",\"from\":\"kate_all_messages_are_archived_3127@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3127@localhost it's me\"}]">>,
818,3870}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_all_messages_are_archived_3127@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-21 22:35:00.686 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:00.686 ***🔗
kate_all_messages_are_archived_3127@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:00.687 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:00.687 ***🔗
bob_all_messages_are_archived_3127@localhost/res1 in
</stream:stream>
*** User 2024-03-21 22:35:00.687 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 out
</stream:stream>
*** User 2024-03-21 22:35:00.688 ***🔗
alice_all_messages_are_archived_3127@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 22:35:00
=== successfully completed test case
=== === Returned value: ok