=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.87275.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/rest_client_suite.messages_with_user_are_archived.112260.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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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_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@459df0fd388f.2024-04-10_14.24.42"
=== Started at 2024-04-10 14:41:30
*** User 2024-04-10 14:41:30.881 ***🔗
alicE_messages_with_user_are_archived_3326@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 14:41:30.882 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a0d543186f3ba7d9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:41:30.882 ***🔗
alicE_messages_with_user_are_archived_3326@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 14:41:30.882 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzMyNgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-10 14:41:30.883 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:41:30.883 ***🔗
alicE_messages_with_user_are_archived_3326@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 14:41:30.883 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c9c26c6d86a71298' from='localhost' version='1.0' xml:lang='en' to='alice_messages_with_user_are_archived_3326@localhost'>
*** User 2024-04-10 14:41:30.883 ***🔗
alicE_messages_with_user_are_archived_3326@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 14:41:30.884 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='40766fe3ba23da93d64748a2e1ce9d07'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:41:30.884 ***🔗
alicE_messages_with_user_are_archived_3326@localhost/res1 in
<iq id='40766fe3ba23da93d64748a2e1ce9d07' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_with_user_are_archived_3326@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:41:30.884 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='7d9982b39fa2a677bb5f88ff05d42c70'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.884 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 in
<iq from='localhost' to='alice_messages_with_user_are_archived_3326@localhost/res1' id='7d9982b39fa2a677bb5f88ff05d42c70' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.884 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 out
<presence/>
*** User 2024-04-10 14:41:30.887 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 in
<presence from='alice_messages_with_user_are_archived_3326@localhost/res1' to='alice_messages_with_user_are_archived_3326@localhost/res1'/>
*** User 2024-04-10 14:41:30.887 ***🔗
bOb_messages_with_user_are_archived_3326@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 14:41:30.888 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6929756976c39970' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:41:30.888 ***🔗
bOb_messages_with_user_are_archived_3326@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 14:41:30.889 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzMjYAbWFrcm9saWth</auth>
*** User 2024-04-10 14:41:30.889 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:41:30.890 ***🔗
bOb_messages_with_user_are_archived_3326@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 14:41:30.890 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='932f1fd7ef6a451f' from='localhost' version='1.0' xml:lang='en' to='bob_messages_with_user_are_archived_3326@localhost'>
*** User 2024-04-10 14:41:30.890 ***🔗
bOb_messages_with_user_are_archived_3326@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 14:41:30.890 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='dcb33a6c423b81001c72cf3f7097091a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:41:30.890 ***🔗
bOb_messages_with_user_are_archived_3326@localhost/res1 in
<iq id='dcb33a6c423b81001c72cf3f7097091a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_with_user_are_archived_3326@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:41:30.890 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='2bd634b98268c6a499848e17cabc9af1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.891 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 in
<iq from='localhost' to='bob_messages_with_user_are_archived_3326@localhost/res1' id='2bd634b98268c6a499848e17cabc9af1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.891 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 out
<presence/>
*** User 2024-04-10 14:41:30.893 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 in
<presence from='bob_messages_with_user_are_archived_3326@localhost/res1' to='bob_messages_with_user_are_archived_3326@localhost/res1'/>
*** User 2024-04-10 14:41:30.894 ***🔗
kate_messages_with_user_are_archived_3326@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 14:41:30.894 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bab439b55aa0c9b2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:41:30.895 ***🔗
kate_messages_with_user_are_archived_3326@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 14:41:30.895 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzI2AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-10 14:41:30.897 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:41:30.897 ***🔗
kate_messages_with_user_are_archived_3326@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 14:41:30.897 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='183130e1357fd216' from='localhost' version='1.0' xml:lang='en' to='kate_messages_with_user_are_archived_3326@localhost'>
*** User 2024-04-10 14:41:30.898 ***🔗
kate_messages_with_user_are_archived_3326@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 14:41:30.898 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='f4017ed9fe5fc618bd827ca524d01bd5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:41:30.898 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<iq id='f4017ed9fe5fc618bd827ca524d01bd5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_3326@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:41:30.898 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 out
<iq type='set' id='5fe4b2bcfdff5f62d3093a02db1d2c69'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.899 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<iq from='localhost' to='kate_messages_with_user_are_archived_3326@localhost/res1' id='5fe4b2bcfdff5f62d3093a02db1d2c69' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:41:30.899 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 out
<presence/>
*** User 2024-04-10 14:41:30.902 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_3326@localhost/res1' to='kate_messages_with_user_are_archived_3326@localhost/res1'/>
*** User 2024-04-10 14:41:30.984 ***🔗
REST request:
Code: 200
Req: {<0.87394.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3257a3ba6e9acd81">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMzMyNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3326@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"89b06752b446f72e\"}">>,149,74876}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3326@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_messages_with_user_are_archived_3326@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 14:41:30.995 ***🔗
REST request:
Code: 200
Req: {<0.87445.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f9a3158c10ec02e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzI2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3326@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"c11b49da54b90d67\"}">>,149,4676}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, bob_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"bob_messages_with_user_are_archived_3326@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3326@localhost">>,
<<"matygrysa">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-10 14:41:31.014 ***🔗
REST request:
Code: 200
Req: {<0.87457.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02bad5b7b47641e8">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzMzMjZAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3326@localhost\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"d23ddcfd83f2de85\"}">>,149,13968}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"body\":\"hello, alice_messages_with_user_are_archived_3326@localhost it's me\",\"to\":\"alice_messages_with_user_are_archived_3326@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"kate_messages_with_user_are_archived_3326@localhost">>,
<<"makrowe;p">>},
return_headers => true}
Could not find element archive_wait in Config.
*** User 2024-04-10 14:41:31.023 ***🔗
REST request:
Code: 200
Req: {<0.87487.0>,
<<"/api/messages/kate_messages_with_user_are_archived_3326@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ce5b4460a224db0f">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8zMzI2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:41:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"251">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_3326@localhost\",\"timestamp\":1712760091002,\"id\":\"d23ddcfd83f2de85\",\"from\":\"kate_messages_with_user_are_archived_3326@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_3326@localhost it's me\"}]">>,
376,3234}
Params: #{path =>
<<"/api/messages/kate_messages_with_user_are_archived_3326@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"alice_messages_with_user_are_archived_3326@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-04-10 14:41:31.023 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 out
</stream:stream>
*** User 2024-04-10 14:41:31.023 ***🔗
kate_messages_with_user_are_archived_3326@localhost/res1 in
</stream:stream>
*** User 2024-04-10 14:41:31.023 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 out
</stream:stream>
*** User 2024-04-10 14:41:31.024 ***🔗
bob_messages_with_user_are_archived_3326@localhost/res1 in
</stream:stream>
*** User 2024-04-10 14:41:31.024 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 out
</stream:stream>
*** User 2024-04-10 14:41:31.024 ***🔗
alice_messages_with_user_are_archived_3326@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 14:41:31
=== successfully completed test case
=== === Returned value: ok