=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87796.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@8a2dd56084c3.2024-04-16_12.56.12/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_13.12.23/rest_client_suite.all_messages_are_archived.130692.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@8a2dd56084c3.2024-04-16_12.56.12/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_13.12.23/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_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_sic => #{iqdisc => one_queue},
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 =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => mnesia},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8a2dd56084c3.2024-04-16_12.56.12"
=== Started at 2024-04-16 13:12:23
*** User 2024-04-16 13:12:23.737 ***🔗
alicE_all_messages_are_archived_3348@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-16 13:12:23.739 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36efeec080d49408' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 13:12:23.739 ***🔗
alicE_all_messages_are_archived_3348@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-16 13:12:23.739 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzM0OABtYXR5Z3J5c2E=</auth>
*** User 2024-04-16 13:12:23.741 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 13:12:23.741 ***🔗
alicE_all_messages_are_archived_3348@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-16 13:12:23.741 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04d2ffe0ee7543ee' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_3348@localhost'>
*** User 2024-04-16 13:12:23.742 ***🔗
alicE_all_messages_are_archived_3348@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-16 13:12:23.742 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='78a2826dea20ba1f20b9a826a78a96bc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 13:12:23.742 ***🔗
alicE_all_messages_are_archived_3348@localhost/res1 in
<iq id='78a2826dea20ba1f20b9a826a78a96bc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_3348@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 13:12:23.742 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='bc88334ccc88b1ecd2234a8ac8bada05'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.743 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_3348@localhost/res1' id='bc88334ccc88b1ecd2234a8ac8bada05' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.743 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 out
<presence/>
*** User 2024-04-16 13:12:23.744 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 in
<presence from='alice_all_messages_are_archived_3348@localhost/res1' to='alice_all_messages_are_archived_3348@localhost/res1'/>
*** User 2024-04-16 13:12:23.745 ***🔗
bOb_all_messages_are_archived_3348@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-16 13:12:23.764 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a24f3f1c73542f0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 13:12:23.764 ***🔗
bOb_all_messages_are_archived_3348@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-16 13:12:23.765 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMzNDgAbWFrcm9saWth</auth>
*** User 2024-04-16 13:12:23.772 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 13:12:23.772 ***🔗
bOb_all_messages_are_archived_3348@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-16 13:12:23.773 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5a82bcd9cd7d76d6' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_3348@localhost'>
*** User 2024-04-16 13:12:23.773 ***🔗
bOb_all_messages_are_archived_3348@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-16 13:12:23.773 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='4af63afd758a8221cb99a2ccac18b300'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 13:12:23.773 ***🔗
bOb_all_messages_are_archived_3348@localhost/res1 in
<iq id='4af63afd758a8221cb99a2ccac18b300' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_3348@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 13:12:23.774 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='18a2d2af64945ba984e6b830ea967a88'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.774 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_3348@localhost/res1' id='18a2d2af64945ba984e6b830ea967a88' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.774 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 out
<presence/>
*** User 2024-04-16 13:12:23.782 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 in
<presence from='bob_all_messages_are_archived_3348@localhost/res1' to='bob_all_messages_are_archived_3348@localhost/res1'/>
*** User 2024-04-16 13:12:23.785 ***🔗
kate_all_messages_are_archived_3348@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-16 13:12:23.787 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7a6308c6c0f41f3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 13:12:23.787 ***🔗
kate_all_messages_are_archived_3348@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-16 13:12:23.787 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzQ4AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-16 13:12:23.788 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 13:12:23.789 ***🔗
kate_all_messages_are_archived_3348@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-16 13:12:23.789 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7df95dcb39ce3f29' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_3348@localhost'>
*** User 2024-04-16 13:12:23.790 ***🔗
kate_all_messages_are_archived_3348@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-16 13:12:23.790 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='94f293ad5346252da61a3d468d88d4ff'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 13:12:23.790 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<iq id='94f293ad5346252da61a3d468d88d4ff' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_3348@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 13:12:23.791 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 out
<iq type='set' id='9b9b28a33d864f707f87383a6531ddfd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.793 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_3348@localhost/res1' id='9b9b28a33d864f707f87383a6531ddfd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 13:12:23.793 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 out
<presence/>
*** User 2024-04-16 13:12:23.796 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
<presence from='kate_all_messages_are_archived_3348@localhost/res1' to='kate_all_messages_are_archived_3348@localhost/res1'/>
*** User 2024-04-16 13:12:23.816 ***🔗
REST request:
Code: 200
Req: {<0.87913.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7032460e72eef7ff">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMzM0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3348@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 13:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"a1677cd1fefb390b\"}">>,149,12250}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_all_messages_are_archived_3348@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3348@localhost\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 13:12:23.828 ***🔗
REST request:
Code: 200
Req: {<0.87950.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4687ce8eac169b40">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzQ4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_3348@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3348@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 13:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"19622ca71ed577da\"}">>,149,4740}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_all_messages_are_archived_3348@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_3348@localhost it's me\",\"to\":\"bob_all_messages_are_archived_3348@localhost\"}">>,
method => <<"POST">>,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-04-16 13:12:23.892 ***🔗
REST request:
Code: 200
Req: {<0.87968.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b9bc9120561e5bd">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzMzNDhAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3348@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 13:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1128e61c5f1a7530\"}">>,149,16242}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_all_messages_are_archived_3348@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\",\"to\":\"alice_all_messages_are_archived_3348@localhost\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 13:12:23.903 ***🔗
REST request:
Code: 200
Req: {<0.87989.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"96b495ce4cb410bd">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8zMzQ4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 13:12:23 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_3348@localhost\",\"timestamp\":1713273143807,\"id\":\"a1677cd1fefb390b\",\"from\":\"bob_all_messages_are_archived_3348@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_3348@localhost\",\"timestamp\":1713273143824,\"id\":\"19622ca71ed577da\",\"from\":\"alice_all_messages_are_archived_3348@localhost\",\"body\":\"hello, bob_all_messages_are_archived_3348@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_3348@localhost\",\"timestamp\":1713273143879,\"id\":\"1128e61c5f1a7530\",\"from\":\"kate_all_messages_are_archived_3348@localhost\",\"body\":\"hello, alice_all_messages_are_archived_3348@localhost it's me\"}]">>,
818,3274}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_all_messages_are_archived_3348@localhost">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 13:12:23.904 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 out
</stream:stream>
*** User 2024-04-16 13:12:23.904 ***🔗
kate_all_messages_are_archived_3348@localhost/res1 in
</stream:stream>
*** User 2024-04-16 13:12:23.904 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 out
</stream:stream>
*** User 2024-04-16 13:12:23.905 ***🔗
bob_all_messages_are_archived_3348@localhost/res1 in
</stream:stream>
*** User 2024-04-16 13:12:23.905 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 out
</stream:stream>
*** User 2024-04-16 13:12:23.905 ***🔗
alice_all_messages_are_archived_3348@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 13:12:23
=== successfully completed test case
=== === Returned value: ok