=== Test case: rest_client_SUITE:all_messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.81113.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.59.42/rest_client_suite.all_messages_are_archived.147715.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.59.42/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_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_amp => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@8ba0dd56aa70.2024-04-15_16.45.39"
=== Started at 2024-04-15 16:59:42
*** User 2024-04-15 16:59:42.655 ***🔗
alicE_all_messages_are_archived_2960@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-15 16:59:42.657 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d14138c12dd06e02' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.658 ***🔗
alicE_all_messages_are_archived_2960@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-15 16:59:42.658 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjk2MABtYXR5Z3J5c2E=</auth>
*** User 2024-04-15 16:59:42.660 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.660 ***🔗
alicE_all_messages_are_archived_2960@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-15 16:59:42.660 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de90921042f10ef2' from='localhost' version='1.0' xml:lang='en' to='alice_all_messages_are_archived_2960@localhost'>
*** User 2024-04-15 16:59:42.660 ***🔗
alicE_all_messages_are_archived_2960@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-15 16:59:42.661 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='def6c1f9f072d299425340899f922f93'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.661 ***🔗
alicE_all_messages_are_archived_2960@localhost/res1 in
<iq id='def6c1f9f072d299425340899f922f93' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_all_messages_are_archived_2960@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.661 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='f28fc821463a7b02989bdb244c15421e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.665 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 in
<iq from='localhost' to='alice_all_messages_are_archived_2960@localhost/res1' id='f28fc821463a7b02989bdb244c15421e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.665 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.669 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 in
<presence from='alice_all_messages_are_archived_2960@localhost/res1' to='alice_all_messages_are_archived_2960@localhost/res1'/>
*** User 2024-04-15 16:59:42.669 ***🔗
bOb_all_messages_are_archived_2960@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-15 16:59:42.670 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8aa7459ae7d53ee7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.670 ***🔗
bOb_all_messages_are_archived_2960@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-15 16:59:42.670 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzI5NjAAbWFrcm9saWth</auth>
*** User 2024-04-15 16:59:42.672 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.672 ***🔗
bOb_all_messages_are_archived_2960@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-15 16:59:42.673 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb04f5d8d76e2e28' from='localhost' version='1.0' xml:lang='en' to='bob_all_messages_are_archived_2960@localhost'>
*** User 2024-04-15 16:59:42.673 ***🔗
bOb_all_messages_are_archived_2960@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-15 16:59:42.673 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='b2839c4b3b85add0afd747d5ed7633a9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.673 ***🔗
bOb_all_messages_are_archived_2960@localhost/res1 in
<iq id='b2839c4b3b85add0afd747d5ed7633a9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_all_messages_are_archived_2960@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.674 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='ed0d1f1d72aefd2790160e34de72a7a6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.675 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 in
<iq from='localhost' to='bob_all_messages_are_archived_2960@localhost/res1' id='ed0d1f1d72aefd2790160e34de72a7a6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.675 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.678 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 in
<presence from='bob_all_messages_are_archived_2960@localhost/res1' to='bob_all_messages_are_archived_2960@localhost/res1'/>
*** User 2024-04-15 16:59:42.678 ***🔗
kate_all_messages_are_archived_2960@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-15 16:59:42.680 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70f3b1011a1d6fa2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.680 ***🔗
kate_all_messages_are_archived_2960@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-15 16:59:42.680 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTYwAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-15 16:59:42.682 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.682 ***🔗
kate_all_messages_are_archived_2960@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-15 16:59:42.682 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='090a744abae4d2ed' from='localhost' version='1.0' xml:lang='en' to='kate_all_messages_are_archived_2960@localhost'>
*** User 2024-04-15 16:59:42.682 ***🔗
kate_all_messages_are_archived_2960@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-15 16:59:42.682 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='9518d1f30b2806511e62018f21e423a1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.683 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<iq id='9518d1f30b2806511e62018f21e423a1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_all_messages_are_archived_2960@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.683 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 out
<iq type='set' id='3878e4588b98c5437d9f91584c132c7d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.684 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<iq from='localhost' to='kate_all_messages_are_archived_2960@localhost/res1' id='3878e4588b98c5437d9f91584c132c7d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.684 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.735 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
<presence from='kate_all_messages_are_archived_2960@localhost/res1' to='kate_all_messages_are_archived_2960@localhost/res1'/>
*** User 2024-04-15 16:59:42.756 ***🔗
REST request:
Code: 200
Req: {<0.81228.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6747a9fc16aa2cb3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FsbF9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjk2MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2960@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1466dae6f96ba768\"}">>,149,11526}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_all_messages_are_archived_2960@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2960@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:42.769 ***🔗
REST request:
Code: 200
Req: {<0.81267.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b0d9c0891adb9ab2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTYwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_all_messages_are_archived_2960@localhost it's me\",\"to\":\"bob_all_messages_are_archived_2960@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"efd91283b8f133fd\"}">>,149,4810}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_all_messages_are_archived_2960@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_all_messages_are_archived_2960@localhost it's me\",\"to\":\"bob_all_messages_are_archived_2960@localhost\"}">>,
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-15 16:59:42.787 ***🔗
REST request:
Code: 200
Req: {<0.81294.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc8e98070cffb7d1">>},
{<<"authorization">>,
<<"Basic a2F0ZV9hbGxfbWVzc2FnZXNfYXJlX2FyY2hpdmVkXzI5NjBAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2960@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"682cc4ee8256c8b6\"}">>,149,8426}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"kate_all_messages_are_archived_2960@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\",\"to\":\"alice_all_messages_are_archived_2960@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:42.845 ***🔗
REST request:
Code: 200
Req: {<0.81312.0>,<<"/api/messages/">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1ea45b5e6bc8c1f5">>},
{<<"authorization">>,
<<"Basic YWxpY2VfYWxsX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yOTYwQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"693">>}],
<<"[{\"to\":\"alice_all_messages_are_archived_2960@localhost\",\"timestamp\":1713200382749,\"id\":\"1466dae6f96ba768\",\"from\":\"bob_all_messages_are_archived_2960@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\"},{\"to\":\"bob_all_messages_are_archived_2960@localhost\",\"timestamp\":1713200382766,\"id\":\"efd91283b8f133fd\",\"from\":\"alice_all_messages_are_archived_2960@localhost\",\"body\":\"hello, bob_all_messages_are_archived_2960@localhost it's me\"},{\"to\":\"alice_all_messages_are_archived_2960@localhost\",\"timestamp\":1713200382780,\"id\":\"682cc4ee8256c8b6\",\"from\":\"kate_all_messages_are_archived_2960@localhost\",\"body\":\"hello, alice_all_messages_are_archived_2960@localhost it's me\"}]">>,
818,8894}
Params: #{path => <<"/api/messages/">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_all_messages_are_archived_2960@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-15 16:59:42.845 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.846 ***🔗
kate_all_messages_are_archived_2960@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:42.846 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.846 ***🔗
bob_all_messages_are_archived_2960@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:42.847 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.847 ***🔗
alice_all_messages_are_archived_2960@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:59:42
=== successfully completed test case
=== === Returned value: ok