=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.78909.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.messages_with_user_are_archived.103812.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/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_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 => 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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:52
*** User 2024-03-11 09:09:52.185 ***🔗
alicE_messages_with_user_are_archived_2923@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-11 09:09:52.186 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='11c5c2966f17a841' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.187 ***🔗
alicE_messages_with_user_are_archived_2923@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-11 09:09:52.187 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjkyMwBtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_messages_with_user_are_archived_2923@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-11 09:09:52.189 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5cea89094f6f1bab' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2923@localhost'>
*** User 2024-03-11 09:09:52.189 ***🔗
alicE_messages_with_user_are_archived_2923@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-11 09:09:52.189 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='09d7164c6903e3913c97931a75d161fa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alicE_messages_with_user_are_archived_2923@localhost/res1 in
<iq id='09d7164c6903e3913c97931a75d161fa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2923@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='118841501f08e38416ddc9458230a055'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2923@localhost/res1' id='118841501f08e38416ddc9458230a055' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.190 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.193 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2923@localhost/res1' to='alice_messages_with_user_are_archived_2923@localhost/res1'/>
*** User 2024-03-11 09:09:52.194 ***🔗
bOb_messages_with_user_are_archived_2923@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-11 09:09:52.195 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d8c21ee288d779f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.195 ***🔗
bOb_messages_with_user_are_archived_2923@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-11 09:09:52.195 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5MjMAbWFrcm9saWth</auth>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@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-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a5ffecced6056c6' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2923@localhost'>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@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-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='04b3ae8269dcb4a802feecb223661d85'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.197 ***🔗
bOb_messages_with_user_are_archived_2923@localhost/res1 in
<iq id='04b3ae8269dcb4a802feecb223661d85' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2923@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.198 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='f43613b4c0e481e2c07ece7f2c545a9e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.199 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2923@localhost/res1' id='f43613b4c0e481e2c07ece7f2c545a9e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.199 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.202 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2923@localhost/res1' to='bob_messages_with_user_are_archived_2923@localhost/res1'/>
*** User 2024-03-11 09:09:52.203 ***🔗
kate_messages_with_user_are_archived_2923@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-11 09:09:52.203 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dceb9b4b11f722bf' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:52.203 ***🔗
kate_messages_with_user_are_archived_2923@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-11 09:09:52.203 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTIzAG1ha3Jvd2U7cA==</auth>
*** User 2024-03-11 09:09:52.205 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:52.205 ***🔗
kate_messages_with_user_are_archived_2923@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-11 09:09:52.207 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f5adc9566716f02' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2923@localhost'>
*** User 2024-03-11 09:09:52.208 ***🔗
kate_messages_with_user_are_archived_2923@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-11 09:09:52.208 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='98656cda6d8a45dec081a1253bb32f37'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:52.208 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<iq id='98656cda6d8a45dec081a1253bb32f37' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2923@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:52.208 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 out
<iq type='set' id='6118e7279ca3e2dccee9d036c393886e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.209 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2923@localhost/res1' id='6118e7279ca3e2dccee9d036c393886e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:52.209 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:52.213 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2923@localhost/res1' to='kate_messages_with_user_are_archived_2923@localhost/res1'/>
*** User 2024-03-11 09:09:52.229 ***🔗
REST request:
Code: 200
Req: {<0.79030.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45c0497836bbfe6b">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjkyM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2923@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"6c2bc117c99b8914\"}">>,149,9803}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2923@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_2923@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:52.286 ***🔗
REST request:
Code: 200
Req: {<0.79062.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9bc0ca39d9e04fdb">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTIzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2923@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"b70936c8132a4db0\"}">>,149,4364}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2923@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_2923@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-03-11 09:09:52.298 ***🔗
REST request:
Code: 200
Req: {<0.79084.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e396dbba8c975e08">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5MjNAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2923@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"38b962219a5fc823\"}">>,149,6409}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2923@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2923@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_2923@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-03-11 09:09:52.309 ***🔗
REST request:
Code: 200
Req: {<0.79105.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6326e34c9318ea23">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTIzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2923@localhost\",\"timestamp\":1710148192294,\"id\":\"38b962219a5fc823\",\"from\":\"kate_messages_with_user_are_archived_2923@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2923@localhost it's me\"}]">>,
376,3069}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2923@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_2923@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:52.309 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.309 ***🔗
kate_messages_with_user_are_archived_2923@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:52.309 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.310 ***🔗
bob_messages_with_user_are_archived_2923@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:52.310 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:52.310 ***🔗
alice_messages_with_user_are_archived_2923@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:52
=== successfully completed test case
=== === Returned value: ok