=== Test case: rest_client_SUITE:messages_can_be_paginated_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.76156.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.rest_client_SUITE.logs/run.2024-03-18_09.38.50/rest_client_suite.messages_can_be_paginated_in_room.79621.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.rest_client_SUITE.logs/run.2024-03-18_09.38.50/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_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_amp => #{},
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@a950b60ae868.2024-03-18_09.25.02"
=== Started at 2024-03-18 09:38:51
*** User 2024-03-18 09:38:51.502 ***🔗
alicE_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.504 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef2445d8bf50d553' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:51.504 ***🔗
alicE_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.504 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8yOTgwAG1hdHlncnlzYQ==</auth>
*** User 2024-03-18 09:38:51.510 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:51.511 ***🔗
alicE_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.511 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0d6bffa2197a2ed' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_2980@domain.example.com'>
*** User 2024-03-18 09:38:51.511 ***🔗
alicE_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.511 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<iq type='set' id='14e954ae1d263c86fb5f77426ca164ee'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:51.512 ***🔗
alicE_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<iq id='14e954ae1d263c86fb5f77426ca164ee' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:51.512 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<iq type='set' id='6e1808631f8db4e4e649474db4c34e01'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:51.513 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1' id='6e1808631f8db4e4e649474db4c34e01' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:51.513 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:51.526 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<presence from='alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1' to='alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1'/>
*** User 2024-03-18 09:38:51.527 ***🔗
bOb_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.528 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1121f0e8615db697' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:51.529 ***🔗
bOb_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.529 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMjk4MABtYWtyb2xpa2E=</auth>
*** User 2024-03-18 09:38:51.531 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:51.531 ***🔗
bOb_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.533 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='847581789f20e026' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_2980@domain.example.com'>
*** User 2024-03-18 09:38:51.533 ***🔗
bOb_messages_can_be_paginated_in_room_2980@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-03-18 09:38:51.533 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<iq type='set' id='3e94e9ff274c42d391cefcd05186d217'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:51.534 ***🔗
bOb_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<iq id='3e94e9ff274c42d391cefcd05186d217' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:51.534 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<iq type='set' id='a4bd102510fc8e9c7cdb7c1c5618b77d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:51.535 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1' id='a4bd102510fc8e9c7cdb7c1c5618b77d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:51.535 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:51.606 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<presence from='bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1' to='bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1'/>
*** User 2024-03-18 09:38:51.650 ***🔗
REST request:
Code: 201
Req: {<0.76648.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9201e99183a8a6c2">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1710-754731-643439\"}">>,156,15694}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-03-18 09:38:51.746 ***🔗
REST request:
Code: 204
Req: {<0.76755.0>,<<"/api/rooms/1710-754731-643439/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a18cee7d8c5a5a21">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>}],
<<>>,80,89981}
Params: #{path => <<"/api/rooms/1710-754731-643439/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body =>
<<"{\"user\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\"}">>,
method => <<"POST">>,role => client,return_headers => true}
*** User 2024-03-18 09:38:51.747 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<message from='1710-754731-643439@muclight.domain.example.com' to='bob_messages_can_be_paginated_in_room_2980@domain.example.com' id='593e6dcb-9f9c-41b6-a173-3d3a782e00cd' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1710-754731-728870</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_2980@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-03-18 09:38:51.747 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
<message from='1710-754731-643439@muclight.domain.example.com' to='alice_messages_can_be_paginated_in_room_2980@domain.example.com' id='593e6dcb-9f9c-41b6-a173-3d3a782e00cd' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1710-754731-643430</prev-version>
<version>1710-754731-728870</version>
<user affiliation='member'>bob_messages_can_be_paginated_in_room_2980@domain.example.com</user>
</x>
<body/>
<stanza-id by='1710-754731-643439@muclight.domain.example.com' id='C4VC40AK2B01' 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-03-18 09:38:51.832 ***🔗
waiting for room_archive_size is done in 0 miliseconds
*** User 2024-03-18 09:38:51.848 ***🔗
REST request:
Code: 200
Req: {<0.77037.0>,<<"/api/rooms/1710-754731-643439/messages?limit=10">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ea39dd76d41e976">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"1300">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"4f4511dc day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1710495532000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"69f127c3 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1710495533000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"92239c91 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710581932000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"c36c04b4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710581933000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"ab80649a day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1710668332000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"ea33af14 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1710668333000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1710-754731-643439@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1710754731737,\"id\":\"593e6dcb-9f9c-41b6-a173-3d3a782e00cd\"}]">>,
1426,7165}
Params: #{path => <<"/api/rooms/1710-754731-643439/messages?limit=10">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:51.910 ***🔗
REST request:
Code: 200
Req: {<0.77062.0>,<<"/api/rooms/1710-754731-643439/messages?limit=3">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"412c6a0561af75f4">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"596">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"ab80649a day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1710668332000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"ea33af14 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1710668333000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1710-754731-643439@muclight.domain.example.com\",\"user\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1710754731737,\"id\":\"593e6dcb-9f9c-41b6-a173-3d3a782e00cd\"}]">>,
721,2078}
Params: #{path => <<"/api/rooms/1710-754731-643439/messages?limit=3">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:51.917 ***🔗
REST request:
Code: 200
Req: {<0.77073.0>,
<<"/api/rooms/1710-754731-643439/messages?limit=4&before=1710668321000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c8d1ab898b1140d6">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"705">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"4f4511dc day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1710495532000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"69f127c3 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1710495533000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"92239c91 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710581932000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"c36c04b4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710581933000,\"id\":\"undefined\"}]">>,
830,2042}
Params: #{path =>
<<"/api/rooms/1710-754731-643439/messages?limit=4&before=1710668321000">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:51.926 ***🔗
REST request:
Code: 200
Req: {<0.77082.0>,
<<"/api/rooms/1710-754731-643439/messages?limit=2&before=1710668321000">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8523d17ed509c70c">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI5ODBAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 18 Mar 2024 09:38:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"353">>}],
<<"[{\"from\":\"alice_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"92239c91 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710581932000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_2980@domain.example.com\",\"body\":\"c36c04b4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710581933000,\"id\":\"undefined\"}]">>,
478,2803}
Params: #{path =>
<<"/api/rooms/1710-754731-643439/messages?limit=2&before=1710668321000">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_can_be_paginated_in_room_2980@domain.example.com">>,
<<"matygrysa">>},
body => <<>>,method => <<"GET">>,role => client,
return_headers => true}
*** User 2024-03-18 09:38:51.926 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:51.927 ***🔗
bob_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:38:51.927 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:51.928 ***🔗
alice_messages_can_be_paginated_in_room_2980@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-18 09:38:51
=== successfully completed test case
=== === Returned value: ok