=== Test case: rest_SUITE:messages_can_be_paginated/1 (click for source code)
=== Config value:
[{watchdog,<0.24874.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,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.messages_can_be_paginated.61572.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:31
*** User 2022-01-27 12:36:31.310 ***
alicE_messages_can_be_paginated_1733@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-01-27 12:36:31.311 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cf8a9f2051f1fd3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.311 ***
alicE_messages_can_be_paginated_1733@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-01-27 12:36:31.311 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMTczMwBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 12:36:31.335 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:31.335 ***
alicE_messages_can_be_paginated_1733@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-01-27 12:36:31.336 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a80dcdc372bd992b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.336 ***
alicE_messages_can_be_paginated_1733@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-01-27 12:36:31.336 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 out
<iq type='set' id='637e7e0e4d1991e92c3dda6d0d1a912d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:31.337 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<iq id='637e7e0e4d1991e92c3dda6d0d1a912d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_can_be_paginated_1733@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:31.338 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 out
<iq type='set' id='6e2fcded8b93b919aebb524727d1f2ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.338 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<iq type='result' id='6e2fcded8b93b919aebb524727d1f2ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.338 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:31.341 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
<presence from='alicE_messages_can_be_paginated_1733@domain.example.com/res1' to='alice_messages_can_be_paginated_1733@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:31.346 ***
bOb_messages_can_be_paginated_1733@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-01-27 12:36:31.346 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='019deed689c70d10' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.347 ***
bOb_messages_can_be_paginated_1733@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-01-27 12:36:31.347 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzE3MzMAbWFrcm9saWth</auth>
*** User 2022-01-27 12:36:31.349 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:31.349 ***
bOb_messages_can_be_paginated_1733@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-01-27 12:36:31.352 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efbec35408451a88' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.352 ***
bOb_messages_can_be_paginated_1733@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-01-27 12:36:31.352 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 out
<iq type='set' id='a9d3e55e8a6cf27507c6e79b4d8ff391'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:31.352 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<iq id='a9d3e55e8a6cf27507c6e79b4d8ff391' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_can_be_paginated_1733@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:31.352 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 out
<iq type='set' id='0f9d6361847cb92e09c56f4740641be5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.353 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<iq type='result' id='0f9d6361847cb92e09c56f4740641be5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.353 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:31.359 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
<presence from='bOb_messages_can_be_paginated_1733@domain.example.com/res1' to='bob_messages_can_be_paginated_1733@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-01-27 12:36:31.576 ***
REST request:
Code: 200
Req: {<0.25176.1>,
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b89eda0a44fa8dc9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"709">>}],
<<"[{\"timestamp\":1643018400,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643018400,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643191200,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643191200,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
834,4560}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.581 ***
REST request:
Code: 200
Req: {<0.25179.1>,
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0af36d6af573aa1e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"354">>}],
<<"[{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643191200,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1643191200,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
479,4457}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?limit=3">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.593 ***
REST request:
Code: 200
Req: {<0.25181.1>,
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?before=1643155201&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf7e4c30730bed9d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"473">>}],
<<"[{\"timestamp\":1643018400,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643018400,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
598,9843}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?before=1643155201&limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.599 ***
REST request:
Code: 200
Req: {<0.25183.1>,
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?before=1643155201&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbe86cdc4bd00d9e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"237">>}],
<<"[{\"timestamp\":1643104800,\"sender\":\"alice_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1643104800,\"sender\":\"bob_messages_can_be_paginated_1733@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
362,4561}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1733@domain.example.com/bob_messages_can_be_paginated_1733@domain.example.com?before=1643155201&limit=2">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.599 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:31.600 ***
bOb_messages_can_be_paginated_1733@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:31.600 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:31.600 ***
alicE_messages_can_be_paginated_1733@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:31
=== successfully completed test case
=== === Returned value: ok