=== Test case: rest_client_SUITE:messages_can_be_paginated/1 (click for source code)
=== Config value:
[{watchdog,<0.11365.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.27.49/rest_client_suite.messages_can_be_paginated.117507.html"},
{tc_group_properties,[{name,messages},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.27.49/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18"
=== Started at 2022-03-04 11:27:49
*** User 2022-03-04 11:27:49.441 ***
alicE_messages_can_be_paginated_2006@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-03-04 11:27:49.441 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2964bd4843c069c4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:49.441 ***
alicE_messages_can_be_paginated_2006@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-03-04 11:27:49.441 ***
alicE_messages_can_be_paginated_2006@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMjAwNgBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:27:49.442 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:49.442 ***
alicE_messages_can_be_paginated_2006@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-03-04 11:27:49.443 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a7c825ab61858e5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:49.443 ***
alicE_messages_can_be_paginated_2006@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-03-04 11:27:49.443 ***
alicE_messages_can_be_paginated_2006@localhost/res1 out
<iq type='set' id='0f6ddcf29ec823aa5368864a776830c7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:49.443 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<iq id='0f6ddcf29ec823aa5368864a776830c7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_can_be_paginated_2006@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:49.443 ***
alicE_messages_can_be_paginated_2006@localhost/res1 out
<iq type='set' id='87e0993faba636f198c5ec96ea36d660'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:49.444 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<iq type='result' id='87e0993faba636f198c5ec96ea36d660'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:49.444 ***
alicE_messages_can_be_paginated_2006@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:49.446 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
<presence from='alicE_messages_can_be_paginated_2006@localhost/res1' to='alice_messages_can_be_paginated_2006@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:49.447 ***
bOb_messages_can_be_paginated_2006@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-03-04 11:27:49.447 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f8c85e1386654a4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:49.447 ***
bOb_messages_can_be_paginated_2006@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-03-04 11:27:49.448 ***
bOb_messages_can_be_paginated_2006@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzIwMDYAbWFrcm9saWth</auth>
*** User 2022-03-04 11:27:49.448 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@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-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c72be31cf47a855b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@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-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@localhost/res1 out
<iq type='set' id='75a8fe4856a01d91a8ba0b24b656209d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<iq id='75a8fe4856a01d91a8ba0b24b656209d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_can_be_paginated_2006@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:49.449 ***
bOb_messages_can_be_paginated_2006@localhost/res1 out
<iq type='set' id='bca3d486d7568c27382ed2f0f1fc8ae9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:49.450 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<iq type='result' id='bca3d486d7568c27382ed2f0f1fc8ae9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:49.450 ***
bOb_messages_can_be_paginated_2006@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:49.457 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
<presence from='bOb_messages_can_be_paginated_2006@localhost/res1' to='bob_messages_can_be_paginated_2006@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-03-04 11:27:49.495 ***
REST request:
Code: 200
Req: {<0.11482.2>,
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"642ca9556416d169">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF8yMDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"769">>}],
<<"[{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646128800000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"A\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646128800000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"A\"},{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"},{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646301600000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"C\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646301600000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"C\"}]">>,
894,1754}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_can_be_paginated_2006@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?limit=10">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:49.510 ***
REST request:
Code: 200
Req: {<0.11498.2>,
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f69b79819c2c9337">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF8yMDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"386">>}],
<<"[{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"},{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646301600000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"C\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646301600000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"C\"}]">>,
511,4291}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_can_be_paginated_2006@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?limit=3">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:49.558 ***
REST request:
Code: 200
Req: {<0.11518.2>,
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?before=1646265601000&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6c600ba84722361">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF8yMDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"513">>}],
<<"[{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646128800000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"A\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646128800000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"A\"},{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"}]">>,
638,1765}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_can_be_paginated_2006@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?before=1646265601000&limit=10">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:49.568 ***
REST request:
Code: 200
Req: {<0.11540.2>,
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?before=1646265601000&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5bfad9e5e401dcc">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF8yMDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"257">>}],
<<"[{\"to\":\"bOb_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"},{\"to\":\"alicE_messages_can_be_paginated_2006@localhost\",\"timestamp\":1646215200000,\"id\":\"undefined\",\"from\":\"undefined\",\"body\":\"B\"}]">>,
382,1601}
Params: #{body => <<>>,
creds =>
{<<"alice_messages_can_be_paginated_2006@localhost">>,
<<"matygrysa">>},
method => <<"GET">>,
path =>
<<"/api/messages/bob_messages_can_be_paginated_2006@localhost?before=1646265601000&limit=2">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:49.568 ***
bOb_messages_can_be_paginated_2006@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:49.568 ***
bOb_messages_can_be_paginated_2006@localhost/res1 in
</stream:stream>
*** User 2022-03-04 11:27:49.568 ***
alicE_messages_can_be_paginated_2006@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:49.569 ***
alicE_messages_can_be_paginated_2006@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:27:49
=== successfully completed test case
=== === Returned value: ok