=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.82421.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@f9d3eab3b59f.2024-04-22_17.28.49/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.43.30/rest_client_suite.messages_with_user_are_archived.144131.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@f9d3eab3b59f.2024-04-22_17.28.49/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.43.30/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_presence => #{},
mod_disco =>
#{server_info => [],iqdisc => one_queue,extra_domains => [],
users_can_see_hidden_services => false},
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 =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => cets},
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@f9d3eab3b59f.2024-04-22_17.28.49"
=== Started at 2024-04-22 17:43:30
*** User 2024-04-22 17:43:30.955 ***🔗
alicE_messages_with_user_are_archived_2995@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 17:43:30.956 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8f7d9b10a21dd5e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:43:30.956 ***🔗
alicE_messages_with_user_are_archived_2995@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 17:43:30.956 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk5NQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 17:43:30.957 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:43:30.957 ***🔗
alicE_messages_with_user_are_archived_2995@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 17:43:30.958 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6b2bb997b99ce752' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2995@localhost'>
*** User 2024-04-22 17:43:30.958 ***🔗
alicE_messages_with_user_are_archived_2995@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 17:43:30.958 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='4d44070c1f4eb6a360a465d3deb746ae'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:43:30.958 ***🔗
alicE_messages_with_user_are_archived_2995@localhost/res1 in
<iq id='4d44070c1f4eb6a360a465d3deb746ae' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2995@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:43:30.958 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='eb43936376f150b9ca2f87bb8e6a50ee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.960 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2995@localhost/res1' id='eb43936376f150b9ca2f87bb8e6a50ee' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.960 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 out
<presence/>
*** User 2024-04-22 17:43:30.964 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2995@localhost/res1' to='alice_messages_with_user_are_archived_2995@localhost/res1'/>
*** User 2024-04-22 17:43:30.965 ***🔗
bOb_messages_with_user_are_archived_2995@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 17:43:30.965 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd0eae10f4ca9431' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:43:30.966 ***🔗
bOb_messages_with_user_are_archived_2995@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 17:43:30.966 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5OTUAbWFrcm9saWth</auth>
*** User 2024-04-22 17:43:30.969 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:43:30.969 ***🔗
bOb_messages_with_user_are_archived_2995@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 17:43:30.970 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ab1c485caaf5b24' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2995@localhost'>
*** User 2024-04-22 17:43:30.970 ***🔗
bOb_messages_with_user_are_archived_2995@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 17:43:30.970 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='1153fe37289e3f9e9e13b8b8c314197f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:43:30.970 ***🔗
bOb_messages_with_user_are_archived_2995@localhost/res1 in
<iq id='1153fe37289e3f9e9e13b8b8c314197f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2995@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:43:30.970 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='50b3184bb7f9a36cc5516cfb91dbdfe0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.971 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2995@localhost/res1' id='50b3184bb7f9a36cc5516cfb91dbdfe0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.971 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 out
<presence/>
*** User 2024-04-22 17:43:30.973 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2995@localhost/res1' to='bob_messages_with_user_are_archived_2995@localhost/res1'/>
*** User 2024-04-22 17:43:30.973 ***🔗
kate_messages_with_user_are_archived_2995@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 17:43:30.974 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b3d6472e2b24d7c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:43:30.974 ***🔗
kate_messages_with_user_are_archived_2995@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 17:43:30.975 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTk1AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 17:43:30.975 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:43:30.975 ***🔗
kate_messages_with_user_are_archived_2995@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 17:43:30.976 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6640eb0fcec24c50' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2995@localhost'>
*** User 2024-04-22 17:43:30.976 ***🔗
kate_messages_with_user_are_archived_2995@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 17:43:30.976 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='db14ad9909fb4d719f6448059ab2a93e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:43:30.976 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<iq id='db14ad9909fb4d719f6448059ab2a93e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2995@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:43:30.977 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 out
<iq type='set' id='108b3310c41901ef73cb7d75f35761be'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.977 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2995@localhost/res1' id='108b3310c41901ef73cb7d75f35761be' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:43:30.977 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 out
<presence/>
*** User 2024-04-22 17:43:30.980 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2995@localhost/res1' to='kate_messages_with_user_are_archived_2995@localhost/res1'/>
*** User 2024-04-22 17:43:31.001 ***🔗
REST request:
Code: 200
Req: {<0.82540.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"80430ca67d4fd669">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2995@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:43:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"baff23dd0e2387d2\"}">>,149,11733}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2995@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_2995@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 17:43:31.062 ***🔗
REST request:
Code: 200
Req: {<0.82576.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52c8845fef5e4cd8">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTk1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2995@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:43:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"fc4137843a3aad99\"}">>,149,5082}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2995@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_2995@localhost">>,
<<"matygrysa">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-22 17:43:31.075 ***🔗
REST request:
Code: 200
Req: {<0.82603.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"09731de6968ace6f">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5OTVAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2995@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:43:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"3fd1159e9f6d3c88\"}">>,149,5854}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2995@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2995@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_2995@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2024-04-22 17:43:31.085 ***🔗
REST request:
Code: 200
Req: {<0.82621.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2995@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbbfbf40a291cad7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTk1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:43:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2995@localhost\",\"timestamp\":1713807811070,\"id\":\"3fd1159e9f6d3c88\",\"from\":\"kate_messages_with_user_are_archived_2995@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2995@localhost it's me\"}]">>,
376,2524}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2995@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_2995@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 17:43:31.085 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:43:31.086 ***🔗
kate_messages_with_user_are_archived_2995@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:43:31.086 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:43:31.086 ***🔗
bob_messages_with_user_are_archived_2995@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:43:31.086 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:43:31.087 ***🔗
alice_messages_with_user_are_archived_2995@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 17:43:31
=== successfully completed test case
=== === Returned value: ok