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

=== Config value:

    [{watchdog,<0.26600.1>},
     {muc_light_host,<<"muclight2.domain.example.com">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/rest_client_suite.messages_can_be_paginated_in_room.html"},
     {tc_group_properties,[{name,muc},{repeat_until_all_ok,3},pararell]},
     {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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_adhoc => [],mod_amp => [],mod_bosh => [],
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco => [{users_can_see_hidden_services,false}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster => [{backend,rdbms}],
        mod_sic => [],mod_stream_management => [],
        mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36"

=== Started at 2022-02-02 15:15:10


*** CT 2022-02-02 15:15:10.844 *** View log from node mongooseim@localhost when started mongooseim@localhost_2441.html
*** CT 2022-02-02 15:15:10.845 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_628.html

*** User 2022-02-02 15:15:10.848 ***
alicE_messages_can_be_paginated_in_room_1633@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 2022-02-02 15:15:10.849 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='210659484857ab59' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:10.849 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-02 15:15:10.849 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8xNjMzAG1hdHlncnlzYQ==</auth>



*** User 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@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 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d7fb0ca27c74a48' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<iq type='set' id='e25bee6229699aa3c6deb384570d0763'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:15:10.850 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<iq id='e25bee6229699aa3c6deb384570d0763' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:15:10.851 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<iq type='set' id='94dd03fb9a983dd1c51b812dbe2cf58b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:10.851 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<iq type='result' id='94dd03fb9a983dd1c51b812dbe2cf58b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:10.851 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:15:10.852 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<presence from='alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1' to='alice_messages_can_be_paginated_in_room_1633@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:15:10.853 ***
bOb_messages_can_be_paginated_in_room_1633@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 2022-02-02 15:15:10.853 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3975eebf40439fe0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:10.853 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-02 15:15:10.853 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMTYzMwBtYWtyb2xpa2E=</auth>



*** User 2022-02-02 15:15:10.854 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:15:10.854 ***
bOb_messages_can_be_paginated_in_room_1633@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 2022-02-02 15:15:10.854 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70e4a7d60309891d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:10.854 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-02-02 15:15:10.855 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<iq type='set' id='0723a6e17421e758393162394b420066'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:15:10.855 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<iq id='0723a6e17421e758393162394b420066' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:15:10.855 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<iq type='set' id='045057b0a45c8c25e3e7c9f70e98a7d7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:10.855 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<iq type='result' id='045057b0a45c8c25e3e7c9f70e98a7d7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:10.855 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:15:10.856 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<presence from='bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1' to='bob_messages_can_be_paginated_in_room_1633@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:15:10.864 ***
REST request:
Code: 200
Req: {<0.27242.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"27a3fd194580471a">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1643-814910-864394\"}">>,151,1004}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.875 ***
REST request:
Code: 204
Req: {<0.27248.1>,<<"/api/rooms/1643-814910-864394/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1729800397b4920f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_1633@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>}],
         <<>>,80,3748}
Params: #{body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_1633@domain.example.com\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-814910-864394/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.875 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<message from='1643-814910-864394@muclight2.domain.example.com' to='bob_messages_can_be_paginated_in_room_1633@domain.example.com' id='33c754a3-b5f9-401e-8690-c6624d8abdcd' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-814910-873062</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_1633@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-02-02 15:15:10.875 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
<message from='1643-814910-864394@muclight2.domain.example.com' to='alice_messages_can_be_paginated_in_room_1633@domain.example.com' id='33c754a3-b5f9-401e-8690-c6624d8abdcd' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-814910-864347</prev-version>
		<version>1643-814910-873062</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_1633@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1643-814910-864394@muclight2.domain.example.com' id='BLOAFFBCNJ81' 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 2022-02-02 15:15:10.893 ***
REST request:
Code: 200
Req: {<0.27254.1>,<<"/api/rooms/1643-814910-864394/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a55a5b85e6cd951d">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1301">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643555711000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"426e9d25 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643555712000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"0e6279e1 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643642111000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"4b9a5a2e day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643642112000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"5a5c68e9 day_offset=2 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643728511000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"aebde7e0 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643728512000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"dfa37c81 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_1633@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1643814910872,\"id\":\"33c754a3-b5f9-401e-8690-c6624d8abdcd\",\"from\":\"1643-814910-864394@muclight2.domain.example.com\",\"affiliation\":\"member\"}]">>,
         1427,1528}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1643-814910-864394/messages?limit=10">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.902 ***
REST request:
Code: 200
Req: {<0.27260.1>,<<"/api/rooms/1643-814910-864394/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b5cdcd7b8afc552c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"597">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643728511000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"aebde7e0 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643728512000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"dfa37c81 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_1633@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1643814910872,\"id\":\"33c754a3-b5f9-401e-8690-c6624d8abdcd\",\"from\":\"1643-814910-864394@muclight2.domain.example.com\",\"affiliation\":\"member\"}]">>,
         722,1497}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1643-814910-864394/messages?limit=3">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.911 ***
REST request:
Code: 200
Req: {<0.27266.1>,
      <<"/api/rooms/1643-814910-864394/messages?limit=4&before=1643728500000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8a42b10f1c97a9ed">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"705">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643555711000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"426e9d25 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643555712000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"0e6279e1 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643642111000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"4b9a5a2e day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643642112000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"5a5c68e9 day_offset=2 user_num=2\"}]">>,
         830,1667}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1643-814910-864394/messages?limit=4&before=1643728500000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.919 ***
REST request:
Code: 200
Req: {<0.27272.1>,
      <<"/api/rooms/1643-814910-864394/messages?limit=2&before=1643728500000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"832c5324e3c516c5">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE2MzNAZG9tYWluLmV4YW1wbGUuY29tOm1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"353">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643642111000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"4b9a5a2e day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643642112000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_1633@domain.example.com\",\"body\":\"5a5c68e9 day_offset=2 user_num=2\"}]">>,
         478,1439}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1633@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1643-814910-864394/messages?limit=2&before=1643728500000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:10.919 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:15:10.919 ***
bOb_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
</stream:stream>

*** User 2022-02-02 15:15:10.920 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:15:10.920 ***
alicE_messages_can_be_paginated_in_room_1633@domain.example.com/res1 in
</stream:stream>
*** CT 2022-02-02 15:15:10.922 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_628.html
*** CT 2022-02-02 15:15:10.923 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2442.html



=== Ended at 2022-02-02 15:15:10
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result