=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87802.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/rest_client_suite.messages_with_user_are_archived.237954.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@944609fad30e.2024-03-21_07.35.17/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.53.01/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_sic => #{iqdisc => one_queue},
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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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 =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17"
=== Started at 2024-03-21 07:53:01
*** User 2024-03-21 07:53:01.603 ***🔗
alicE_messages_with_user_are_archived_3428@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-03-21 07:53:01.603 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce1d8253f96468b4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:01.603 ***🔗
alicE_messages_with_user_are_archived_3428@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-03-21 07:53:01.604 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzQyOABtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 07:53:01.605 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:01.605 ***🔗
alicE_messages_with_user_are_archived_3428@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-03-21 07:53:01.605 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='19903644d5f008d6' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3428@localhost'>
*** User 2024-03-21 07:53:01.636 ***🔗
alicE_messages_with_user_are_archived_3428@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-03-21 07:53:01.636 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='a58cd1a28370ed93d045121dafc7ff62'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:01.636 ***🔗
alicE_messages_with_user_are_archived_3428@localhost/res1 in
<iq id='a58cd1a28370ed93d045121dafc7ff62' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3428@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:01.636 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='d58c21fd0983eddb76ecf3703ab1aabf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.637 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3428@localhost/res1' id='d58c21fd0983eddb76ecf3703ab1aabf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.637 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:01.640 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3428@localhost/res1' to='alice_messages_with_user_are_archived_3428@localhost/res1'/>
*** User 2024-03-21 07:53:01.641 ***🔗
bOb_messages_with_user_are_archived_3428@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-03-21 07:53:01.641 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96db1dc592457c7b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:01.642 ***🔗
bOb_messages_with_user_are_archived_3428@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-03-21 07:53:01.642 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzM0MjgAbWFrcm9saWth</auth>
*** User 2024-03-21 07:53:01.643 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:01.643 ***🔗
bOb_messages_with_user_are_archived_3428@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-03-21 07:53:01.644 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7f71128c3c8a7f4' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3428@localhost'>
*** User 2024-03-21 07:53:01.644 ***🔗
bOb_messages_with_user_are_archived_3428@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-03-21 07:53:01.644 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='418b802ee661cde9c5ab41ee876872b2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:01.644 ***🔗
bOb_messages_with_user_are_archived_3428@localhost/res1 in
<iq id='418b802ee661cde9c5ab41ee876872b2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3428@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:01.644 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='8b6a1ff12601c551896e4b8407bed848'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.645 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3428@localhost/res1' id='8b6a1ff12601c551896e4b8407bed848' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.645 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:01.650 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3428@localhost/res1' to='bob_messages_with_user_are_archived_3428@localhost/res1'/>
*** User 2024-03-21 07:53:01.650 ***🔗
kate_messages_with_user_are_archived_3428@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-03-21 07:53:01.651 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='19ffd721fecf16ac' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:53:01.651 ***🔗
kate_messages_with_user_are_archived_3428@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-03-21 07:53:01.651 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDI4AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-21 07:53:01.653 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:53:01.653 ***🔗
kate_messages_with_user_are_archived_3428@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-03-21 07:53:01.653 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3a57326bb20a5301' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3428@localhost'>
*** User 2024-03-21 07:53:01.653 ***🔗
kate_messages_with_user_are_archived_3428@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-03-21 07:53:01.654 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='4f6accaf455415c600f94d876548c15f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:53:01.654 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<iq id='4f6accaf455415c600f94d876548c15f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3428@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:53:01.654 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 out
<iq type='set' id='4d72753f438e017bd191d74885f3a8c1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.655 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3428@localhost/res1' id='4d72753f438e017bd191d74885f3a8c1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:53:01.655 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 out
<presence/>
*** User 2024-03-21 07:53:01.658 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3428@localhost/res1' to='kate_messages_with_user_are_archived_3428@localhost/res1'/>
*** User 2024-03-21 07:53:01.743 ***🔗
REST request:
Code: 200
Req: {<0.87921.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b0420d57cc565d56">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzQyOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3428@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"e19cda22b5a85e98\"}">>,149,77229}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3428@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_3428@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:01.755 ***🔗
REST request:
Code: 200
Req: {<0.87969.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02a68e83480c359f">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDI4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_3428@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"d254e4ea2319ff91\"}">>,149,5247}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_3428@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_3428@localhost">>,
<<"matygrysa">>},
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-03-21 07:53:01.772 ***🔗
REST request:
Code: 200
Req: {<0.87987.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"946e5b264ea3034c">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzM0MjhAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3428@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"6ad075f61017c963\"}">>,149,12489}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3428@localhost it's me\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_3428@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:01.781 ***🔗
REST request:
Code: 200
Req: {<0.87999.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3428@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"20b4a47c006f7e8f">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zNDI4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:53:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3428@localhost\",\"timestamp\":1711007581761,\"id\":\"6ad075f61017c963\",\"from\":\"kate_messages_with_user_are_archived_3428@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3428@localhost it's me\"}]">>,
376,2298}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3428@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_3428@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-21 07:53:01.781 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:01.782 ***🔗
kate_messages_with_user_are_archived_3428@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:01.782 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:01.782 ***🔗
bob_messages_with_user_are_archived_3428@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:53:01.783 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:53:01.783 ***🔗
alice_messages_with_user_are_archived_3428@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:53:01
=== successfully completed test case
=== === Returned value: ok