=== Test case: rest_SUITE:messages_can_be_paginated/1 (click for source code)
=== Config value:
[{watchdog,<0.84702.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_SUITE.logs/run.2024-02-22_12.55.44/rest_suite.messages_can_be_paginated.100612.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_SUITE.logs/run.2024-02-22_12.55.44/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{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@fb43d4252d17.2024-02-22_12.37.44"
=== Started at 2024-02-22 12:55:45
*** User 2024-02-22 12:55:45.284 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 12:55:45.285 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26a32453edae75e7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 12:55:45.285 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 12:55:45.285 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfMzIzMQBtYXR5Z3J5c2E=</auth>
*** User 2024-02-22 12:55:45.293 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 12:55:45.293 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 12:55:45.294 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='06b57bba6edbc4cc' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_3231@localhost'>
*** User 2024-02-22 12:55:45.295 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 12:55:45.295 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 out
<iq type='set' id='3a990d486b21fd77489a1f0f90ea05fb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 12:55:45.296 ***🔗
alicE_messages_can_be_paginated_3231@localhost/res1 in
<iq id='3a990d486b21fd77489a1f0f90ea05fb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_paginated_3231@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 12:55:45.296 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 out
<iq type='set' id='8a37f7261d4e7626670d60c31e007ba3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 12:55:45.297 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_paginated_3231@localhost/res1' id='8a37f7261d4e7626670d60c31e007ba3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 12:55:45.297 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 out
<presence/>
*** User 2024-02-22 12:55:45.302 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 in
<presence from='alice_messages_can_be_paginated_3231@localhost/res1' to='alice_messages_can_be_paginated_3231@localhost/res1'/>
*** User 2024-02-22 12:55:45.303 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 12:55:45.304 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e26477ce2e5d1869' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-22 12:55:45.304 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 12:55:45.304 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkXzMyMzEAbWFrcm9saWth</auth>
*** User 2024-02-22 12:55:45.305 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-22 12:55:45.305 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-22 12:55:45.306 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='afd24cd664c493a6' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_3231@localhost'>
*** User 2024-02-22 12:55:45.363 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-22 12:55:45.363 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 out
<iq type='set' id='5ef729bd647660eb3d1aef1680242119'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-22 12:55:45.363 ***🔗
bOb_messages_can_be_paginated_3231@localhost/res1 in
<iq id='5ef729bd647660eb3d1aef1680242119' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_paginated_3231@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-22 12:55:45.364 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 out
<iq type='set' id='1ff4b41942d2d282091880a203dc4387'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 12:55:45.364 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_paginated_3231@localhost/res1' id='1ff4b41942d2d282091880a203dc4387' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-22 12:55:45.364 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 out
<presence/>
*** User 2024-02-22 12:55:45.369 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 in
<presence from='bob_messages_can_be_paginated_3231@localhost/res1' to='bob_messages_can_be_paginated_3231@localhost/res1'/>
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-02-22 12:55:45.501 ***🔗
REST request:
Code: 200
Req: {<0.85045.0>,
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5a8aa327e941c352">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"655">>}],
<<"[{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"A\",\"timestamp\":1708336800},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"A\",\"timestamp\":1708336800},{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200},{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"C\",\"timestamp\":1708509600},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"C\",\"timestamp\":1708509600}]">>,
780,2471}
Params: #{path =>
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?limit=10">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-02-22 12:55:45.504 ***🔗
REST request:
Code: 200
Req: {<0.85049.0>,
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4c24389aa5e6d552">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"327">>}],
<<"[{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200},{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"C\",\"timestamp\":1708509600},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"C\",\"timestamp\":1708509600}]">>,
452,1670}
Params: #{path =>
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?limit=3">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-02-22 12:55:45.513 ***🔗
REST request:
Code: 200
Req: {<0.85051.0>,
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?before=1708473601&limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34f96b0069a02317">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"437">>}],
<<"[{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"A\",\"timestamp\":1708336800},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"A\",\"timestamp\":1708336800},{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200}]">>,
562,7365}
Params: #{path =>
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?before=1708473601&limit=10">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-02-22 12:55:45.517 ***🔗
REST request:
Code: 200
Req: {<0.85053.0>,
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?before=1708473601&limit=2">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0d38ce4400b6fc2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 22 Feb 2024 12:55:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"219">>}],
<<"[{\"sender\":\"alice_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200},{\"sender\":\"bob_messages_can_be_paginated_3231@localhost\",\"message_id\":\"\",\"body\":\"B\",\"timestamp\":1708423200}]">>,
344,2359}
Params: #{path =>
<<"/api/messages/alice_messages_can_be_paginated_3231@localhost/bob_messages_can_be_paginated_3231@localhost?before=1708473601&limit=2">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-02-22 12:55:45.517 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 out
</stream:stream>
*** User 2024-02-22 12:55:45.518 ***🔗
bob_messages_can_be_paginated_3231@localhost/res1 in
</stream:stream>
*** User 2024-02-22 12:55:45.518 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 out
</stream:stream>
*** User 2024-02-22 12:55:45.518 ***🔗
alice_messages_can_be_paginated_3231@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-22 12:55:45
=== successfully completed test case
=== === Returned value: ok