=== Test case: rest_SUITE:messages_can_be_paginated/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_can_be_paginated.39429.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.975 ***
alicE_messages_can_be_paginated_2145@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.976 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fa25d5098d217d3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.976 ***
alicE_messages_can_be_paginated_2145@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.976 ***
alicE_messages_can_be_paginated_2145@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMjE0NQBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:36:47.977 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:47.977 ***
alicE_messages_can_be_paginated_2145@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.978 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abbcd5b53373ba8a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.978 ***
alicE_messages_can_be_paginated_2145@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.979 ***
alicE_messages_can_be_paginated_2145@localhost/res1 out
<iq type='set' id='a8bac1c7eac365381c33a2c28d0e4177'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:47.979 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<iq id='a8bac1c7eac365381c33a2c28d0e4177' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_can_be_paginated_2145@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:47.979 ***
alicE_messages_can_be_paginated_2145@localhost/res1 out
<iq type='set' id='ff4bd5d2606487b3230cfb2b74d9d4e7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<iq type='result' id='ff4bd5d2606487b3230cfb2b74d9d4e7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.989 ***
alicE_messages_can_be_paginated_2145@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:47.992 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
<presence from='alicE_messages_can_be_paginated_2145@localhost/res1' to='alice_messages_can_be_paginated_2145@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:36:47.992 ***
bOb_messages_can_be_paginated_2145@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.993 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72348fe2719cba71' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.993 ***
bOb_messages_can_be_paginated_2145@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.993 ***
bOb_messages_can_be_paginated_2145@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzIxNDUAbWFrcm9saWth</auth>
*** User 2022-01-27 15:36:47.994 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:36:47.994 ***
bOb_messages_can_be_paginated_2145@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.995 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abe6184d20c88b5c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:36:47.995 ***
bOb_messages_can_be_paginated_2145@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.995 ***
bOb_messages_can_be_paginated_2145@localhost/res1 out
<iq type='set' id='fc2d060a5cfeadb3708fc08244f3132e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:36:47.996 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<iq id='fc2d060a5cfeadb3708fc08244f3132e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_can_be_paginated_2145@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:36:47.997 ***
bOb_messages_can_be_paginated_2145@localhost/res1 out
<iq type='set' id='227725a4c7d335cc393d1436c5eb754e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.997 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<iq type='result' id='227725a4c7d335cc393d1436c5eb754e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:36:47.997 ***
bOb_messages_can_be_paginated_2145@localhost/res1 out
<presence/>
*** User 2022-01-27 15:36:48.045 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
<presence from='bOb_messages_can_be_paginated_2145@localhost/res1' to='bob_messages_can_be_paginated_2145@localhost/res1' xml:lang='en'/>
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.181 ***
REST request:
Code: 200
Req: {<0.8656.2>,
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d9d143e5c6f5eff9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"655">>}],
<<"[{\"timestamp\":1643018400,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643018400,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643191200,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643191200,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"C\"}]">>,
780,3819}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.185 ***
REST request:
Code: 200
Req: {<0.8658.2>,
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"096ede0b5c48f113">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"327">>}],
<<"[{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643191200,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643191200,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"C\"}]">>,
452,2758}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?limit=3">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.194 ***
REST request:
Code: 200
Req: {<0.8660.2>,
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?before=1643155201&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7aa598fb6268d1a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"437">>}],
<<"[{\"timestamp\":1643018400,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643018400,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"}]">>,
562,7425}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?before=1643155201&limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.198 ***
REST request:
Code: 200
Req: {<0.8662.2>,
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?before=1643155201&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"04f292c8143c8d31">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"219">>}],
<<"[{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_2145@localhost\",\"message_id\":\"\",\"body\":\"B\"}]">>,
344,3510}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_2145@localhost/bob_messages_can_be_paginated_2145@localhost?before=1643155201&limit=2">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:36:48.199 ***
bOb_messages_can_be_paginated_2145@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.199 ***
bOb_messages_can_be_paginated_2145@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:36:48.199 ***
alicE_messages_can_be_paginated_2145@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:36:48.199 ***
alicE_messages_can_be_paginated_2145@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:36:48
=== successfully completed test case
=== === Returned value: ok