=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.81164.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.16/rest_client_suite.messages_with_user_are_archived.155651.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.16/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_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@c63aed7f6ecc.2024-04-26_12.39.39"
=== Started at 2024-04-26 12:54:16
*** User 2024-04-26 12:54:16.541 ***🔗
alicE_messages_with_user_are_archived_3066@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-26 12:54:16.542 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7bfbc542f5c6cb91' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:54:16.542 ***🔗
alicE_messages_with_user_are_archived_3066@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-26 12:54:16.542 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzA2NgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-26 12:54:16.543 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:54:16.543 ***🔗
alicE_messages_with_user_are_archived_3066@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-26 12:54:16.544 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1cf9824a6c072bb' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3066@localhost'>
*** User 2024-04-26 12:54:16.544 ***🔗
alicE_messages_with_user_are_archived_3066@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-26 12:54:16.544 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='fb7511aef9a9d4a2e55f2a45f560585d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:54:16.544 ***🔗
alicE_messages_with_user_are_archived_3066@localhost/res1 in
<iq id='fb7511aef9a9d4a2e55f2a45f560585d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3066@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:54:16.544 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='c1dc1441aa4f251300fc365adb3af818'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.545 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3066@localhost/res1' id='c1dc1441aa4f251300fc365adb3af818' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.546 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 out
<presence/>
*** User 2024-04-26 12:54:16.549 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3066@localhost/res1' to='alice_messages_with_user_are_archived_3066@localhost/res1'/>
*** User 2024-04-26 12:54:16.549 ***🔗
bOb_messages_with_user_are_archived_3066@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-26 12:54:16.550 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef71b7b21eec85b0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:54:16.550 ***🔗
bOb_messages_with_user_are_archived_3066@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-26 12:54:16.550 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMwNjYAbWFrcm9saWth</auth>
*** User 2024-04-26 12:54:16.551 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:54:16.552 ***🔗
bOb_messages_with_user_are_archived_3066@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-26 12:54:16.552 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b996a3a41d9f2408' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3066@localhost'>
*** User 2024-04-26 12:54:16.552 ***🔗
bOb_messages_with_user_are_archived_3066@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-26 12:54:16.552 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='2c253ebc95710f608fde2752e48bf6ba'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:54:16.553 ***🔗
bOb_messages_with_user_are_archived_3066@localhost/res1 in
<iq id='2c253ebc95710f608fde2752e48bf6ba' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3066@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:54:16.553 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='d623576354c55af6db616cae8198bee6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.554 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3066@localhost/res1' id='d623576354c55af6db616cae8198bee6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.554 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 out
<presence/>
*** User 2024-04-26 12:54:16.557 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3066@localhost/res1' to='bob_messages_with_user_are_archived_3066@localhost/res1'/>
*** User 2024-04-26 12:54:16.558 ***🔗
kate_messages_with_user_are_archived_3066@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-26 12:54:16.559 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86c5a1dc828eae25' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:54:16.559 ***🔗
kate_messages_with_user_are_archived_3066@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-26 12:54:16.559 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY2AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-26 12:54:16.560 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:54:16.560 ***🔗
kate_messages_with_user_are_archived_3066@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-26 12:54:16.561 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0524fa587c97379' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3066@localhost'>
*** User 2024-04-26 12:54:16.561 ***🔗
kate_messages_with_user_are_archived_3066@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-26 12:54:16.561 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='242c34947e6018d4dfb073d1cd8b2d7e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:54:16.561 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<iq id='242c34947e6018d4dfb073d1cd8b2d7e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3066@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:54:16.562 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 out
<iq type='set' id='0c3d3d7ecfae509aac98e3088e41373c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.563 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3066@localhost/res1' id='0c3d3d7ecfae509aac98e3088e41373c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:54:16.563 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 out
<presence/>
*** User 2024-04-26 12:54:16.567 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3066@localhost/res1' to='kate_messages_with_user_are_archived_3066@localhost/res1'/>
*** User 2024-04-26 12:54:16.648 ***🔗
REST request:
Code: 200
Req: {<0.81279.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"55689ebb2bb56d3a">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzA2NkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3066@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:54:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"780c925fc46b5f0e\"}">>,149,71358}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3066@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_3066@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-04-26 12:54:16.669 ***🔗
REST request:
Code: 200
Req: {<0.81330.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"32855adeb6f9996d">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3066@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:54:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"bba83bc538939056\"}">>,149,15355}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3066@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_3066@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-26 12:54:16.704 ***🔗
REST request:
Code: 200
Req: {<0.81336.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87cc42620291ab22">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMwNjZAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3066@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:54:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"80a2572f254005da\"}">>,149,28269}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3066@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3066@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_3066@localhost">>,
<<"makrowe;p">>},
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-26 12:54:16.741 ***🔗
REST request:
Code: 200
Req: {<0.81357.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3066@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"000b62023c4ce578">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMDY2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:54:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3066@localhost\",\"timestamp\":1714136056677,\"id\":\"80a2572f254005da\",\"from\":\"kate_messages_with_user_are_archived_3066@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3066@localhost it's me\"}]">>,
376,4018}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3066@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_3066@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-04-26 12:54:16.741 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:54:16.741 ***🔗
kate_messages_with_user_are_archived_3066@localhost/res1 in
</stream:stream>
*** User 2024-04-26 12:54:16.742 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:54:16.742 ***🔗
bob_messages_with_user_are_archived_3066@localhost/res1 in
</stream:stream>
*** User 2024-04-26 12:54:16.742 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:54:16.742 ***🔗
alice_messages_with_user_are_archived_3066@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-26 12:54:16
=== successfully completed test case
=== === Returned value: ok