=== Test case: rest_client_SUITE:messages_can_be_paginated_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.71679.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_client_SUITE.logs/run.2023-11-14_11.54.34/rest_client_suite.messages_can_be_paginated_in_room.179842.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.rest_client_SUITE.logs/run.2023-11-14_11.54.34/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_sic => #{iqdisc => one_queue},
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_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_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}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a2fc54846062.2023-11-14_11.38.11"
=== Started at 2023-11-14 11:54:35
*** User 2023-11-14 11:54:35.216 ***🔗
alicE_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.217 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ced9554e9e22bbe9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:35.218 ***🔗
alicE_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.267 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8zMjY0AG1hdHlncnlzYQ==</auth>
*** User 2023-11-14 11:54:35.270 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:35.270 ***🔗
alicE_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.271 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3141dcaa39407afb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_3264@domain.example.com'>
*** User 2023-11-14 11:54:35.271 ***🔗
alicE_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.271 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<iq type='set' id='92c0791b12a83b57f12c9158f134b00c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:35.271 ***🔗
alicE_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<iq id='92c0791b12a83b57f12c9158f134b00c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:35.271 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<iq type='set' id='11313e52620004e0c73a22732b493067'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:35.273 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1' id='11313e52620004e0c73a22732b493067' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:35.273 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:35.279 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<presence from='alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1' to='alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1'/>
*** User 2023-11-14 11:54:35.280 ***🔗
bOb_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.281 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ee274624a0c523a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-14 11:54:35.281 ***🔗
bOb_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.281 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMzI2NABtYWtyb2xpa2E=</auth>
*** User 2023-11-14 11:54:35.286 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-14 11:54:35.286 ***🔗
bOb_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.287 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0975cc8b78679f18' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_3264@domain.example.com'>
*** User 2023-11-14 11:54:35.287 ***🔗
bOb_messages_can_be_paginated_in_room_3264@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 2023-11-14 11:54:35.287 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<iq type='set' id='2cdd3b75b4b7d6e072572486df5a51ec'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-14 11:54:35.288 ***🔗
bOb_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<iq id='2cdd3b75b4b7d6e072572486df5a51ec' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-14 11:54:35.288 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<iq type='set' id='aa11f0298ed17658af5b2e97dce7995c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:35.289 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1' id='aa11f0298ed17658af5b2e97dce7995c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-14 11:54:35.290 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
<presence/>
*** User 2023-11-14 11:54:35.296 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<presence from='bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1' to='bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1'/>
*** User 2023-11-14 11:54:35.378 ***🔗
REST request:
Code: 201
Req: {<0.72103.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6893c863c8e285e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1699-962875-370723\"}">>,156,72375}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.478 ***🔗
REST request:
Code: 204
Req: {<0.72234.0>,<<"/api/rooms/1699-962875-370723/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9607742f37981594">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>}],
<<>>,80,93284}
Params: #{path => <<"/api/rooms/1699-962875-370723/users">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.479 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<message from='1699-962875-370723@muclight.domain.example.com' to='bob_messages_can_be_paginated_in_room_3264@domain.example.com' id='8c9ac284-0725-499b-bc5c-3f799df6158e' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1699-962875-405361</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_3264@domain.example.com</user>
</x>
<body/>
</message>
*** User 2023-11-14 11:54:35.479 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
<message from='1699-962875-370723@muclight.domain.example.com' to='alice_messages_can_be_paginated_in_room_3264@domain.example.com' id='8c9ac284-0725-499b-bc5c-3f799df6158e' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1699-962875-370713</prev-version>
<version>1699-962875-405361</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_3264@domain.example.com</user>
</x>
<body/>
<stanza-id by='1699-962875-370723@muclight.domain.example.com' id='C2GRED8SU1G1' 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 2023-11-14 11:54:35.576 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** User 2023-11-14 11:54:35.586 ***🔗
REST request:
Code: 200
Req: {<0.72547.0>,<<"/api/rooms/1699-962875-370723/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c429cce3d859bd2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"1300">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"c10cff0c day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1699703676000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"b09d2286 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1699703677000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"22beae53 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1699790076000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"92566792 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1699790077000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"38ce5570 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1699876476000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"9b4ac8c9 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1699876477000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1699-962875-370723@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1699962875399,\"id\":\"8c9ac284-0725-499b-bc5c-3f799df6158e\"}]">>,
1426,3311}
Params: #{path => <<"/api/rooms/1699-962875-370723/messages?limit=10">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.595 ***🔗
REST request:
Code: 200
Req: {<0.72572.0>,<<"/api/rooms/1699-962875-370723/messages?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9b75c0847a886fe2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"596">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"38ce5570 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1699876476000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"9b4ac8c9 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1699876477000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1699-962875-370723@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1699962875399,\"id\":\"8c9ac284-0725-499b-bc5c-3f799df6158e\"}]">>,
721,2901}
Params: #{path => <<"/api/rooms/1699-962875-370723/messages?limit=3">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.605 ***🔗
REST request:
Code: 200
Req: {<0.72595.0>,
<<"/api/rooms/1699-962875-370723/messages?limit=4&before=1699876465000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e1a49d64b129670">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"705">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"c10cff0c day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1699703676000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"b09d2286 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1699703677000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"22beae53 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1699790076000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"92566792 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1699790077000,\"id\":\"undefined\"}]">>,
830,3117}
Params: #{path =>
<<"/api/rooms/1699-962875-370723/messages?limit=4&before=1699876465000">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.612 ***🔗
REST request:
Code: 200
Req: {<0.72605.0>,
<<"/api/rooms/1699-962875-370723/messages?limit=2&before=1699876465000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"850161620c074310">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyNjRAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 14 Nov 2023 11:54:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"353">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"22beae53 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1699790076000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3264@domain.example.com\",\"body\":\"92566792 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1699790077000,\"id\":\"undefined\"}]">>,
478,2310}
Params: #{path =>
<<"/api/rooms/1699-962875-370723/messages?limit=2&before=1699876465000">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_3264@domain.example.com">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2023-11-14 11:54:35.613 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:35.613 ***🔗
bob_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-14 11:54:35.613 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-14 11:54:35.613 ***🔗
alice_messages_can_be_paginated_in_room_3264@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-14 11:54:35
=== successfully completed test case
=== === Returned value: ok