=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.88237.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@4aeb44627b29.2024-04-22_14.49.59/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.07.32/rest_client_suite.messages_with_user_are_archived.239362.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@4aeb44627b29.2024-04-22_14.49.59/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.07.32/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_amp => #{},
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_disco =>
#{server_info => [],iqdisc => one_queue,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_bosh =>
#{backend => mnesia,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@4aeb44627b29.2024-04-22_14.49.59"
=== Started at 2024-04-22 15:07:32
*** User 2024-04-22 15:07:32.813 ***🔗
alicE_messages_with_user_are_archived_3383@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 15:07:32.813 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33c95138e016d3ce' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.813 ***🔗
alicE_messages_with_user_are_archived_3383@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 15:07:32.814 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM4MwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 15:07:32.815 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.815 ***🔗
alicE_messages_with_user_are_archived_3383@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 15:07:32.816 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5ec7e86c27616b45' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3383@localhost'>
*** User 2024-04-22 15:07:32.816 ***🔗
alicE_messages_with_user_are_archived_3383@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 15:07:32.816 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='1ef982b533972450cbacf0028bd364f6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.816 ***🔗
alicE_messages_with_user_are_archived_3383@localhost/res1 in
<iq id='1ef982b533972450cbacf0028bd364f6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3383@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.816 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='519a3b2847d025d60c820c63d6d838a3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.817 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3383@localhost/res1' id='519a3b2847d025d60c820c63d6d838a3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.817 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.869 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3383@localhost/res1' to='alice_messages_with_user_are_archived_3383@localhost/res1'/>
*** User 2024-04-22 15:07:32.870 ***🔗
bOb_messages_with_user_are_archived_3383@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 15:07:32.871 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff98c400e893748f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.871 ***🔗
bOb_messages_with_user_are_archived_3383@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 15:07:32.871 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzODMAbWFrcm9saWth</auth>
*** User 2024-04-22 15:07:32.873 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.873 ***🔗
bOb_messages_with_user_are_archived_3383@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 15:07:32.873 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='63345bd69154e647' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3383@localhost'>
*** User 2024-04-22 15:07:32.873 ***🔗
bOb_messages_with_user_are_archived_3383@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 15:07:32.873 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='0492260dea77377f5ffcec038586fd09'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.874 ***🔗
bOb_messages_with_user_are_archived_3383@localhost/res1 in
<iq id='0492260dea77377f5ffcec038586fd09' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3383@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.874 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='626c9d594f76dc0f5cec163b12f4b04d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.875 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3383@localhost/res1' id='626c9d594f76dc0f5cec163b12f4b04d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.875 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.878 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3383@localhost/res1' to='bob_messages_with_user_are_archived_3383@localhost/res1'/>
*** User 2024-04-22 15:07:32.879 ***🔗
kate_messages_with_user_are_archived_3383@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 15:07:32.880 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2284e27417633a8d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:07:32.880 ***🔗
kate_messages_with_user_are_archived_3383@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 15:07:32.880 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzgzAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 15:07:32.881 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:07:32.881 ***🔗
kate_messages_with_user_are_archived_3383@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 15:07:32.881 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bc991d77553ffff' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3383@localhost'>
*** User 2024-04-22 15:07:32.881 ***🔗
kate_messages_with_user_are_archived_3383@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 15:07:32.882 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='8f418d9edc7fd6279fcf66635f228867'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:07:32.882 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<iq id='8f418d9edc7fd6279fcf66635f228867' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3383@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:07:32.882 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 out
<iq type='set' id='af49cf289f677dda4eb39d6b626176cd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.883 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3383@localhost/res1' id='af49cf289f677dda4eb39d6b626176cd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:07:32.883 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 out
<presence/>
*** User 2024-04-22 15:07:32.888 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3383@localhost/res1' to='kate_messages_with_user_are_archived_3383@localhost/res1'/>
*** User 2024-04-22 15:07:32.973 ***🔗
REST request:
Code: 200
Req: {<0.88364.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"578714bbf21cf315">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzM4M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3383@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"8e26ff012d5901c1\"}">>,149,77660}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3383@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_messages_with_user_are_archived_3383@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 15:07:32.985 ***🔗
REST request:
Code: 200
Req: {<0.88404.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e17b465e9883542">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3383@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"f38b24cb540676b0\"}">>,149,5883}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3383@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3383@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 15:07:33.004 ***🔗
REST request:
Code: 200
Req: {<0.88422.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf564c391ab6718f">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzODNAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3383@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"622644361a5683e3\"}">>,149,12059}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3383@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3383@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"kate_messages_with_user_are_archived_3383@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2024-04-22 15:07:33.013 ***🔗
REST request:
Code: 200
Req: {<0.88446.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3383@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a363d730ce5eceeb">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:07:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3383@localhost\",\"timestamp\":1713798452994,\"id\":\"622644361a5683e3\",\"from\":\"kate_messages_with_user_are_archived_3383@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3383@localhost it's me\"}]">>,
376,3667}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3383@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3383@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 15:07:33.014 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.014 ***🔗
kate_messages_with_user_are_archived_3383@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:07:33.014 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.014 ***🔗
bob_messages_with_user_are_archived_3383@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:07:33.015 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:07:33.015 ***🔗
alice_messages_with_user_are_archived_3383@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:07:33
=== successfully completed test case
=== === Returned value: ok