=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.83810.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/rest_client_suite.messages_with_user_are_archived.164611.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:24:28
*** User 2023-11-17 15:24:28.921 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.923 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fe9ae670f47fd0a' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:28.923 ***🔗
alicE_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.923 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjkzMQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c59c9751c5946366' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2931@localhost'>
*** User 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='398b56696f2166c4cf639a6ad72296f5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:28.925 ***🔗
alicE_messages_with_user_are_archived_2931@localhost/res1 in
<iq id='398b56696f2166c4cf639a6ad72296f5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2931@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:28.925 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='304dd56f0de59c17932c6c32e45ffbbe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.926 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2931@localhost/res1' id='304dd56f0de59c17932c6c32e45ffbbe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.926 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:28.930 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2931@localhost/res1' to='alice_messages_with_user_are_archived_2931@localhost/res1'/>
*** User 2023-11-17 15:24:28.930 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.931 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='273d4847346ae9b3' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:28.931 ***🔗
bOb_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.931 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5MzEAbWFrcm9saWth</auth>
*** User 2023-11-17 15:24:28.932 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:28.932 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.932 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b4ea0573dd112877' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2931@localhost'>
*** User 2023-11-17 15:24:28.932 ***🔗
bOb_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.932 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='de7ad49cc9ea6cd504bde645596d5979'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:28.933 ***🔗
bOb_messages_with_user_are_archived_2931@localhost/res1 in
<iq id='de7ad49cc9ea6cd504bde645596d5979' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2931@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:28.933 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='2f77c158e5d8248c009fdaf34af6c7cd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.933 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2931@localhost/res1' id='2f77c158e5d8248c009fdaf34af6c7cd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.933 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:28.935 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2931@localhost/res1' to='bob_messages_with_user_are_archived_2931@localhost/res1'/>
*** User 2023-11-17 15:24:28.936 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.936 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec620dcb87445b4e' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:28.936 ***🔗
kate_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.936 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTMxAG1ha3Jvd2U7cA==</auth>
*** User 2023-11-17 15:24:28.937 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:28.937 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:28.938 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6b0e92161f7c2462' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2931@localhost'>
*** User 2023-11-17 15:24:28.938 ***🔗
kate_messages_with_user_are_archived_2931@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 2023-11-17 15:24:28.938 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='8a7f42e15c9a7de54da0b2da8b7cbe5c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:28.938 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<iq id='8a7f42e15c9a7de54da0b2da8b7cbe5c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2931@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:28.938 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<iq type='set' id='1b99e73468b54f88204b3742e23c964f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.939 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2931@localhost/res1' id='1b99e73468b54f88204b3742e23c964f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:28.939 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:28.942 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2931@localhost/res1' to='kate_messages_with_user_are_archived_2931@localhost/res1'/>
*** User 2023-11-17 15:24:29.008 ***🔗
REST request:
Code: 200
Req: {<0.83917.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34a03b0bae58da3a">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjkzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2931@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"fdc626a8fc6c3d77\"}">>,149,9599}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_with_user_are_archived_2931@localhost">>,
<<"makrolika">>},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2931@localhost\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.018 ***🔗
REST request:
Code: 200
Req: {<0.83967.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c9229dc83de43b2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTMxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2931@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c3d281ddc14395d5\"}">>,149,3341}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_2931@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2931@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 2023-11-17 15:24:29.030 ***🔗
REST request:
Code: 200
Req: {<0.83985.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9832baafacc1f24">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5MzFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2931@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"5565f69632fbfce3\"}">>,149,5751}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_messages_with_user_are_archived_2931@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2931@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2931@localhost\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:29.040 ***🔗
REST request:
Code: 200
Req: {<0.84009.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2931@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"080fe84f1338d3aa">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTMxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2931@localhost\",\"timestamp\":1700234669026,\"id\":\"5565f69632fbfce3\",\"from\":\"kate_messages_with_user_are_archived_2931@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2931@localhost it's me\"}]">>,
376,3263}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2931@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_2931@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:29.040 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:29.041 ***🔗
kate_messages_with_user_are_archived_2931@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:29.041 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:29.041 ***🔗
bob_messages_with_user_are_archived_2931@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:29.041 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:29.041 ***🔗
alice_messages_with_user_are_archived_2931@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:24:29
=== successfully completed test case
=== === Returned value: ok