=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87879.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/rest_client_suite.messages_with_user_are_archived.180611.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.09.46/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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@97931f009ece.2024-04-23_10.53.14"
=== Started at 2024-04-23 11:09:46
*** User 2024-04-23 11:09:46.730 ***🔗
alicE_messages_with_user_are_archived_3321@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-23 11:09:46.730 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebd31f1f884a3d90' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:46.730 ***🔗
alicE_messages_with_user_are_archived_3321@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-23 11:09:46.730 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzMyMQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 11:09:46.732 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:46.732 ***🔗
alicE_messages_with_user_are_archived_3321@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-23 11:09:46.732 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a2e700ed3d9e9155' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3321@localhost'>
*** User 2024-04-23 11:09:46.732 ***🔗
alicE_messages_with_user_are_archived_3321@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-23 11:09:46.732 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='537493239a9d0dbd5147df5985304b76'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:46.733 ***🔗
alicE_messages_with_user_are_archived_3321@localhost/res1 in
<iq id='537493239a9d0dbd5147df5985304b76' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3321@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:46.733 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='a5dfb04a988b24ef7f0f7b4bd6359503'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.734 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3321@localhost/res1' id='a5dfb04a988b24ef7f0f7b4bd6359503' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.734 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:46.736 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3321@localhost/res1' to='alice_messages_with_user_are_archived_3321@localhost/res1'/>
*** User 2024-04-23 11:09:46.737 ***🔗
bOb_messages_with_user_are_archived_3321@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-23 11:09:46.738 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1bd41ed0d03a138' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:46.738 ***🔗
bOb_messages_with_user_are_archived_3321@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-23 11:09:46.738 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzMjEAbWFrcm9saWth</auth>
*** User 2024-04-23 11:09:46.740 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:46.740 ***🔗
bOb_messages_with_user_are_archived_3321@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-23 11:09:46.740 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e10bb8e94219ec1' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3321@localhost'>
*** User 2024-04-23 11:09:46.740 ***🔗
bOb_messages_with_user_are_archived_3321@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-23 11:09:46.740 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='4c3178ceddb82d664f690a45d8f3ed83'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:46.741 ***🔗
bOb_messages_with_user_are_archived_3321@localhost/res1 in
<iq id='4c3178ceddb82d664f690a45d8f3ed83' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3321@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:46.741 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='09557cd88ce121ab024d6a8bb4acbf8d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.741 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3321@localhost/res1' id='09557cd88ce121ab024d6a8bb4acbf8d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.741 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:46.743 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3321@localhost/res1' to='bob_messages_with_user_are_archived_3321@localhost/res1'/>
*** User 2024-04-23 11:09:46.743 ***🔗
kate_messages_with_user_are_archived_3321@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-23 11:09:46.744 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f79a00488f1be1e9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:46.744 ***🔗
kate_messages_with_user_are_archived_3321@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-23 11:09:46.744 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzIxAG1ha3Jvd2U7cA==</auth>
*** User 2024-04-23 11:09:46.747 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:46.747 ***🔗
kate_messages_with_user_are_archived_3321@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-23 11:09:46.748 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b42e291feffa4f76' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3321@localhost'>
*** User 2024-04-23 11:09:46.748 ***🔗
kate_messages_with_user_are_archived_3321@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-23 11:09:46.748 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='28980e6dc6130b86fa567c545060bd82'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:46.748 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<iq id='28980e6dc6130b86fa567c545060bd82' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3321@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:46.748 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 out
<iq type='set' id='98298df0b1c704097dc7703b363d23b4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.749 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3321@localhost/res1' id='98298df0b1c704097dc7703b363d23b4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:46.749 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:46.752 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3321@localhost/res1' to='kate_messages_with_user_are_archived_3321@localhost/res1'/>
*** User 2024-04-23 11:09:46.771 ***🔗
REST request:
Code: 200
Req: {<0.87992.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b5a0f48fbf6e2fd">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3321@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"9c52c9421d811427\"}">>,149,11408}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_with_user_are_archived_3321@localhost">>,
<<"makrolika">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3321@localhost\"}">>,
return_headers => true}
*** User 2024-04-23 11:09:46.830 ***🔗
REST request:
Code: 200
Req: {<0.88025.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd2360bcf91cb0b4">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzIxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3321@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c1947f4c60be7064\"}">>,149,52641}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3321@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3321@localhost\"}">>,
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-23 11:09:46.844 ***🔗
REST request:
Code: 200
Req: {<0.88048.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3af729ea9f4ee81">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzMjFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3321@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"888f03c5a7e4f108\"}">>,149,9240}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"kate_messages_with_user_are_archived_3321@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,role => client,
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3321@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3321@localhost\"}">>,
return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-23 11:09:46.858 ***🔗
REST request:
Code: 200
Req: {<0.88075.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3321@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b280a3b42d1a124e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzIxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3321@localhost\",\"timestamp\":1713870586837,\"id\":\"888f03c5a7e4f108\",\"from\":\"kate_messages_with_user_are_archived_3321@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3321@localhost it's me\"}]">>,
376,4231}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3321@localhost">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_with_user_are_archived_3321@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,role => client,body => <<>>,
return_headers => true}
*** User 2024-04-23 11:09:46.858 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:46.858 ***🔗
kate_messages_with_user_are_archived_3321@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:09:46.858 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:46.859 ***🔗
bob_messages_with_user_are_archived_3321@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:09:46.859 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:46.860 ***🔗
alice_messages_with_user_are_archived_3321@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:09:46
=== successfully completed test case
=== === Returned value: ok