=== Test case: rest_SUITE:messages_can_be_paginated/1 (click for source code)
=== Config value:
[{watchdog,<0.27106.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.messages_can_be_paginated.150146.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:25:01
*** User 2022-03-04 11:25:01.278 ***
alicE_messages_can_be_paginated_1790@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-03-04 11:25:01.278 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efb1a5ff1e5b354f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.278 ***
alicE_messages_can_be_paginated_1790@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-03-04 11:25:01.278 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMTc5MABtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:25:01.280 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:01.280 ***
alicE_messages_can_be_paginated_1790@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-03-04 11:25:01.280 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b731d8361009cf95' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.280 ***
alicE_messages_can_be_paginated_1790@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-03-04 11:25:01.280 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 out
<iq type='set' id='183188219f0014ebfa6e11dd2271cdb7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<iq id='183188219f0014ebfa6e11dd2271cdb7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_can_be_paginated_1790@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 out
<iq type='set' id='df3bf2e9ca7517b662f6b9190a6c9e5b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<iq type='result' id='df3bf2e9ca7517b662f6b9190a6c9e5b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:01.284 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
<presence from='alicE_messages_can_be_paginated_1790@domain.example.com/res1' to='alice_messages_can_be_paginated_1790@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:01.284 ***
bOb_messages_can_be_paginated_1790@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-03-04 11:25:01.285 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8051b522a7a68802' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.285 ***
bOb_messages_can_be_paginated_1790@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-03-04 11:25:01.285 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzE3OTAAbWFrcm9saWth</auth>
*** User 2022-03-04 11:25:01.286 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:01.286 ***
bOb_messages_can_be_paginated_1790@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-03-04 11:25:01.286 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77ad69f16486f4ff' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.286 ***
bOb_messages_can_be_paginated_1790@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-03-04 11:25:01.286 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 out
<iq type='set' id='36290124aea8edf5313947828783c84c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:01.287 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<iq id='36290124aea8edf5313947828783c84c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_can_be_paginated_1790@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:01.287 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 out
<iq type='set' id='45d312b81784cb39fad2e3844a7c9591'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.287 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<iq type='result' id='45d312b81784cb39fad2e3844a7c9591'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.287 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:01.289 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
<presence from='bOb_messages_can_be_paginated_1790@domain.example.com/res1' to='bob_messages_can_be_paginated_1790@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-03-04 11:25:01.381 ***
REST request:
Code: 200
Req: {<0.27400.1>,
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ec0aeef0970aedfa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"709">>}],
<<"[{\"timestamp\":1646128800,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1646128800,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1646215200,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1646215200,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1646301600,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1646301600,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
834,3595}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.385 ***
REST request:
Code: 200
Req: {<0.27404.1>,
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64b08a38aac31eb2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"354">>}],
<<"[{\"timestamp\":1646215200,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1646301600,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"},{\"timestamp\":1646301600,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"C\"}]">>,
479,3493}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?limit=3">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.439 ***
REST request:
Code: 200
Req: {<0.27406.1>,
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?before=1646265601&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d12cd0ba340858fa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"473">>}],
<<"[{\"timestamp\":1646128800,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1646128800,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"A\"},{\"timestamp\":1646215200,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1646215200,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
598,53213}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?before=1646265601&limit=10">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.443 ***
REST request:
Code: 200
Req: {<0.27414.1>,
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?before=1646265601&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"380c441bf569aab7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"237">>}],
<<"[{\"timestamp\":1646215200,\"sender\":\"alice_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"},{\"timestamp\":1646215200,\"sender\":\"bob_messages_can_be_paginated_1790@domain.example.com\",\"message_id\":\"\",\"body\":\"B\"}]">>,
362,2662}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/messages/alice_messages_can_be_paginated_1790@domain.example.com/bob_messages_can_be_paginated_1790@domain.example.com?before=1646265601&limit=2">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.443 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:01.443 ***
bOb_messages_can_be_paginated_1790@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:01.443 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:01.443 ***
alicE_messages_can_be_paginated_1790@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:01
=== successfully completed test case
=== === Returned value: ok