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

=== Config value:

    [{watchdog,<0.88172.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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/rest_client_suite.messages_can_be_paginated_in_room.176643.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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@de34115c687f.2024-04-10_12.44.09"

=== Started at 2024-04-10 12:58:40


*** CT 2024-04-10 12:58:40.378 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4738.html

*** User 2024-04-10 12:58:40.483 ***🔗
alicE_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.484 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3af972594c813872' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:40.484 ***🔗
alicE_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.484 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8zMjE0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-10 12:58:40.487 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:40.488 ***🔗
alicE_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.488 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1b9bdea22d50ab0' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_3214@localhost'>

*** User 2024-04-10 12:58:40.488 ***🔗
alicE_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.488 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 out
<iq type='set' id='d166fff3f239e6d000028a7b46ac00b6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:40.489 ***🔗
alicE_messages_can_be_paginated_in_room_3214@localhost/res1 in
<iq id='d166fff3f239e6d000028a7b46ac00b6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_messages_can_be_paginated_in_room_3214@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:40.489 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 out
<iq type='set' id='9a933bfe7ac728d1c373943bf6885e00'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:40.491 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_paginated_in_room_3214@localhost/res1' id='9a933bfe7ac728d1c373943bf6885e00' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:40.491 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:40.567 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 in
<presence from='alice_messages_can_be_paginated_in_room_3214@localhost/res1' to='alice_messages_can_be_paginated_in_room_3214@localhost/res1'/>



*** User 2024-04-10 12:58:40.568 ***🔗
bOb_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.568 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa5682e4fa4bc589' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:40.568 ***🔗
bOb_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.568 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMzIxNABtYWtyb2xpa2E=</auth>



*** User 2024-04-10 12:58:40.573 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:40.573 ***🔗
bOb_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.574 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='817de72058d99f22' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_3214@localhost'>

*** User 2024-04-10 12:58:40.575 ***🔗
bOb_messages_can_be_paginated_in_room_3214@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-04-10 12:58:40.575 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 out
<iq type='set' id='f5067f5afe5468883facc204ddbae892'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:40.577 ***🔗
bOb_messages_can_be_paginated_in_room_3214@localhost/res1 in
<iq id='f5067f5afe5468883facc204ddbae892' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_messages_can_be_paginated_in_room_3214@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:40.577 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 out
<iq type='set' id='07101142c6642aefd6de556d12ed9506'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:40.580 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_paginated_in_room_3214@localhost/res1' id='07101142c6642aefd6de556d12ed9506' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:40.580 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:40.585 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 in
<presence from='bob_messages_can_be_paginated_in_room_3214@localhost/res1' to='bob_messages_can_be_paginated_in_room_3214@localhost/res1'/>



*** User 2024-04-10 12:58:40.600 ***🔗
REST request:
Code: 201
Req: {<0.88764.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"deaa2345df13a091">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1712-753920-593721\"}">>,156,8815}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          return_headers => true}


*** User 2024-04-10 12:58:40.690 ***🔗
REST request:
Code: 204
Req: {<0.88849.0>,<<"/api/rooms/1712-753920-593721/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9a19b347f203738">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3214@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>}],
         <<>>,80,82291}
Params: #{path => <<"/api/rooms/1712-753920-593721/users">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3214@localhost\"}">>,
          return_headers => true}


*** User 2024-04-10 12:58:40.690 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 in
<message from='1712-753920-593721@muclight.localhost' to='bob_messages_can_be_paginated_in_room_3214@localhost' id='7899a2a2-2aec-44c3-96af-6c6d4babd1f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1712-753920-678988</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3214@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-04-10 12:58:40.690 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 in
<message from='1712-753920-593721@muclight.localhost' to='alice_messages_can_be_paginated_in_room_3214@localhost' id='7899a2a2-2aec-44c3-96af-6c6d4babd1f8' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1712-753920-593714</prev-version>
		<version>1712-753920-678988</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3214@localhost</user>
	</x>
	<body/>
	<stanza-id by='1712-753920-593721@muclight.localhost' id='C5DTJ43O0T81' 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-10 12:58:40.771 ***🔗
waiting for room_archive_size is done in 0 miliseconds

*** User 2024-04-10 12:58:40.779 ***🔗
REST request:
Code: 200
Req: {<0.89055.0>,<<"/api/rooms/1712-753920-593721/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49925ebc0367b33f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1228">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"8e016635 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1712494721000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"f9ad2d81 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1712494722000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"32285579 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1712581121000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"8fa46eb4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1712581122000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"e35cbbdc day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1712667521000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"70ab7ad2 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1712667522000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1712-753920-593721@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"type\":\"affiliation\",\"timestamp\":1712753920671,\"id\":\"7899a2a2-2aec-44c3-96af-6c6d4babd1f8\"}]">>,
         1354,2005}
Params: #{path => <<"/api/rooms/1712-753920-593721/messages?limit=10">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-10 12:58:40.786 ***🔗
REST request:
Code: 200
Req: {<0.89073.0>,<<"/api/rooms/1712-753920-593721/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"66b8da628af1253e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"560">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"e35cbbdc day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1712667521000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"70ab7ad2 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1712667522000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1712-753920-593721@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"type\":\"affiliation\",\"timestamp\":1712753920671,\"id\":\"7899a2a2-2aec-44c3-96af-6c6d4babd1f8\"}]">>,
         685,1713}
Params: #{path => <<"/api/rooms/1712-753920-593721/messages?limit=3">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-10 12:58:40.793 ***🔗
REST request:
Code: 200
Req: {<0.89089.0>,
      <<"/api/rooms/1712-753920-593721/messages?limit=4&before=1712667510000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c66043a25fd83df3">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"8e016635 day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1712494721000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"f9ad2d81 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1712494722000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"32285579 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1712581121000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"8fa46eb4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1712581122000,\"id\":\"undefined\"}]">>,
         794,1991}
Params: #{path =>
              <<"/api/rooms/1712-753920-593721/messages?limit=4&before=1712667510000">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-10 12:58:40.799 ***🔗
REST request:
Code: 200
Req: {<0.89098.0>,
      <<"/api/rooms/1712-753920-593721/messages?limit=2&before=1712667510000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1bbb26a3a2ea529">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"32285579 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1712581121000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3214@localhost\",\"body\":\"8fa46eb4 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1712581122000,\"id\":\"undefined\"}]">>,
         460,1894}
Params: #{path =>
              <<"/api/rooms/1712-753920-593721/messages?limit=2&before=1712667510000">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3214@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-10 12:58:40.799 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:40.799 ***🔗
bob_messages_can_be_paginated_in_room_3214@localhost/res1 in
</stream:stream>

*** User 2024-04-10 12:58:40.799 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:40.800 ***🔗
alice_messages_can_be_paginated_in_room_3214@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 12:58:40.802 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4739.html



=== Ended at 2024-04-10 12:58:40
=== successfully completed test case
=== === Returned value: ok