=== Test case: rest_SUITE:messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.8353.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/rest_suite.messages_are_archived.120195.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:36:47
*** User 2022-01-27 15:36:47.976 ***
alicE_messages_are_archived_2146@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-27 15:36:47.977 ***
alicE_messages_are_archived_2146@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='41fb623103a6d035' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.977 ***
alicE_messages_are_archived_2146@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-27 15:36:47.977 ***
alicE_messages_are_archived_2146@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8yMTQ2AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:36:47.979 ***
alicE_messages_are_archived_2146@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:47.979 ***
alicE_messages_are_archived_2146@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-27 15:36:47.979 ***
alicE_messages_are_archived_2146@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac4c76c93021274a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.988 ***
alicE_messages_are_archived_2146@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-27 15:36:47.989 ***
alicE_messages_are_archived_2146@localhost/res1 out
<iq type='set' id='ad61a43ac5834b3ad006c90bb7be97ea'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_are_archived_2146@localhost/res1 in
<iq id='ad61a43ac5834b3ad006c90bb7be97ea' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_are_archived_2146@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_are_archived_2146@localhost/res1 out
<iq type='set' id='3be5a3712e11075d04ebba69b2da5804'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_are_archived_2146@localhost/res1 in
<iq type='result' id='3be5a3712e11075d04ebba69b2da5804'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_are_archived_2146@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:47.993 ***
alicE_messages_are_archived_2146@localhost/res1 in
<presence from='alicE_messages_are_archived_2146@localhost/res1' to='alice_messages_are_archived_2146@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:47.993 ***
bOb_messages_are_archived_2146@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-27 15:36:47.994 ***
bOb_messages_are_archived_2146@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b7ffe6fd985a694' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.994 ***
bOb_messages_are_archived_2146@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-27 15:36:47.994 ***
bOb_messages_are_archived_2146@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMjE0NgBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:36:48.000 ***
bOb_messages_are_archived_2146@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:48.000 ***
bOb_messages_are_archived_2146@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-27 15:36:48.041 ***
bOb_messages_are_archived_2146@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c08548c0fb820239' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:48.041 ***
bOb_messages_are_archived_2146@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-27 15:36:48.041 ***
bOb_messages_are_archived_2146@localhost/res1 out
<iq type='set' id='d656f470207976bbdfb7d38abcc4d192'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:48.042 ***
bOb_messages_are_archived_2146@localhost/res1 in
<iq id='d656f470207976bbdfb7d38abcc4d192' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_are_archived_2146@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:48.042 ***
bOb_messages_are_archived_2146@localhost/res1 out
<iq type='set' id='8c4c36252cee03588439a52bf844e0ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.043 ***
bOb_messages_are_archived_2146@localhost/res1 in
<iq type='result' id='8c4c36252cee03588439a52bf844e0ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:48.043 ***
bOb_messages_are_archived_2146@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:48.047 ***
bOb_messages_are_archived_2146@localhost/res1 in
<presence from='bOb_messages_are_archived_2146@localhost/res1' to='bob_messages_are_archived_2146@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:48.079 ***
REST request:
Code: 204
Req: {<0.8585.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f0654120b961d0a8">>}],
<<"{\"to\":\"alice_messages_are_archived_2146@localhost\",\"caller\":\"bob_messages_are_archived_2146@localhost\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,30567}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_archived_2146@localhost\",\"caller\":\"bob_messages_are_archived_2146@localhost\",\"body\":\"hello from Bob\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2022-01-27 15:36:48.143 ***
REST request:
Code: 204
Req: {<0.8628.2>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a96cd3a71f06d85">>}],
<<"{\"to\":\"bob_messages_are_archived_2146@localhost\",\"caller\":\"alice_messages_are_archived_2146@localhost\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,62293}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_archived_2146@localhost\",\"caller\":\"alice_messages_are_archived_2146@localhost\",\"body\":\"hello from Alice\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2022-01-27 15:36:48.157 ***
REST request:
Code: 200
Req: {<0.8638.2>,
<<"/api/messages/alice_messages_are_archived_2146@localhost/bob_messages_are_archived_2146@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f256a141391de449">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"timestamp\":1643297808,\"sender\":\"bob_messages_are_archived_2146@localhost\",\"message_id\":\"8cad103eaf875a37\",\"body\":\"hello from Bob\"},{\"timestamp\":1643297808,\"sender\":\"alice_messages_are_archived_2146@localhost\",\"message_id\":\"d9d62c3296d9eec5\",\"body\":\"hello from Alice\"}]">>,
396,12321}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_2146@localhost/bob_messages_are_archived_2146@localhost?limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2022-01-27 15:36:48.163 ***
REST request:
Code: 200
Req: {<0.8646.2>,
<<"/api/messages/alice_messages_are_archived_2146@localhost/bob_messages_are_archived_2146@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5132360fcd967ff9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"timestamp\":1643297808,\"sender\":\"bob_messages_are_archived_2146@localhost\",\"message_id\":\"8cad103eaf875a37\",\"body\":\"hello from Bob\"},{\"timestamp\":1643297808,\"sender\":\"alice_messages_are_archived_2146@localhost\",\"message_id\":\"d9d62c3296d9eec5\",\"body\":\"hello from Alice\"}]">>,
396,4783}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_2146@localhost/bob_messages_are_archived_2146@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.169 ***
REST request:
Code: 200
Req: {<0.8648.2>,
<<"/api/messages/alice_messages_are_archived_2146@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0722c265317eec9b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"271">>}],
<<"[{\"timestamp\":1643297808,\"sender\":\"bob_messages_are_archived_2146@localhost\",\"message_id\":\"8cad103eaf875a37\",\"body\":\"hello from Bob\"},{\"timestamp\":1643297808,\"sender\":\"alice_messages_are_archived_2146@localhost\",\"message_id\":\"d9d62c3296d9eec5\",\"body\":\"hello from Alice\"}]">>,
396,4644}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_2146@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.169 ***
bOb_messages_are_archived_2146@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.169 ***
bOb_messages_are_archived_2146@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:36:48.170 ***
alicE_messages_are_archived_2146@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.170 ***
alicE_messages_are_archived_2146@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:36:48
=== successfully completed test case
=== === Returned value: ok