=== Test case: rest_SUITE:messages_are_archived/1 (click for source code)
=== Config value:
[{watchdog,<0.25535.1>},
{{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,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/rest_suite.messages_are_archived.36229.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:14:56
*** User 2022-02-02 15:14:56.957 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:14:56.958 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c90e567331d89a2b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.959 ***
alicE_messages_are_archived_1604@domain.example.com/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-02-02 15:14:56.959 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF8xNjA0AG1hdHlncnlzYQ==</auth>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe4c25ab3eda41d5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_are_archived_1604@domain.example.com/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-02-02 15:14:56.960 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<iq type='set' id='c85220e172d2c58cb42123728ed9ccaa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:56.961 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<iq id='c85220e172d2c58cb42123728ed9ccaa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_are_archived_1604@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:56.962 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<iq type='set' id='3f99f3eea8f9c275635a58cf7c0b5566'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.962 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<iq type='result' id='3f99f3eea8f9c275635a58cf7c0b5566'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.962 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:56.964 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
<presence from='alicE_messages_are_archived_1604@domain.example.com/res1' to='alice_messages_are_archived_1604@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:56.966 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:14:56.966 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21b5f137c907b37b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.966 ***
bOb_messages_are_archived_1604@domain.example.com/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-02-02 15:14:56.966 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfMTYwNABtYWtyb2xpa2E=</auth>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='726bd3c3039ee9a2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_are_archived_1604@domain.example.com/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-02-02 15:14:56.969 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<iq type='set' id='053952429235a67230c4b47bcdee282a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:56.969 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<iq id='053952429235a67230c4b47bcdee282a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_are_archived_1604@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:56.969 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<iq type='set' id='40376730af0fe6a31d78b8327ae9e0c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.970 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<iq type='result' id='40376730af0fe6a31d78b8327ae9e0c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.970 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:56.971 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
<presence from='bOb_messages_are_archived_1604@domain.example.com/res1' to='bob_messages_are_archived_1604@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:56.979 ***
REST request:
Code: 204
Req: {<0.25769.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ecce62d48d8f8728">>}],
<<"{\"to\":\"alice_messages_are_archived_1604@domain.example.com\",\"caller\":\"bob_messages_are_archived_1604@domain.example.com\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,6133}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_archived_1604@domain.example.com\",\"caller\":\"bob_messages_are_archived_1604@domain.example.com\",\"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-02-02 15:14:56.984 ***
REST request:
Code: 204
Req: {<0.25794.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53b40d9f59315d21">>}],
<<"{\"to\":\"bob_messages_are_archived_1604@domain.example.com\",\"caller\":\"alice_messages_are_archived_1604@domain.example.com\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,3891}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_archived_1604@domain.example.com\",\"caller\":\"alice_messages_are_archived_1604@domain.example.com\",\"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-02-02 15:14:56.988 ***
REST request:
Code: 200
Req: {<0.25807.1>,
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com/bob_messages_are_archived_1604@domain.example.com?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee94a93481e7f08c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"289">>}],
<<"[{\"timestamp\":1643814897,\"sender\":\"bob_messages_are_archived_1604@domain.example.com\",\"message_id\":\"bafe0af04cd59cc8\",\"body\":\"hello from Bob\"},{\"timestamp\":1643814897,\"sender\":\"alice_messages_are_archived_1604@domain.example.com\",\"message_id\":\"dcbfbbda128de7fb\",\"body\":\"hello from Alice\"}]">>,
414,3241}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com/bob_messages_are_archived_1604@domain.example.com?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-02-02 15:14:56.990 ***
REST request:
Code: 200
Req: {<0.25815.1>,
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com/bob_messages_are_archived_1604@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b33f8581c92e68f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"289">>}],
<<"[{\"timestamp\":1643814897,\"sender\":\"bob_messages_are_archived_1604@domain.example.com\",\"message_id\":\"bafe0af04cd59cc8\",\"body\":\"hello from Bob\"},{\"timestamp\":1643814897,\"sender\":\"alice_messages_are_archived_1604@domain.example.com\",\"message_id\":\"dcbfbbda128de7fb\",\"body\":\"hello from Alice\"}]">>,
414,1275}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com/bob_messages_are_archived_1604@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.993 ***
REST request:
Code: 200
Req: {<0.25822.1>,
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"84d27d99efca3485">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"289">>}],
<<"[{\"timestamp\":1643814897,\"sender\":\"bob_messages_are_archived_1604@domain.example.com\",\"message_id\":\"bafe0af04cd59cc8\",\"body\":\"hello from Bob\"},{\"timestamp\":1643814897,\"sender\":\"alice_messages_are_archived_1604@domain.example.com\",\"message_id\":\"dcbfbbda128de7fb\",\"body\":\"hello from Alice\"}]">>,
414,1642}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_are_archived_1604@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.993 ***
bOb_messages_are_archived_1604@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:56.993 ***
bOb_messages_are_archived_1604@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:14:56.993 ***
alicE_messages_are_archived_1604@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:56.994 ***
alicE_messages_are_archived_1604@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:14:57
=== successfully completed test case
=== === Returned value: ok