=== Test case: rest_client_SUITE:messages_with_user_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.8631.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_client_SUITE.logs/run.2022-01-25_16.34.32/rest_client_suite.messages_with_user_are_archived.150914.html"},
{tc_group_properties,[{name,messages},{repeat_until_all_ok,3},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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_client_SUITE.logs/run.2022-01-25_16.34.32/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59"
=== Started at 2022-01-25 16:34:32
*** User 2022-01-25 16:34:32.743 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.743 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d210ebd5b87f3d0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.743 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.743 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjIxOABtYXR5Z3J5c2E=</auth>
*** User 2022-01-25 16:34:32.744 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:32.744 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f4bedd7d95f798af' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='e1c245dc4800c8e4a4427cac8c457915'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<iq id='e1c245dc4800c8e4a4427cac8c457915' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_with_user_are_archived_2218@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='669e0a5e6dbe394ccc0c930425a771f4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<iq type='result' id='669e0a5e6dbe394ccc0c930425a771f4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.745 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:32.749 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
<presence from='alicE_messages_with_user_are_archived_2218@localhost/res1' to='alice_messages_with_user_are_archived_2218@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:32.750 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.750 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7162b82f4feca3aa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.750 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.750 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzIyMTgAbWFrcm9saWth</auth>
*** User 2022-01-25 16:34:32.752 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:32.752 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.752 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a7b29a8abb8135bd' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='8d19c4577730f6f0c61e4cd60ecdd387'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<iq id='8d19c4577730f6f0c61e4cd60ecdd387' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_with_user_are_archived_2218@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='acbc16726d45d0fe870fceec4a88776c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<iq type='result' id='acbc16726d45d0fe870fceec4a88776c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.753 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:32.756 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
<presence from='bOb_messages_with_user_are_archived_2218@localhost/res1' to='bob_messages_with_user_are_archived_2218@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:32.757 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.757 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1a01bae5c9cb261' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.757 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.758 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjE4AG1ha3Jvd2U7cA==</auth>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='079379d88f3ea340' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='0dcf28a041f9de6e4c831004e709335d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<iq id='0dcf28a041f9de6e4c831004e709335d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_messages_with_user_are_archived_2218@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:32.759 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<iq type='set' id='ba6f61dfeef0877399ddb905e244a03e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.760 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<iq type='result' id='ba6f61dfeef0877399ddb905e244a03e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:32.760 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:32.765 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
<presence from='kate_messages_with_user_are_archived_2218@localhost/res1' to='kate_messages_with_user_are_archived_2218@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:32.802 ***
REST request:
Code: 200
Req: {<0.8729.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c5f930694f9f24c8">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX3dpdGhfdXNlcl9hcmVfYXJjaGl2ZWRfMjIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2218@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"6eb83314-c281-4991-9a73-6841e220540d\"}">>,169,29276}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2218@localhost it's me\"}">>,
creds =>
{<<"bob_messages_with_user_are_archived_2218@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:32.841 ***
REST request:
Code: 200
Req: {<0.8739.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b12a2fb5919def76">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjE4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"to\":\"bob_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2218@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"2053e9ad-4aa3-4957-8975-5f051554e5e4\"}">>,169,9900}
Params: #{body =>
<<"{\"to\":\"bob_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, bob_messages_with_user_are_archived_2218@localhost it's me\"}">>,
creds =>
{<<"alice_messages_with_user_are_archived_2218@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
*** User 2022-01-25 16:34:32.866 ***
REST request:
Code: 200
Req: {<0.8745.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b9e7f10404b89f0">>},
{<<"authorization">>,
<<"Basic a2F0ZV9tZXNzYWdlc193aXRoX3VzZXJfYXJlX2FyY2hpdmVkXzIyMThAbG9jYWxob3N0Om1ha3Jvd2U7cA==">>}],
<<"{\"to\":\"alice_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2218@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"64f83c15-71f0-446c-b9e9-017410e64044\"}">>,169,18441}
Params: #{body =>
<<"{\"to\":\"alice_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2218@localhost it's me\"}">>,
creds =>
{<<"kate_messages_with_user_are_archived_2218@localhost">>,
<<"makrowe;p">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
Could not find element archive_wait in Config.
*** User 2022-01-25 16:34:32.881 ***
REST request:
Code: 200
Req: {<0.8764.2>,
<<"/api/messages/kate_messages_with_user_are_archived_2218@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5576638523eff559">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfd2l0aF91c2VyX2FyZV9hcmNoaXZlZF8yMjE4QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"to\":\"alice_messages_with_user_are_archived_2218@localhost\",\"timestamp\":1643128472849,\"id\":\"64f83c15-71f0-446c-b9e9-017410e64044\",\"from\":\"kate_messages_with_user_are_archived_2218@localhost\",\"body\":\"hello, alice_messages_with_user_are_archived_2218@localhost it's me\"}]">>,
396,5984}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_with_user_are_archived_2218@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/kate_messages_with_user_are_archived_2218@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:32.881 ***
kate_messages_with_user_are_archived_2218@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:32.882 ***
kate_messages_with_user_are_archived_2218@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:32.882 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:32.882 ***
bOb_messages_with_user_are_archived_2218@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:32.882 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:32.882 ***
alicE_messages_with_user_are_archived_2218@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-25 16:34:32
=== successfully completed test case
=== === Returned value: ok