=== Test case: rest_client_SUITE:messages_can_be_paginated_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.71767.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.23.12/rest_client_suite.messages_can_be_paginated_in_room.50949.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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.23.12/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_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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@9f12fc69b406.2023-11-17_15.10.18"
=== Started at 2023-11-17 15:23:12
*** User 2023-11-17 15:23:12.925 ***🔗
alicE_messages_can_be_paginated_in_room_2683@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-17 15:23:12.926 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dda145b5bb43f5db' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:23:12.926 ***🔗
alicE_messages_can_be_paginated_in_room_2683@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-17 15:23:12.926 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8yNjgzAG1hdHlncnlzYQ==</auth>
*** User 2023-11-17 15:23:12.928 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:23:12.928 ***🔗
alicE_messages_can_be_paginated_in_room_2683@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-17 15:23:12.928 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be5f2a4840416a1f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_2683@domain.example.com'>
*** User 2023-11-17 15:23:12.928 ***🔗
alicE_messages_can_be_paginated_in_room_2683@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-17 15:23:12.928 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<iq type='set' id='85fd45f82d6b384a988145dbf774fcdc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:23:12.929 ***🔗
alicE_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<iq id='85fd45f82d6b384a988145dbf774fcdc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:23:12.929 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<iq type='set' id='08af17d146173cd716b635726acba93f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:12.930 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1' id='08af17d146173cd716b635726acba93f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:12.930 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:23:12.936 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<presence from='alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1' to='alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1'/>
*** User 2023-11-17 15:23:12.937 ***🔗
bOb_messages_can_be_paginated_in_room_2683@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-17 15:23:12.937 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e803efc5f041ded' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:23:12.937 ***🔗
bOb_messages_can_be_paginated_in_room_2683@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-17 15:23:12.938 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMjY4MwBtYWtyb2xpa2E=</auth>
*** User 2023-11-17 15:23:12.940 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:23:12.940 ***🔗
bOb_messages_can_be_paginated_in_room_2683@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-17 15:23:12.940 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83ee5c02e2a7366d' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_2683@domain.example.com'>
*** User 2023-11-17 15:23:12.940 ***🔗
bOb_messages_can_be_paginated_in_room_2683@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-17 15:23:12.940 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<iq type='set' id='32fdd56c14a3d63a06d3a65548a17e9e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:23:12.941 ***🔗
bOb_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<iq id='32fdd56c14a3d63a06d3a65548a17e9e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:23:12.941 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<iq type='set' id='676a122fce0a5e83d134281449967089'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:12.941 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1' id='676a122fce0a5e83d134281449967089' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:12.942 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:23:12.946 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<presence from='bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1' to='bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1'/>
*** User 2023-11-17 15:23:13.025 ***🔗
REST request:
Code: 201
Req: {<0.72196.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"299657b75e6ac481">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"{\"id\":\"1700-234593-22842\"}">>,155,6862}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:23:13.129 ***🔗
REST request:
Code: 204
Req: {<0.72273.0>,<<"/api/rooms/1700-234593-22842/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1aa3509154d346f6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:13 GMT">>}],
<<>>,80,95822}
Params: #{path => <<"/api/rooms/1700-234593-22842/users">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:23:13.129 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<message from='1700-234593-22842@muclight.domain.example.com' to='bob_messages_can_be_paginated_in_room_2683@domain.example.com' id='19d5d759-f87c-4f17-91a4-b3977453c502' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1700-234593-119173</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_2683@domain.example.com</user>
</x>
<body/>
</message>
*** User 2023-11-17 15:23:13.129 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
<message from='1700-234593-22842@muclight.domain.example.com' to='alice_messages_can_be_paginated_in_room_2683@domain.example.com' id='19d5d759-f87c-4f17-91a4-b3977453c502' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1700-234593-22832</prev-version>
<version>1700-234593-119173</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_2683@domain.example.com</user>
</x>
<body/>
<stanza-id by='1700-234593-22842@muclight.domain.example.com' id='C2IQMRQ1NUG1' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element wait_for_parallel_writer in Config.
*** User 2023-11-17 15:23:13.228 ***🔗
waiting for room_archive_size is done in 0 miliseconds
Could not find element archive_wait in Config.
*** User 2023-11-17 15:23:13.236 ***🔗
REST request:
Code: 200
Req: {<0.72621.0>,<<"/api/rooms/1700-234593-22842/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b5991454fda5591">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"1299">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"be6d8b34 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1699975394000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"ba5ed99c day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1699975395000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"18924c28 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1700061794000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"21ffb050 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1700061795000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"91d41df5 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1700148194000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"be1f7fcf day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1700148195000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1700-234593-22842@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1700234593049,\"id\":\"19d5d759-f87c-4f17-91a4-b3977453c502\"}]">>,
1425,2868}
Params: #{path => <<"/api/rooms/1700-234593-22842/messages?limit=10">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2023-11-17 15:23:13.243 ***🔗
REST request:
Code: 200
Req: {<0.72650.0>,<<"/api/rooms/1700-234593-22842/messages?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"962f5766bc4e81c7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"595">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"91d41df5 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1700148194000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"be1f7fcf day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1700148195000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1700-234593-22842@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1700234593049,\"id\":\"19d5d759-f87c-4f17-91a4-b3977453c502\"}]">>,
720,2012}
Params: #{path => <<"/api/rooms/1700-234593-22842/messages?limit=3">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2023-11-17 15:23:13.249 ***🔗
REST request:
Code: 200
Req: {<0.72671.0>,
<<"/api/rooms/1700-234593-22842/messages?limit=4&before=1700148183000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be1bf0f151bbdce7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"705">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"be6d8b34 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1699975394000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"ba5ed99c day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1699975395000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"18924c28 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1700061794000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"21ffb050 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1700061795000,\"id\":\"undefined\"}]">>,
830,2015}
Params: #{path =>
<<"/api/rooms/1700-234593-22842/messages?limit=4&before=1700148183000">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2023-11-17 15:23:13.319 ***🔗
REST request:
Code: 200
Req: {<0.72689.0>,
<<"/api/rooms/1700-234593-22842/messages?limit=2&before=1700148183000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ab7141cd30a1de6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI2ODNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"353">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"18924c28 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1700061794000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2683@domain.example.com\",\"body\":\"21ffb050 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1700061795000,\"id\":\"undefined\"}]">>,
478,2815}
Params: #{path =>
<<"/api/rooms/1700-234593-22842/messages?limit=2&before=1700148183000">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"alice_messages_can_be_paginated_in_room_2683@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,role => client,return_headers => true}
*** User 2023-11-17 15:23:13.319 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:23:13.319 ***🔗
bob_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:23:13.319 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:23:13.320 ***🔗
alice_messages_can_be_paginated_in_room_2683@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:23:13
=== successfully completed test case
=== === Returned value: ok