=== Test case: rest_SUITE:messages_can_be_paginated/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_can_be_paginated.36357.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.958 ***
alicE_messages_can_be_paginated_1605@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_can_be_paginated_1605@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='db2e52e630515d14' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.959 ***
alicE_messages_can_be_paginated_1605@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_can_be_paginated_1605@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMTYwNQBtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:14:56.959 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:56.959 ***
alicE_messages_can_be_paginated_1605@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_can_be_paginated_1605@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='017b63f3935d54f5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_can_be_paginated_1605@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_can_be_paginated_1605@domain.example.com/res1 out
<iq type='set' id='a27bb1dda7521c584bad720ddfcf22fb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 in
<iq id='a27bb1dda7521c584bad720ddfcf22fb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_can_be_paginated_1605@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:56.960 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 out
<iq type='set' id='d3d4e7be86e0ca79bf1312ddc1eb5444'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.961 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 in
<iq type='result' id='d3d4e7be86e0ca79bf1312ddc1eb5444'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.962 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:56.963 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 in
<presence from='alicE_messages_can_be_paginated_1605@domain.example.com/res1' to='alice_messages_can_be_paginated_1605@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:56.964 ***
bOb_messages_can_be_paginated_1605@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.965 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ba19da84dcdfe05' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.965 ***
bOb_messages_can_be_paginated_1605@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.965 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzE2MDUAbWFrcm9saWth</auth>
*** User 2022-02-02 15:14:56.966 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:56.967 ***
bOb_messages_can_be_paginated_1605@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.967 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e9e11c81013a828' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:56.967 ***
bOb_messages_can_be_paginated_1605@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.967 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 out
<iq type='set' id='091a7262ce3a5ab0834f5a15b025b964'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<iq id='091a7262ce3a5ab0834f5a15b025b964' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_can_be_paginated_1605@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 out
<iq type='set' id='4a7d6bf83a72145a8a70267646598e8a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.968 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<iq type='result' id='4a7d6bf83a72145a8a70267646598e8a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:56.969 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:56.971 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
<presence from='bOb_messages_can_be_paginated_1605@domain.example.com/res1' to='bob_messages_can_be_paginated_1605@domain.example.com/res1' xml:lang='en'/>
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.997 ***
REST request:
Code: 200
Req: {<0.25835.1>,
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ecbc82cf4c5a8b8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"709">>}],
<<"[{\"timestamp\":1643536800,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643536800,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643623200,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643623200,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643709600,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643709600,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
834,1122}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:56.999 ***
REST request:
Code: 200
Req: {<0.25840.1>,
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2770b3505503b22">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"354">>}],
<<"[{\"timestamp\":1643623200,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643709600,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643709600,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
479,1079}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?limit=3">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.001 ***
REST request:
Code: 200
Req: {<0.25842.1>,
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?before=1643673601&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa00583161020fac">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"473">>}],
<<"[{\"timestamp\":1643536800,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643536800,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643623200,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643623200,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
598,1370}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?before=1643673601&limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.003 ***
REST request:
Code: 200
Req: {<0.25844.1>,
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?before=1643673601&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"570781d0285cd3d7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"237">>}],
<<"[{\"timestamp\":1643623200,\"sender\":\"alice_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643623200,\"sender\":\"bob_messages_can_be_paginated_1605@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
362,1031}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1605@domain.example.com/bob_messages_can_be_paginated_1605@domain.example.com?before=1643673601&limit=2">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.003 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.004 ***
bOb_messages_can_be_paginated_1605@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:14:57.004 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.004 ***
alicE_messages_can_be_paginated_1605@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:14:57
=== successfully completed test case
=== === Returned value: ok