=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.82619.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/rest_client_suite.messages_with_user_are_archived.149507.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/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_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 =>
#{server_info => [],iqdisc => one_queue,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@81b4ed498ac1.2024-04-23_23.21.08"
=== Started at 2024-04-23 23:35:36
*** User 2024-04-23 23:35:36.827 ***🔗
alicE_messages_with_user_are_archived_2978@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 23:35:36.828 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='155061d50b462a58' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:35:36.829 ***🔗
alicE_messages_with_user_are_archived_2978@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 23:35:36.829 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk3OABtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 23:35:36.834 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:35:36.834 ***🔗
alicE_messages_with_user_are_archived_2978@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 23:35:36.834 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7f1aa7035446a12' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2978@localhost'>
*** User 2024-04-23 23:35:36.834 ***🔗
alicE_messages_with_user_are_archived_2978@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 23:35:36.835 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='f4d92c5b5c288c5fbfce5946d6198b01'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 23:35:36.835 ***🔗
alicE_messages_with_user_are_archived_2978@localhost/res1 in
<iq id='f4d92c5b5c288c5fbfce5946d6198b01' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2978@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 23:35:36.835 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='50a5890b941379a5477afc42fd9ffd34'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.838 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2978@localhost/res1' id='50a5890b941379a5477afc42fd9ffd34' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.839 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 out
<presence/>
*** User 2024-04-23 23:35:36.844 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2978@localhost/res1' to='alice_messages_with_user_are_archived_2978@localhost/res1'/>
*** User 2024-04-23 23:35:36.845 ***🔗
bOb_messages_with_user_are_archived_2978@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 23:35:36.846 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f69568eea900ff8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:35:36.846 ***🔗
bOb_messages_with_user_are_archived_2978@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 23:35:36.846 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NzgAbWFrcm9saWth</auth>
*** User 2024-04-23 23:35:36.847 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:35:36.847 ***🔗
bOb_messages_with_user_are_archived_2978@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 23:35:36.847 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e59e63b81b2660a' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2978@localhost'>
*** User 2024-04-23 23:35:36.848 ***🔗
bOb_messages_with_user_are_archived_2978@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 23:35:36.848 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='ffbf5a4fc0187fdd515030214ab01296'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 23:35:36.848 ***🔗
bOb_messages_with_user_are_archived_2978@localhost/res1 in
<iq id='ffbf5a4fc0187fdd515030214ab01296' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2978@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 23:35:36.848 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='6fc74085cc2e3d72e2c439f6d47eea04'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.849 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2978@localhost/res1' id='6fc74085cc2e3d72e2c439f6d47eea04' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.849 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 out
<presence/>
*** User 2024-04-23 23:35:36.853 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2978@localhost/res1' to='bob_messages_with_user_are_archived_2978@localhost/res1'/>
*** User 2024-04-23 23:35:36.853 ***🔗
kate_messages_with_user_are_archived_2978@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 23:35:36.853 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0046b5758e54fe2c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:35:36.854 ***🔗
kate_messages_with_user_are_archived_2978@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 23:35:36.854 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTc4AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-23 23:35:36.855 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:35:36.855 ***🔗
kate_messages_with_user_are_archived_2978@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 23:35:36.856 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='03344a467945e8e0' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2978@localhost'>
*** User 2024-04-23 23:35:36.856 ***🔗
kate_messages_with_user_are_archived_2978@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 23:35:36.856 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='85172d60cfdd9ba912e48c01378bc2b1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 23:35:36.856 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<iq id='85172d60cfdd9ba912e48c01378bc2b1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2978@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 23:35:36.856 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 out
<iq type='set' id='ea99acbc135cb92d8a03ce1d7b02fb14'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.858 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2978@localhost/res1' id='ea99acbc135cb92d8a03ce1d7b02fb14' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 23:35:36.858 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 out
<presence/>
*** User 2024-04-23 23:35:36.860 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2978@localhost/res1' to='kate_messages_with_user_are_archived_2978@localhost/res1'/>
*** User 2024-04-23 23:35:36.874 ***🔗
REST request:
Code: 200
Req: {<0.82734.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c703f40e97a77899">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjk3OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2978@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:35:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"0eac8085a12e9ee9\"}">>,149,9086}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2978@localhost it's me\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_2978@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-23 23:35:36.933 ***🔗
REST request:
Code: 200
Req: {<0.82771.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1e1bf6c051505a0">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTc4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2978@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:35:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"3b9d6f1a0399eb87\"}">>,149,53795}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2978@localhost it's me\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_2978@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-23 23:35:36.949 ***🔗
REST request:
Code: 200
Req: {<0.82792.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c034d594bef405d8">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI5NzhAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2978@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:35:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"a0480fb584aad70c\"}">>,149,6842}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2978@localhost it's me\"}">>,
role => client,method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_2978@localhost">>,
<<"makrowe;p">>},
return_headers => true}
*** User 2024-04-23 23:35:36.959 ***🔗
REST request:
Code: 200
Req: {<0.82822.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2978@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2f67d56ce1becd1">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yOTc4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 23:35:36 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2978@localhost\",\"timestamp\":1713915336943,\"id\":\"a0480fb584aad70c\",\"from\":\"kate_messages_with_user_are_archived_2978@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2978@localhost it's me\"}]">>,
376,2654}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2978@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => client,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_2978@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-23 23:35:36.959 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 out
</stream:stream>
*** User 2024-04-23 23:35:36.959 ***🔗
kate_messages_with_user_are_archived_2978@localhost/res1 in
</stream:stream>
*** User 2024-04-23 23:35:36.959 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 out
</stream:stream>
*** User 2024-04-23 23:35:36.960 ***🔗
bob_messages_with_user_are_archived_2978@localhost/res1 in
</stream:stream>
*** User 2024-04-23 23:35:36.960 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 out
</stream:stream>
*** User 2024-04-23 23:35:36.960 ***🔗
alice_messages_with_user_are_archived_2978@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 23:35:36
=== successfully completed test case
=== === Returned value: ok