=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.78718.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.20.06/rest_client_suite.messages_with_user_are_archived.201602.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.20.06/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_amp => #{},
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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@fe524ba9ae35.2024-03-11_09.05.30"
=== Started at 2024-03-11 09:20:07
*** User 2024-03-11 09:20:07.477 ***🔗
alicE_messages_with_user_are_archived_2841@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-03-11 09:20:07.480 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cab8ac4d8e39c895' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:20:07.480 ***🔗
alicE_messages_with_user_are_archived_2841@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-03-11 09:20:07.480 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjg0MQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 09:20:07.485 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:20:07.485 ***🔗
alicE_messages_with_user_are_archived_2841@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-03-11 09:20:07.485 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='957c0afb70365ce2' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_2841@localhost'>
*** User 2024-03-11 09:20:07.485 ***🔗
alicE_messages_with_user_are_archived_2841@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-03-11 09:20:07.485 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='f85dbaa5bf40d49fd4895fe9963cae01'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:20:07.486 ***🔗
alicE_messages_with_user_are_archived_2841@localhost/res1 in
<iq id='f85dbaa5bf40d49fd4895fe9963cae01' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_2841@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:20:07.486 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='73c72bac400d11865a243b32940451dd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.496 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_2841@localhost/res1' id='73c72bac400d11865a243b32940451dd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.496 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 out
<presence/>
*** User 2024-03-11 09:20:07.511 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_2841@localhost/res1' to='alice_messages_with_user_are_archived_2841@localhost/res1'/>
*** User 2024-03-11 09:20:07.513 ***🔗
bOb_messages_with_user_are_archived_2841@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-03-11 09:20:07.515 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebc332b121cff0b6' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:20:07.515 ***🔗
bOb_messages_with_user_are_archived_2841@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-03-11 09:20:07.516 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI4NDEAbWFrcm9saWth</auth>
*** User 2024-03-11 09:20:07.516 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:20:07.516 ***🔗
bOb_messages_with_user_are_archived_2841@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-03-11 09:20:07.517 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='51a7bf84f4779256' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_2841@localhost'>
*** User 2024-03-11 09:20:07.517 ***🔗
bOb_messages_with_user_are_archived_2841@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-03-11 09:20:07.517 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='0040d7c5b110377479ab535c57d41f63'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:20:07.517 ***🔗
bOb_messages_with_user_are_archived_2841@localhost/res1 in
<iq id='0040d7c5b110377479ab535c57d41f63' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_2841@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:20:07.518 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='5fea5f17bc4446f0a4135cdb7acc2de6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.521 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_2841@localhost/res1' id='5fea5f17bc4446f0a4135cdb7acc2de6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.521 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 out
<presence/>
*** User 2024-03-11 09:20:07.540 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_2841@localhost/res1' to='bob_messages_with_user_are_archived_2841@localhost/res1'/>
*** User 2024-03-11 09:20:07.547 ***🔗
kate_messages_with_user_are_archived_2841@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-03-11 09:20:07.548 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8745de574507109' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:20:07.549 ***🔗
kate_messages_with_user_are_archived_2841@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-03-11 09:20:07.549 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yODQxAG1ha3Jvd2U7cA==</auth>
*** User 2024-03-11 09:20:07.556 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:20:07.556 ***🔗
kate_messages_with_user_are_archived_2841@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-03-11 09:20:07.556 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c135574b8a249de1' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_2841@localhost'>
*** User 2024-03-11 09:20:07.556 ***🔗
kate_messages_with_user_are_archived_2841@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-03-11 09:20:07.556 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='b65ec4d9c0ef6b76bf282d63a335f62c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:20:07.557 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<iq id='b65ec4d9c0ef6b76bf282d63a335f62c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2841@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:20:07.557 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 out
<iq type='set' id='f8b72bcc48c89aa0b1de7d7004ccdbc5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.558 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_2841@localhost/res1' id='f8b72bcc48c89aa0b1de7d7004ccdbc5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:20:07.558 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 out
<presence/>
*** User 2024-03-11 09:20:07.578 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2841@localhost/res1' to='kate_messages_with_user_are_archived_2841@localhost/res1'/>
*** User 2024-03-11 09:20:07.637 ***🔗
REST request:
Code: 200
Req: {<0.78841.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f14b08f783e0506">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjg0MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2841@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:20:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"98b430a4ee066821\"}">>,149,16470}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_messages_with_user_are_archived_2841@localhost">>,
<<"makrolika">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2841@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-11 09:20:07.743 ***🔗
REST request:
Code: 200
Req: {<0.78869.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"290e3bd05a67c720">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yODQxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2841@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:20:06 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"e0ef321d65896fcd\"}">>,149,46334}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_messages_with_user_are_archived_2841@localhost">>,
<<"matygrysa">>},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_2841@localhost\"}">>,
role => client,return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-03-11 09:20:07.787 ***🔗
REST request:
Code: 200
Req: {<0.78899.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af07a2e76fbd08f8">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzI4NDFAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2841@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:20:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"cd6dff334463473e\"}">>,149,21755}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"kate_messages_with_user_are_archived_2841@localhost">>,
<<"makrowe;p">>},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_2841@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_2841@localhost\"}">>,
role => client,return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-03-11 09:20:07.839 ***🔗
REST request:
Code: 200
Req: {<0.78911.0>,
<<"/api/messages/kate_messages_with_user_are_archived_2841@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3f61130faa58010">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yODQxQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:20:07 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2841@localhost\",\"timestamp\":1710148807768,\"id\":\"cd6dff334463473e\",\"from\":\"kate_messages_with_user_are_archived_2841@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2841@localhost it's me\"}]">>,
376,23280}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_2841@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_with_user_are_archived_2841@localhost">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-11 09:20:07.840 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:20:07.849 ***🔗
kate_messages_with_user_are_archived_2841@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:20:07.849 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:20:07.855 ***🔗
bob_messages_with_user_are_archived_2841@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:20:07.855 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:20:07.871 ***🔗
alice_messages_with_user_are_archived_2841@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:20:07
=== successfully completed test case
=== === Returned value: ok