=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.82444.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_client_SUITE.logs/run.2024-04-18_11.10.07/rest_client_suite.messages_with_user_are_archived.222850.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_client_SUITE.logs/run.2024-04-18_11.10.07/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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:10:07
*** User 2024-04-18 11:10:07.878 ***🔗
alicE_messages_with_user_are_archived_2965@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-18 11:10:07.879 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d276aa9fa286da75' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:10:07.879 ***🔗
alicE_messages_with_user_are_archived_2965@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-18 11:10:07.879 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk2NQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@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-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7801b0acc685612f' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2965@localhost'>
*** User 2024-04-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@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-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='5d1dba4b7478af4de0d3ee3b7a22c68c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:10:07.880 ***🔗
alicE_messages_with_user_are_archived_2965@localhost/res1 in
<iq id='5d1dba4b7478af4de0d3ee3b7a22c68c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2965@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:10:07.881 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='2153bdb568fdb3b24d434214e61651f5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.881 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2965@localhost/res1' id='2153bdb568fdb3b24d434214e61651f5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.882 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 out
<presence/>
*** User 2024-04-18 11:10:07.885 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2965@localhost/res1' to='alice_messages_with_user_are_archived_2965@localhost/res1'/>
*** User 2024-04-18 11:10:07.885 ***🔗
bOb_messages_with_user_are_archived_2965@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-18 11:10:07.886 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3aff6c18133e89e4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:10:07.886 ***🔗
bOb_messages_with_user_are_archived_2965@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-18 11:10:07.886 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NjUAbWFrcm9saWth</auth>
*** User 2024-04-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@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-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42de56cb43b5477d' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2965@localhost'>
*** User 2024-04-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@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-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='582a21339f14d6be962302ce838c35ab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:10:07.888 ***🔗
bOb_messages_with_user_are_archived_2965@localhost/res1 in
<iq id='582a21339f14d6be962302ce838c35ab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2965@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:10:07.888 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='056c82b85b12022d7fcecc2ec542d006'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.889 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2965@localhost/res1' id='056c82b85b12022d7fcecc2ec542d006' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.889 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 out
<presence/>
*** User 2024-04-18 11:10:07.891 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2965@localhost/res1' to='bob_messages_with_user_are_archived_2965@localhost/res1'/>
*** User 2024-04-18 11:10:07.892 ***🔗
kate_messages_with_user_are_archived_2965@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-18 11:10:07.892 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da3a8bf772d7252b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:10:07.892 ***🔗
kate_messages_with_user_are_archived_2965@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-18 11:10:07.892 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTY1AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@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-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50609fa6443594a6' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2965@localhost'>
*** User 2024-04-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@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-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='536109d32f625ddab28658f8f30ca33b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:10:07.894 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<iq id='536109d32f625ddab28658f8f30ca33b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2965@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:10:07.895 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 out
<iq type='set' id='4c86c48a083dcfb89725b9b86e5f2b44'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.895 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2965@localhost/res1' id='4c86c48a083dcfb89725b9b86e5f2b44' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:10:07.895 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 out
<presence/>
*** User 2024-04-18 11:10:07.897 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2965@localhost/res1' to='kate_messages_with_user_are_archived_2965@localhost/res1'/>
*** User 2024-04-18 11:10:07.957 ***🔗
REST request:
Code: 200
Req: {<0.82547.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a7519af0150ae83">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk2NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2965@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"2568eebfcf2d85ee\"}">>,149,54542}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2965@localhost\"}">>,
role => client,
creds =>
{<<"bob_messages_with_user_are_archived_2965@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-18 11:10:07.968 ***🔗
REST request:
Code: 200
Req: {<0.82583.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98bf11330352e437">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTY1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2965@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"de29ac6dba38cf31\"}">>,149,4047}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2965@localhost\"}">>,
role => client,
creds =>
{<<"alice_messages_with_user_are_archived_2965@localhost">>,
<<"matygrysa">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-18 11:10:07.979 ***🔗
REST request:
Code: 200
Req: {<0.82614.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eed98c611bec9b78">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NjVAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2965@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"7e3443275990017e\"}">>,149,5373}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2965@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2965@localhost\"}">>,
role => client,
creds =>
{<<"kate_messages_with_user_are_archived_2965@localhost">>,
<<"makrowe;p">>},
return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-18 11:10:07.988 ***🔗
REST request:
Code: 200
Req: {<0.82637.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2965@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"54f1020b8e56b9cf">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTY1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:10:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2965@localhost\",\"timestamp\":1713438607974,\"id\":\"7e3443275990017e\",\"from\":\"kate_messages_with_user_are_archived_2965@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2965@localhost it's me\"}]">>,
376,3298}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2965@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_2965@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-18 11:10:07.988 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:10:07.988 ***🔗
kate_messages_with_user_are_archived_2965@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:10:07.989 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:10:07.989 ***🔗
bob_messages_with_user_are_archived_2965@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:10:07.989 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:10:07.989 ***🔗
alice_messages_with_user_are_archived_2965@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-18 11:10:08
=== successfully completed test case
=== === Returned value: ok