=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87935.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/rest_client_suite.messages_with_user_are_archived.175747.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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/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_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 =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
resume_timeout => 600},
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@de34115c687f.2024-04-10_12.44.09"
=== Started at 2024-04-10 12:58:40
*** User 2024-04-10 12:58:40.082 ***🔗
alicE_messages_with_user_are_archived_3193@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-10 12:58:40.083 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd7bbda9ffcb4733' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:58:40.083 ***🔗
alicE_messages_with_user_are_archived_3193@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-10 12:58:40.083 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzE5MwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-10 12:58:40.085 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:58:40.085 ***🔗
alicE_messages_with_user_are_archived_3193@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-10 12:58:40.085 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='815a4213ae8c9f80' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3193@localhost'>
*** User 2024-04-10 12:58:40.086 ***🔗
alicE_messages_with_user_are_archived_3193@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-10 12:58:40.086 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='38b4a060f3e95aab95b82f1227b1af22'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:58:40.086 ***🔗
alicE_messages_with_user_are_archived_3193@localhost/res1 in
<iq id='38b4a060f3e95aab95b82f1227b1af22' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:58:40.086 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='bd6a194abbd484b69662d9705ab4f88b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.087 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3193@localhost/res1' id='bd6a194abbd484b69662d9705ab4f88b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.087 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 out
<presence/>
*** User 2024-04-10 12:58:40.091 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3193@localhost/res1' to='alice_messages_with_user_are_archived_3193@localhost/res1'/>
*** User 2024-04-10 12:58:40.091 ***🔗
bOb_messages_with_user_are_archived_3193@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-10 12:58:40.092 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4db0807e642dbb2d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:58:40.092 ***🔗
bOb_messages_with_user_are_archived_3193@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-10 12:58:40.092 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMxOTMAbWFrcm9saWth</auth>
*** User 2024-04-10 12:58:40.095 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:58:40.095 ***🔗
bOb_messages_with_user_are_archived_3193@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-10 12:58:40.095 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8f7f7af859ce3925' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3193@localhost'>
*** User 2024-04-10 12:58:40.095 ***🔗
bOb_messages_with_user_are_archived_3193@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-10 12:58:40.095 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='25e7a2f0303269a6fe6e85582b3b9ac6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:58:40.096 ***🔗
bOb_messages_with_user_are_archived_3193@localhost/res1 in
<iq id='25e7a2f0303269a6fe6e85582b3b9ac6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:58:40.096 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='6807aacc4cbbc1a2e21584c34dcadc78'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.096 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3193@localhost/res1' id='6807aacc4cbbc1a2e21584c34dcadc78' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.096 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 out
<presence/>
*** User 2024-04-10 12:58:40.099 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3193@localhost/res1' to='bob_messages_with_user_are_archived_3193@localhost/res1'/>
*** User 2024-04-10 12:58:40.099 ***🔗
kate_messages_with_user_are_archived_3193@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-10 12:58:40.100 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68f0f80eb5520653' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:58:40.100 ***🔗
kate_messages_with_user_are_archived_3193@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-10 12:58:40.100 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkzAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-10 12:58:40.102 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:58:40.102 ***🔗
kate_messages_with_user_are_archived_3193@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-10 12:58:40.102 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50511bd6ef2aefc0' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3193@localhost'>
*** User 2024-04-10 12:58:40.102 ***🔗
kate_messages_with_user_are_archived_3193@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-10 12:58:40.102 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='4c17f42209e681515dfd0579525183a4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:58:40.103 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<iq id='4c17f42209e681515dfd0579525183a4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3193@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:58:40.103 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 out
<iq type='set' id='c8903818bfc8f43d3ad4a7ff003c9164'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.106 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3193@localhost/res1' id='c8903818bfc8f43d3ad4a7ff003c9164' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:40.106 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 out
<presence/>
*** User 2024-04-10 12:58:40.110 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3193@localhost/res1' to='kate_messages_with_user_are_archived_3193@localhost/res1'/>
*** User 2024-04-10 12:58:40.177 ***🔗
REST request:
Code: 200
Req: {<0.88068.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b0b55575392ee84">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzE5M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3193@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"38a582dec1c5c142\"}">>,149,62421}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_with_user_are_archived_3193@localhost">>,
<<"makrolika">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3193@localhost\"}">>,
return_headers => true}
*** User 2024-04-10 12:58:40.188 ***🔗
REST request:
Code: 200
Req: {<0.88106.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"09e4626d786b0a67">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3193@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"ead20066375728da\"}">>,149,5311}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3193@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3193@localhost\"}">>,
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-10 12:58:40.206 ***🔗
REST request:
Code: 200
Req: {<0.88128.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f0393fa097c44ea">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMxOTNAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3193@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"86db3245094a188d\"}">>,149,10653}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_messages_with_user_are_archived_3193@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3193@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3193@localhost\"}">>,
return_headers => true}
*** User 2024-04-10 12:58:40.214 ***🔗
REST request:
Code: 200
Req: {<0.88152.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3193@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0d586a62f4a21b4f">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMTkzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3193@localhost\",\"timestamp\":1712753920196,\"id\":\"86db3245094a188d\",\"from\":\"kate_messages_with_user_are_archived_3193@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3193@localhost it's me\"}]">>,
376,2736}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3193@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3193@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-10 12:58:40.215 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:58:40.215 ***🔗
kate_messages_with_user_are_archived_3193@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:58:40.215 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:58:40.215 ***🔗
bob_messages_with_user_are_archived_3193@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:58:40.215 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:58:40.216 ***🔗
alice_messages_with_user_are_archived_3193@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:58:40
=== successfully completed test case
=== === Returned value: ok