=== Test case: rest_client_SUITE:messages_with_user_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.messages_with_user_are_archived.147459.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.653 ***🔗
alicE_messages_with_user_are_archived_2959@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.655 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='893a5a3f89cf1f03' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.655 ***🔗
alicE_messages_with_user_are_archived_2959@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.655 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk1OQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-15 16:59:42.657 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.657 ***🔗
alicE_messages_with_user_are_archived_2959@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.658 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='02e6011035c37533' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2959@localhost'>
*** User 2024-04-15 16:59:42.659 ***🔗
alicE_messages_with_user_are_archived_2959@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.659 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='5df0a9c7a2f66da40622c4492de2d1a6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.660 ***🔗
alicE_messages_with_user_are_archived_2959@localhost/res1 in
<iq id='5df0a9c7a2f66da40622c4492de2d1a6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2959@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.660 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='1ece98d172c38e55cda9237f75d7ad34'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.661 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2959@localhost/res1' id='1ece98d172c38e55cda9237f75d7ad34' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.661 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.667 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2959@localhost/res1' to='alice_messages_with_user_are_archived_2959@localhost/res1'/>
*** User 2024-04-15 16:59:42.667 ***🔗
bOb_messages_with_user_are_archived_2959@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.668 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b12b9c7f0a7b9d81' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.668 ***🔗
bOb_messages_with_user_are_archived_2959@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.668 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NTkAbWFrcm9saWth</auth>
*** User 2024-04-15 16:59:42.670 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.671 ***🔗
bOb_messages_with_user_are_archived_2959@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.671 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9a3dd3faac55df9' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2959@localhost'>
*** User 2024-04-15 16:59:42.671 ***🔗
bOb_messages_with_user_are_archived_2959@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.671 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='58cdd8c736aee3f18614ef5c49a14d95'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.672 ***🔗
bOb_messages_with_user_are_archived_2959@localhost/res1 in
<iq id='58cdd8c736aee3f18614ef5c49a14d95' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2959@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.672 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='27734e6e52eca9879f3eac207be6644c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.673 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2959@localhost/res1' id='27734e6e52eca9879f3eac207be6644c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.673 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.677 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2959@localhost/res1' to='bob_messages_with_user_are_archived_2959@localhost/res1'/>
*** User 2024-04-15 16:59:42.678 ***🔗
kate_messages_with_user_are_archived_2959@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_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e672c9df2452c92' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:42.681 ***🔗
kate_messages_with_user_are_archived_2959@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.681 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTU5AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-15 16:59:42.683 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:42.683 ***🔗
kate_messages_with_user_are_archived_2959@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.685 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='717a256b180cd8c6' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2959@localhost'>
*** User 2024-04-15 16:59:42.685 ***🔗
kate_messages_with_user_are_archived_2959@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.685 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='71039cba0a895a1bb097dfd5b277be08'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:42.686 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
<iq id='71039cba0a895a1bb097dfd5b277be08' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2959@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:42.686 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 out
<iq type='set' id='381f4366bdbc4492b9cf0c3a8bb57ec7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.686 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2959@localhost/res1' id='381f4366bdbc4492b9cf0c3a8bb57ec7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:42.687 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:42.739 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2959@localhost/res1' to='kate_messages_with_user_are_archived_2959@localhost/res1'/>
*** User 2024-04-15 16:59:42.759 ***🔗
REST request:
Code: 200
Req: {<0.81234.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f8b061713b13bfb">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk1OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2959@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"6d54f3c3c3fbc51b\"}">>,149,11942}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_2959@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2959@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:42.771 ***🔗
REST request:
Code: 200
Req: {<0.81276.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"66ce558b8f29de02">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTU5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2959@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"0f90af31d279d52e\"}">>,149,5435}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_2959@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2959@localhost\"}">>,
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-15 16:59:42.789 ***🔗
REST request:
Code: 200
Req: {<0.81296.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9344749b51dfd6f7">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NTlAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2959@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"d18881cc34af5701\"}">>,149,9845}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_2959@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2959@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2959@localhost\"}">>,
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-15 16:59:42.844 ***🔗
REST request:
Code: 200
Req: {<0.81318.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2959@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"475df44596b46946">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTU5QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2959@localhost\",\"timestamp\":1713200382783,\"id\":\"d18881cc34af5701\",\"from\":\"kate_messages_with_user_are_archived_2959@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2959@localhost it's me\"}]">>,
376,6872}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2959@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_2959@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-15 16:59:42.844 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.844 ***🔗
kate_messages_with_user_are_archived_2959@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:42.845 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.845 ***🔗
bob_messages_with_user_are_archived_2959@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:42.845 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:42.846 ***🔗
alice_messages_with_user_are_archived_2959@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:59:42
=== successfully completed test case
=== === Returned value: ok