=== Test case: rest_client_SUITE:messages_can_be_paginated_in_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.86650.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {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@1fbe638fdeaa.2024-02-15_09.57.53/big_tests.tests.rest_client_SUITE.logs/run.2024-02-15_10.13.17/rest_client_suite.messages_can_be_paginated_in_room.176515.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@1fbe638fdeaa.2024-02-15_09.57.53/big_tests.tests.rest_client_SUITE.logs/run.2024-02-15_10.13.17/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_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_amp => #{},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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1fbe638fdeaa.2024-02-15_09.57.53"

=== Started at 2024-02-15 10:13:17


*** CT 2024-02-15 10:13:17.992 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4726.html

*** User 2024-02-15 10:13:18.092 ***🔗
alicE_messages_can_be_paginated_in_room_3116@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-15 10:13:18.093 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fff9a1ad53b41906' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-15 10:13:18.093 ***🔗
alicE_messages_can_be_paginated_in_room_3116@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-15 10:13:18.093 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8zMTE2AG1hdHlncnlzYQ==</auth>



*** User 2024-02-15 10:13:18.103 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-15 10:13:18.103 ***🔗
alicE_messages_can_be_paginated_in_room_3116@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-15 10:13:18.108 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9ccc55e7a4e7eab' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_3116@localhost'>

*** User 2024-02-15 10:13:18.108 ***🔗
alicE_messages_can_be_paginated_in_room_3116@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-15 10:13:18.108 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 out
<iq type='set' id='9bfa35eb34b8e02e3d12800094cf2a8d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-15 10:13:18.109 ***🔗
alicE_messages_can_be_paginated_in_room_3116@localhost/res1 in
<iq id='9bfa35eb34b8e02e3d12800094cf2a8d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_messages_can_be_paginated_in_room_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-15 10:13:18.109 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 out
<iq type='set' id='29143c9335e229d7a15dabde4701af9f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-15 10:13:18.111 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_paginated_in_room_3116@localhost/res1' id='29143c9335e229d7a15dabde4701af9f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-15 10:13:18.111 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 out
<presence/>



*** User 2024-02-15 10:13:18.125 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 in
<presence from='alice_messages_can_be_paginated_in_room_3116@localhost/res1' to='alice_messages_can_be_paginated_in_room_3116@localhost/res1'/>



*** User 2024-02-15 10:13:18.126 ***🔗
bOb_messages_can_be_paginated_in_room_3116@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-15 10:13:18.126 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ffb07689d733c92' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-15 10:13:18.127 ***🔗
bOb_messages_can_be_paginated_in_room_3116@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-15 10:13:18.127 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMzExNgBtYWtyb2xpa2E=</auth>



*** User 2024-02-15 10:13:18.135 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-15 10:13:18.135 ***🔗
bOb_messages_can_be_paginated_in_room_3116@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-15 10:13:18.186 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9830aeeca11beeb' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_3116@localhost'>

*** User 2024-02-15 10:13:18.186 ***🔗
bOb_messages_can_be_paginated_in_room_3116@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-15 10:13:18.186 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 out
<iq type='set' id='2cee75a14d86931d59ae48a249e34a18'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-15 10:13:18.187 ***🔗
bOb_messages_can_be_paginated_in_room_3116@localhost/res1 in
<iq id='2cee75a14d86931d59ae48a249e34a18' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_messages_can_be_paginated_in_room_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-15 10:13:18.187 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 out
<iq type='set' id='0d3724ec637d28b4938d29c1cbafb971'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-15 10:13:18.189 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_paginated_in_room_3116@localhost/res1' id='0d3724ec637d28b4938d29c1cbafb971' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-15 10:13:18.190 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 out
<presence/>



*** User 2024-02-15 10:13:18.238 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 in
<presence from='bob_messages_can_be_paginated_in_room_3116@localhost/res1' to='bob_messages_can_be_paginated_in_room_3116@localhost/res1'/>



*** User 2024-02-15 10:13:18.333 ***🔗
REST request:
Code: 201
Req: {<0.87155.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac374e64762f06a7">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1707-991998-321256\"}">>,156,25885}
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_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.429 ***🔗
REST request:
Code: 204
Req: {<0.87316.0>,<<"/api/rooms/1707-991998-321256/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a73f594e4276f2e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3116@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>}],
         <<>>,80,42693}
Params: #{path => <<"/api/rooms/1707-991998-321256/users">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3116@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.429 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 in
<message from='1707-991998-321256@muclight.localhost' to='bob_messages_can_be_paginated_in_room_3116@localhost' id='273f1e24-4bf4-46cb-b518-a0101b83cf18' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1707-991998-407039</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3116@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-02-15 10:13:18.430 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 in
<message from='1707-991998-321256@muclight.localhost' to='alice_messages_can_be_paginated_in_room_3116@localhost' id='273f1e24-4bf4-46cb-b518-a0101b83cf18' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1707-991998-321240</prev-version>
		<version>1707-991998-407039</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3116@localhost</user>
	</x>
	<body/>
	<stanza-id by='1707-991998-321256@muclight.localhost' id='C4B8S1C08O01' xmlns='urn:xmpp:sid:0'/>
</message>


Could not find element wait_for_parallel_writer in Config.


*** User 2024-02-15 10:13:18.533 ***🔗
waiting for room_archive_size is done in 0 miliseconds
Could not find element archive_wait in Config.


*** User 2024-02-15 10:13:18.600 ***🔗
REST request:
Code: 200
Req: {<0.87525.0>,<<"/api/rooms/1707-991998-321256/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ed3d61c40df8c14">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1228">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"c6d0eb25 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1707732799000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"ccedd7eb day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1707732800000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"578edb7d day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1707819199000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"f6f8a0a8 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1707819200000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"4ce26565 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1707905599000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"6ac34438 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1707905600000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1707-991998-321256@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"type\":\"affiliation\",\"timestamp\":1707991998399,\"id\":\"273f1e24-4bf4-46cb-b518-a0101b83cf18\"}]">>,
         1354,4828}
Params: #{path => <<"/api/rooms/1707-991998-321256/messages?limit=10">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.620 ***🔗
REST request:
Code: 200
Req: {<0.87544.0>,<<"/api/rooms/1707-991998-321256/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8c62f7e2074989c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"560">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"4ce26565 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1707905599000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"6ac34438 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1707905600000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1707-991998-321256@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"type\":\"affiliation\",\"timestamp\":1707991998399,\"id\":\"273f1e24-4bf4-46cb-b518-a0101b83cf18\"}]">>,
         685,6897}
Params: #{path => <<"/api/rooms/1707-991998-321256/messages?limit=3">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.635 ***🔗
REST request:
Code: 200
Req: {<0.87560.0>,
      <<"/api/rooms/1707-991998-321256/messages?limit=4&before=1707905588000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14f14548a21a853e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"c6d0eb25 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1707732799000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"ccedd7eb day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1707732800000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"578edb7d day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1707819199000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"f6f8a0a8 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1707819200000,\"id\":\"undefined\"}]">>,
         794,4210}
Params: #{path =>
              <<"/api/rooms/1707-991998-321256/messages?limit=4&before=1707905588000">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.646 ***🔗
REST request:
Code: 200
Req: {<0.87573.0>,
      <<"/api/rooms/1707-991998-321256/messages?limit=2&before=1707905588000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d47c8748127d4dcd">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMxMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 15 Feb 2024 10:13:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"578edb7d day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1707819199000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3116@localhost\",\"body\":\"f6f8a0a8 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1707819200000,\"id\":\"undefined\"}]">>,
         460,2645}
Params: #{path =>
              <<"/api/rooms/1707-991998-321256/messages?limit=2&before=1707905588000">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3116@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-02-15 10:13:18.646 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 out
</stream:stream>

*** User 2024-02-15 10:13:18.646 ***🔗
bob_messages_can_be_paginated_in_room_3116@localhost/res1 in
</stream:stream>

*** User 2024-02-15 10:13:18.646 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 out
</stream:stream>

*** User 2024-02-15 10:13:18.646 ***🔗
alice_messages_can_be_paginated_in_room_3116@localhost/res1 in
</stream:stream>
*** CT 2024-02-15 10:13:18.649 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4727.html



=== Ended at 2024-02-15 10:13:18
=== successfully completed test case
=== === Returned value: ok