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

=== Config value:

    [{watchdog,<0.88806.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@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/rest_client_suite.messages_can_be_paginated_in_room.120836.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@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/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_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_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_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@746355319fb9.2024-03-21_07.35.41"

=== Started at 2024-03-21 07:51:43


*** CT 2024-03-21 07:51:43.402 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5682.html

*** User 2024-03-21 07:51:43.476 ***🔗
alicE_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.477 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df5ff8ea54c5f1e2' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:43.477 ***🔗
alicE_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.477 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8zMjE2AG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 07:51:43.480 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:43.480 ***🔗
alicE_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.481 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5cb540664deb271' from='localhost' version='1.0' xml:lang='en' to='alice_messages_can_be_paginated_in_room_3216@localhost'>

*** User 2024-03-21 07:51:43.481 ***🔗
alicE_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.481 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 out
<iq type='set' id='2094bb49ac2f2b90e579eb67ee134d27'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:43.481 ***🔗
alicE_messages_can_be_paginated_in_room_3216@localhost/res1 in
<iq id='2094bb49ac2f2b90e579eb67ee134d27' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_messages_can_be_paginated_in_room_3216@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:43.481 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 out
<iq type='set' id='4c9095bf5848f796a2f30403d41463e9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:43.483 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 in
<iq from='localhost' to='alice_messages_can_be_paginated_in_room_3216@localhost/res1' id='4c9095bf5848f796a2f30403d41463e9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:43.483 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:43.552 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 in
<presence from='alice_messages_can_be_paginated_in_room_3216@localhost/res1' to='alice_messages_can_be_paginated_in_room_3216@localhost/res1'/>



*** User 2024-03-21 07:51:43.555 ***🔗
bOb_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.556 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44fc6f292ea78877' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:43.556 ***🔗
bOb_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.556 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMzIxNgBtYWtyb2xpa2E=</auth>



*** User 2024-03-21 07:51:43.567 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:43.567 ***🔗
bOb_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.568 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b08c3342a8347bde' from='localhost' version='1.0' xml:lang='en' to='bob_messages_can_be_paginated_in_room_3216@localhost'>

*** User 2024-03-21 07:51:43.568 ***🔗
bOb_messages_can_be_paginated_in_room_3216@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-03-21 07:51:43.568 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 out
<iq type='set' id='b7e91b4077e8a58025c400d2109e70d3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:43.568 ***🔗
bOb_messages_can_be_paginated_in_room_3216@localhost/res1 in
<iq id='b7e91b4077e8a58025c400d2109e70d3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_messages_can_be_paginated_in_room_3216@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:43.568 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 out
<iq type='set' id='d8653502c99fc3e4e63c32d08816881c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:43.569 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 in
<iq from='localhost' to='bob_messages_can_be_paginated_in_room_3216@localhost/res1' id='d8653502c99fc3e4e63c32d08816881c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:43.569 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:43.579 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 in
<presence from='bob_messages_can_be_paginated_in_room_3216@localhost/res1' to='bob_messages_can_be_paginated_in_room_3216@localhost/res1'/>



*** User 2024-03-21 07:51:43.663 ***🔗
REST request:
Code: 201
Req: {<0.89257.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f48b69af663e3f4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"25">>}],
         <<"{\"id\":\"1711-7503-652261\"}">>,154,76002}
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_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.771 ***🔗
REST request:
Code: 204
Req: {<0.89366.0>,<<"/api/rooms/1711-7503-652261/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8db598c30c2f02a0">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3216@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>}],
         <<>>,80,100464}
Params: #{path => <<"/api/rooms/1711-7503-652261/users">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_3216@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.771 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 in
<message from='1711-7503-652261@muclight.localhost' to='bob_messages_can_be_paginated_in_room_3216@localhost' id='419005a5-a7d4-4e14-bc86-5cc3bc2d483a' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1711-7503-696909</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3216@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-21 07:51:43.771 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 in
<message from='1711-7503-652261@muclight.localhost' to='alice_messages_can_be_paginated_in_room_3216@localhost' id='419005a5-a7d4-4e14-bc86-5cc3bc2d483a' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1711-7503-652251</prev-version>
		<version>1711-7503-696909</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_3216@localhost</user>
	</x>
	<body/>
	<stanza-id by='1711-7503-652261@muclight.localhost' id='C516V9RIJSG1' 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-21 07:51:43.866 ***🔗
waiting for room_archive_size is done in 0 miliseconds

*** User 2024-03-21 07:51:43.879 ***🔗
REST request:
Code: 200
Req: {<0.89656.0>,<<"/api/rooms/1711-7503-652261/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c3a1c42d7fe53888">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1226">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"9c6fec0a day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1710748304000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"0b601df7 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1710748305000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"131b0b09 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710834704000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"7abc5e76 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710834705000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"ed34a2d2 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1710921104000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"1adfaee1 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1710921105000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1711-7503-652261@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"type\":\"affiliation\",\"timestamp\":1711007503690,\"id\":\"419005a5-a7d4-4e14-bc86-5cc3bc2d483a\"}]">>,
         1352,3767}
Params: #{path => <<"/api/rooms/1711-7503-652261/messages?limit=10">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.889 ***🔗
REST request:
Code: 200
Req: {<0.89685.0>,<<"/api/rooms/1711-7503-652261/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2822889026dbcae1">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"558">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"ed34a2d2 day_offset=1 user_num=1\",\"type\":\"message\",\"timestamp\":1710921104000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"1adfaee1 day_offset=1 user_num=2\",\"type\":\"message\",\"timestamp\":1710921105000,\"id\":\"undefined\"},{\"affiliation\":\"member\",\"from\":\"1711-7503-652261@muclight.localhost\",\"user\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"type\":\"affiliation\",\"timestamp\":1711007503690,\"id\":\"419005a5-a7d4-4e14-bc86-5cc3bc2d483a\"}]">>,
         683,3179}
Params: #{path => <<"/api/rooms/1711-7503-652261/messages?limit=3">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.897 ***🔗
REST request:
Code: 200
Req: {<0.89711.0>,
      <<"/api/rooms/1711-7503-652261/messages?limit=4&before=1710921093000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c85428c639d6e54f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"9c6fec0a day_offset=3 user_num=1\",\"type\":\"message\",\"timestamp\":1710748304000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"0b601df7 day_offset=3 user_num=2\",\"type\":\"message\",\"timestamp\":1710748305000,\"id\":\"undefined\"},{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"131b0b09 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710834704000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"7abc5e76 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710834705000,\"id\":\"undefined\"}]">>,
         794,2046}
Params: #{path =>
              <<"/api/rooms/1711-7503-652261/messages?limit=4&before=1710921093000">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.959 ***🔗
REST request:
Code: 200
Req: {<0.89727.0>,
      <<"/api/rooms/1711-7503-652261/messages?limit=2&before=1710921093000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"66fb54d964c625c9">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzMyMTZAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"from\":\"alice_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"131b0b09 day_offset=2 user_num=1\",\"type\":\"message\",\"timestamp\":1710834704000,\"id\":\"undefined\"},{\"from\":\"bob_messages_can_be_paginated_in_room_3216@localhost\",\"body\":\"7abc5e76 day_offset=2 user_num=2\",\"type\":\"message\",\"timestamp\":1710834705000,\"id\":\"undefined\"}]">>,
         460,2733}
Params: #{path =>
              <<"/api/rooms/1711-7503-652261/messages?limit=2&before=1710921093000">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_3216@localhost">>,
               <<"matygrysa">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:43.960 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:43.960 ***🔗
bob_messages_can_be_paginated_in_room_3216@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:51:43.960 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:43.960 ***🔗
alice_messages_can_be_paginated_in_room_3216@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:51:43.962 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5683.html



=== Ended at 2024-03-21 07:51:43
=== successfully completed test case
=== === Returned value: ok