=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.23908.2>},
{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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.17.13/rest_client_suite.messages_with_user_are_archived.210946.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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.17.13/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e19d78a4da91.2024-04-22_14.48.03"
=== Started at 2024-04-22 15:17:13
*** User 2024-04-22 15:17:13.935 ***🔗
alicE_messages_with_user_are_archived_5394@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-22 15:17:13.937 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fdfdb7fcda9a2bd8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:17:13.939 ***🔗
alicE_messages_with_user_are_archived_5394@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-22 15:17:13.941 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfNTM5NABtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 15:17:13.948 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:17:13.948 ***🔗
alicE_messages_with_user_are_archived_5394@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-22 15:17:13.953 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6479e3506f16cdc0' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_5394@localhost'>
*** User 2024-04-22 15:17:13.956 ***🔗
alicE_messages_with_user_are_archived_5394@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-22 15:17:13.956 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='8ac2999eb1ad8ee570cd5137368dd8c0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:17:13.957 ***🔗
alicE_messages_with_user_are_archived_5394@localhost/res1 in
<iq id='8ac2999eb1ad8ee570cd5137368dd8c0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_5394@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:17:13.957 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='14ce93dc3b9a727871ab9ad6f40637f4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:13.958 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_5394@localhost/res1' id='14ce93dc3b9a727871ab9ad6f40637f4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:13.958 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 out
<presence/>
*** User 2024-04-22 15:17:13.970 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_5394@localhost/res1' to='alice_messages_with_user_are_archived_5394@localhost/res1'/>
*** User 2024-04-22 15:17:13.971 ***🔗
bOb_messages_with_user_are_archived_5394@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-22 15:17:13.976 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10546baa4154e9ae' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:17:13.976 ***🔗
bOb_messages_with_user_are_archived_5394@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-22 15:17:13.976 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzUzOTQAbWFrcm9saWth</auth>
*** User 2024-04-22 15:17:13.990 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:17:13.990 ***🔗
bOb_messages_with_user_are_archived_5394@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-22 15:17:13.992 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54b4e3599c9771af' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_5394@localhost'>
*** User 2024-04-22 15:17:13.992 ***🔗
bOb_messages_with_user_are_archived_5394@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-22 15:17:13.996 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='b07ca2fdedce79a39c8e3d47cfcf4cf2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:17:13.997 ***🔗
bOb_messages_with_user_are_archived_5394@localhost/res1 in
<iq id='b07ca2fdedce79a39c8e3d47cfcf4cf2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_5394@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:17:13.997 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='dd2bf8bfcb5d9cfcf080e31baa19b9c7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:13.998 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_5394@localhost/res1' id='dd2bf8bfcb5d9cfcf080e31baa19b9c7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:13.998 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 out
<presence/>
*** User 2024-04-22 15:17:14.030 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_5394@localhost/res1' to='bob_messages_with_user_are_archived_5394@localhost/res1'/>
*** User 2024-04-22 15:17:14.031 ***🔗
kate_messages_with_user_are_archived_5394@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-22 15:17:14.032 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d056823105ab51d2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:17:14.032 ***🔗
kate_messages_with_user_are_archived_5394@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-22 15:17:14.032 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF81Mzk0AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 15:17:14.035 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:17:14.035 ***🔗
kate_messages_with_user_are_archived_5394@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-22 15:17:14.049 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ec809993e6836f0' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_5394@localhost'>
*** User 2024-04-22 15:17:14.049 ***🔗
kate_messages_with_user_are_archived_5394@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-22 15:17:14.049 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='cfdcc3d4f73c264efcea95c31cf746a0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:17:14.050 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<iq id='cfdcc3d4f73c264efcea95c31cf746a0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_5394@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:17:14.050 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 out
<iq type='set' id='6f8ced2106e195e705f2015a47d2d33c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:14.052 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_5394@localhost/res1' id='6f8ced2106e195e705f2015a47d2d33c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:14.053 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 out
<presence/>
*** User 2024-04-22 15:17:14.094 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_5394@localhost/res1' to='kate_messages_with_user_are_archived_5394@localhost/res1'/>
*** User 2024-04-22 15:17:14.175 ***🔗
REST request:
Code: 200
Req: {<0.24026.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"766c1ea19636dd8c">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfNTM5NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_5394@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1658210ebab61444\"}">>,149,55029}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_5394@localhost it's me\"}">>,
creds =>
{<<"bob_messages_with_user_are_archived_5394@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:14.213 ***🔗
REST request:
Code: 200
Req: {<0.24066.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa4a48f5db6c6fa7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF81Mzk0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_5394@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"f1bd03e6ab067d13\"}">>,149,14083}
Params: #{body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_5394@localhost it's me\"}">>,
creds =>
{<<"alice_messages_with_user_are_archived_5394@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-22 15:17:14.265 ***🔗
REST request:
Code: 200
Req: {<0.24081.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c64bc465a33ba5f2">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzUzOTRAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_5394@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"94163786e901e0f2\"}">>,149,33827}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_5394@localhost it's me\"}">>,
creds =>
{<<"kate_messages_with_user_are_archived_5394@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
Could not find element archive_wait in Config.
*** User 2024-04-22 15:17:14.294 ***🔗
REST request:
Code: 200
Req: {<0.24099.2>,
<<"/api/messages/kate_messages_with_user_are_archived_5394@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5535e31e873fa406">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF81Mzk0QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_5394@localhost\",\"timestamp\":1713799034254,\"id\":\"94163786e901e0f2\",\"from\":\"kate_messages_with_user_are_archived_5394@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_5394@localhost it's me\"}]">>,
376,4147}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_with_user_are_archived_5394@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/kate_messages_with_user_are_archived_5394@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:14.295 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:17:14.302 ***🔗
kate_messages_with_user_are_archived_5394@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:17:14.302 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:17:14.306 ***🔗
bob_messages_with_user_are_archived_5394@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:17:14.306 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:17:14.307 ***🔗
alice_messages_with_user_are_archived_5394@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:17:14
=== successfully completed test case
=== === Returned value: ok