=== Test case: rest_client_SUITE:messages_can_be_paginated_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.76267.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/rest_client_suite.messages_can_be_paginated_in_room.84613.html"},
{tc_group_properties,[{name,muc},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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_12.12.52/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => mnesia},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@71655937ce6e.2024-04-16_11.59.01"
=== Started at 2024-04-16 12:12:52
*** User 2024-04-16 12:12:52.890 ***🔗
alicE_messages_can_be_paginated_in_room_3025@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 2024-04-16 12:12:52.891 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='52d2b3fe1aa6085b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:52.892 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/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-04-16 12:12:52.892 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8zMDI1AG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 12:12:52.894 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:52.894 ***🔗
alicE_messages_can_be_paginated_in_room_3025@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 2024-04-16 12:12:52.895 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e3d1363c832d5fc' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_3025@domain.example.com'>
*** User 2024-04-16 12:12:52.895 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/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-04-16 12:12:52.895 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<iq type='set' id='c9211a280bd3568dffab71f5d401be29'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:52.896 ***🔗
alicE_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<iq id='c9211a280bd3568dffab71f5d401be29' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:52.896 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<iq type='set' id='06ad7a5ca9766bd6a01722ea449ca24c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:52.898 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1' id='06ad7a5ca9766bd6a01722ea449ca24c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:52.899 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:52.902 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<presence from='alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1' to='alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1'/>
*** User 2024-04-16 12:12:52.902 ***🔗
bOb_messages_can_be_paginated_in_room_3025@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 2024-04-16 12:12:52.903 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f1c5cee9e9b72fd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:52.904 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/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-04-16 12:12:52.904 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMzAyNQBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 12:12:52.908 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:52.908 ***🔗
bOb_messages_can_be_paginated_in_room_3025@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 2024-04-16 12:12:52.908 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13b711d2901f4f66' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_3025@domain.example.com'>
*** User 2024-04-16 12:12:52.909 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/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-04-16 12:12:52.909 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<iq type='set' id='2b905da0ad1ef6a359841b6ddca3211b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:52.909 ***🔗
bOb_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<iq id='2b905da0ad1ef6a359841b6ddca3211b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:52.910 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<iq type='set' id='6816d8e8791cf224c237708c575e261b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:52.910 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1' id='6816d8e8791cf224c237708c575e261b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:52.910 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:52.919 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<presence from='bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1' to='bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1'/>
*** User 2024-04-16 12:12:53.000 ***🔗
REST request:
Code: 201
Req: {<0.76693.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62db3968ef3057be">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-269572-995603\"}">>,156,13471}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:53.100 ***🔗
REST request:
Code: 204
Req: {<0.76815.0>,<<"/api/rooms/1713-269572-995603/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86cc62337fb2e61b">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:52 GMT">>}],
<<>>,80,90929}
Params: #{path => <<"/api/rooms/1713-269572-995603/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-04-16 12:12:53.100 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<message from='1713-269572-995603@muclight.domain.example.com' to='bob_messages_can_be_paginated_in_room_3025@domain.example.com' id='e3afdab9-b0ad-49e8-9f11-e5bd08f5833c' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1713-269573-85689</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_3025@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-16 12:12:53.101 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
<message from='1713-269572-995603@muclight.domain.example.com' to='alice_messages_can_be_paginated_in_room_3025@domain.example.com' id='e3afdab9-b0ad-49e8-9f11-e5bd08f5833c' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1713-269572-995595</prev-version>
<version>1713-269573-85689</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_3025@domain.example.com</user>
</x>
<body/>
<stanza-id by='1713-269572-995603@muclight.domain.example.com' id='C5HLL16VC501' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element wait_for_parallel_writer in Config.
Could not find element archive_wait in Config.
*** User 2024-04-16 12:12:53.190 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** User 2024-04-16 12:12:53.198 ***🔗
REST request:
Code: 200
Req: {<0.77123.0>,<<"/api/rooms/1713-269572-995603/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"057bf38bb450cfbb">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"1300">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"6b6f4000 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1713010374000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"7b033b57 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1713010375000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"3a4060d6 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1713096774000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"7264eb56 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1713096775000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"c5bcec11 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1713183174000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"ea516100 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1713183175000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1713-269572-995603@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1713269573023,\"id\":\"e3afdab9-b0ad-49e8-9f11-e5bd08f5833c\"}]">>,
1426,3754}
Params: #{path => <<"/api/rooms/1713-269572-995603/messages?limit=10">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 12:12:53.205 ***🔗
REST request:
Code: 200
Req: {<0.77159.0>,<<"/api/rooms/1713-269572-995603/messages?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d816ffa663aeb62">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"596">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"c5bcec11 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1713183174000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"ea516100 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1713183175000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1713-269572-995603@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1713269573023,\"id\":\"e3afdab9-b0ad-49e8-9f11-e5bd08f5833c\"}]">>,
721,1475}
Params: #{path => <<"/api/rooms/1713-269572-995603/messages?limit=3">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 12:12:53.212 ***🔗
REST request:
Code: 200
Req: {<0.77179.0>,
<<"/api/rooms/1713-269572-995603/messages?limit=4&before=1713183163000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fe7ad7772806df89">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"705">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"6b6f4000 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1713010374000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"7b033b57 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1713010375000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"3a4060d6 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1713096774000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"7264eb56 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1713096775000,\"id\":\"undefined\"}]">>,
830,1649}
Params: #{path =>
<<"/api/rooms/1713-269572-995603/messages?limit=4&before=1713183163000">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 12:12:53.219 ***🔗
REST request:
Code: 200
Req: {<0.77191.0>,
<<"/api/rooms/1713-269572-995603/messages?limit=2&before=1713183163000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f20979a5410f9121">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMwMjVAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"353">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"3a4060d6 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1713096774000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3025@domain.example.com\",\"body\":\"7264eb56 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1713096775000,\"id\":\"undefined\"}]">>,
478,1926}
Params: #{path =>
<<"/api/rooms/1713-269572-995603/messages?limit=2&before=1713183163000">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_3025@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-04-16 12:12:53.219 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:53.220 ***🔗
bob_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 12:12:53.220 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:53.220 ***🔗
alice_messages_can_be_paginated_in_room_3025@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 12:12:53
=== successfully completed test case
=== === Returned value: ok