=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87160.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@04325015025b.2024-04-25_14.32.38/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_14.50.21/rest_client_suite.messages_with_user_are_archived.236546.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@04325015025b.2024-04-25_14.32.38/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_14.50.21/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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@04325015025b.2024-04-25_14.32.38"
=== Started at 2024-04-25 14:50:21
*** User 2024-04-25 14:50:21.876 ***🔗
alicE_messages_with_user_are_archived_3355@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-25 14:50:21.876 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42d1e460ac07581b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:50:21.877 ***🔗
alicE_messages_with_user_are_archived_3355@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-25 14:50:21.877 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM1NQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-25 14:50:21.878 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:50:21.878 ***🔗
alicE_messages_with_user_are_archived_3355@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-25 14:50:21.879 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36535ccf58e5ae41' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3355@localhost'>
*** User 2024-04-25 14:50:21.879 ***🔗
alicE_messages_with_user_are_archived_3355@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-25 14:50:21.879 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='904b557e829eaf50037b07ad80e4282a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:50:21.880 ***🔗
alicE_messages_with_user_are_archived_3355@localhost/res1 in
<iq id='904b557e829eaf50037b07ad80e4282a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3355@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:50:21.880 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='df61d6bcceb1db6acedb29d66aea9067'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.882 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3355@localhost/res1' id='df61d6bcceb1db6acedb29d66aea9067' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.882 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 out
<presence/>
*** User 2024-04-25 14:50:21.885 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3355@localhost/res1' to='alice_messages_with_user_are_archived_3355@localhost/res1'/>
*** User 2024-04-25 14:50:21.886 ***🔗
bOb_messages_with_user_are_archived_3355@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-25 14:50:21.887 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='509e16114d0767f0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:50:21.887 ***🔗
bOb_messages_with_user_are_archived_3355@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-25 14:50:21.887 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzNTUAbWFrcm9saWth</auth>
*** User 2024-04-25 14:50:21.889 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:50:21.889 ***🔗
bOb_messages_with_user_are_archived_3355@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-25 14:50:21.890 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1c8a433c03e7338e' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3355@localhost'>
*** User 2024-04-25 14:50:21.890 ***🔗
bOb_messages_with_user_are_archived_3355@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-25 14:50:21.890 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='e148d8979e71141f552b4d997538b021'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:50:21.890 ***🔗
bOb_messages_with_user_are_archived_3355@localhost/res1 in
<iq id='e148d8979e71141f552b4d997538b021' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3355@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:50:21.890 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='897d07b0e279e6024ab3e72cd973ea10'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.895 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3355@localhost/res1' id='897d07b0e279e6024ab3e72cd973ea10' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.895 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 out
<presence/>
*** User 2024-04-25 14:50:21.902 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3355@localhost/res1' to='bob_messages_with_user_are_archived_3355@localhost/res1'/>
*** User 2024-04-25 14:50:21.903 ***🔗
kate_messages_with_user_are_archived_3355@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-25 14:50:21.903 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='02e3c7ccc740e80a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:50:21.904 ***🔗
kate_messages_with_user_are_archived_3355@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-25 14:50:21.904 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzU1AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-25 14:50:21.911 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:50:21.912 ***🔗
kate_messages_with_user_are_archived_3355@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-25 14:50:21.912 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e886a79f3ce85a0' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3355@localhost'>
*** User 2024-04-25 14:50:21.912 ***🔗
kate_messages_with_user_are_archived_3355@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-25 14:50:21.912 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='b3dac833d555ecd8109570586871efc2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:50:21.953 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<iq id='b3dac833d555ecd8109570586871efc2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3355@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:50:21.953 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 out
<iq type='set' id='8c67bd7c54af33eb944ed9ea875f3f93'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.954 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3355@localhost/res1' id='8c67bd7c54af33eb944ed9ea875f3f93' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:50:21.954 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 out
<presence/>
*** User 2024-04-25 14:50:21.959 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3355@localhost/res1' to='kate_messages_with_user_are_archived_3355@localhost/res1'/>
*** User 2024-04-25 14:50:21.992 ***🔗
REST request:
Code: 200
Req: {<0.87287.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fd72a8084d2b1704">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM1NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3355@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:50:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"44cefe8373940988\"}">>,149,25654}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3355@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_3355@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-25 14:50:22.070 ***🔗
REST request:
Code: 200
Req: {<0.87317.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1698f929eecc9e40">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzU1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3355@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:50:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"8000e7564f168fc9\"}">>,149,70464}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3355@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_3355@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-25 14:50:22.102 ***🔗
REST request:
Code: 200
Req: {<0.87333.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"28e9b3e319b08f61">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzNTVAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3355@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:50:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1f5277601a98c193\"}">>,149,25342}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3355@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3355@localhost\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_3355@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2024-04-25 14:50:22.113 ***🔗
REST request:
Code: 200
Req: {<0.87351.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3355@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9bf46c450b72793e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzU1QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:50:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3355@localhost\",\"timestamp\":1714056622078,\"id\":\"1f5277601a98c193\",\"from\":\"kate_messages_with_user_are_archived_3355@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3355@localhost it's me\"}]">>,
376,4926}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3355@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_3355@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-25 14:50:22.114 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 out
</stream:stream>
*** User 2024-04-25 14:50:22.114 ***🔗
kate_messages_with_user_are_archived_3355@localhost/res1 in
</stream:stream>
*** User 2024-04-25 14:50:22.114 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 out
</stream:stream>
*** User 2024-04-25 14:50:22.114 ***🔗
bob_messages_with_user_are_archived_3355@localhost/res1 in
</stream:stream>
*** User 2024-04-25 14:50:22.114 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 out
</stream:stream>
*** User 2024-04-25 14:50:22.115 ***🔗
alice_messages_with_user_are_archived_3355@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 14:50:22
=== successfully completed test case
=== === Returned value: ok