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

=== Config value:

    [{watchdog,<0.9445.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:37:02


*** CT 2022-01-27 15:37:02.628 *** View log from node mongooseim@localhost when started mongooseim@localhost_5813.html
*** CT 2022-01-27 15:37:02.628 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:37:02.637 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:02.638 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0923c1988145d78a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:02.638 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/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-01-27 15:37:02.638 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8yMTc1AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:37:02.639 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:02.639 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:02.639 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b678cca109e03aaf' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/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-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<iq type='set' id='b577fddfbba95f64d437189f7acbad17'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<iq id='b577fddfbba95f64d437189f7acbad17' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_can_be_paginated_in_room_2175@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<iq type='set' id='5297cbb53fe110aa7d35bf9c77488ba4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<iq type='result' id='5297cbb53fe110aa7d35bf9c77488ba4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:02.640 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:02.642 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<presence from='alicE_messages_can_be_paginated_in_room_2175@localhost/res1' to='alice_messages_can_be_paginated_in_room_2175@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:02.643 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:02.643 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2bd6ae81bbe3483c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:02.643 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/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-01-27 15:37:02.644 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMjE3NQBtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:37:02.644 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='afc6a76b4cd84936' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/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-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<iq type='set' id='8fc7ec0cebeadd75efa8cb2123ffb1cc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<iq id='8fc7ec0cebeadd75efa8cb2123ffb1cc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_can_be_paginated_in_room_2175@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:02.645 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<iq type='set' id='61f44e27d6533e0e56cf4deb4c519cd0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:02.646 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<iq type='result' id='61f44e27d6533e0e56cf4deb4c519cd0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:02.646 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:02.648 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<presence from='bOb_messages_can_be_paginated_in_room_2175@localhost/res1' to='bob_messages_can_be_paginated_in_room_2175@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.649 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.649678 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.659 ***
REST request:
Code: 200
Req: {<0.10033.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed88a31c67b53507">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1643-297822-659078\"}">>,151,1603}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.660 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.660728 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.676 ***
REST request:
Code: 204
Req: {<0.10038.2>,<<"/api/rooms/1643-297822-659078/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1cce9d7f4ce40c57">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2175@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>}],
         <<>>,80,9270}
Params: #{body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2175@localhost\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-297822-659078/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:02.676 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
<message from='1643-297822-659078@muclight.localhost' to='bob_messages_can_be_paginated_in_room_2175@localhost' id='0a22ce52-c5d7-4d7a-ae72-45fc120ce03a' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-297822-669039</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2175@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:37:02.676 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
<message from='1643-297822-659078@muclight.localhost' to='alice_messages_can_be_paginated_in_room_2175@localhost' id='0a22ce52-c5d7-4d7a-ae72-45fc120ce03a' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-297822-659045</prev-version>
		<version>1643-297822-669039</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2175@localhost</user>
	</x>
	<body/>
	<stanza-id by='1643-297822-659078@muclight.localhost' id='BLKI2RTFAM01' xmlns='urn:xmpp:sid:0'/>
</message>


Could not find element wait_for_parallel_writer in Config.

Could not find element archive_wait in Config.


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.711 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.711517 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.720 ***
REST request:
Code: 200
Req: {<0.10043.2>,<<"/api/rooms/1643-297822-659078/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b292e7427e85eca8">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1228">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643038623000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"8665a041 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643038624000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"9cde0415 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643125023000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"fa24654f day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643125024000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"dcb1aac2 day_offset=2 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643211423000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"38db6c23 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643211424000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"f547b112 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2175@localhost\",\"type\":\"affiliation\",\"timestamp\":1643297822668,\"id\":\"0a22ce52-c5d7-4d7a-ae72-45fc120ce03a\",\"from\":\"1643-297822-659078@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         1354,2456}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1643-297822-659078/messages?limit=10">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.721 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.721498 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.729 ***
REST request:
Code: 200
Req: {<0.10048.2>,<<"/api/rooms/1643-297822-659078/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8a3dbe6d212593fc">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"560">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643211423000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"38db6c23 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643211424000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"f547b112 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2175@localhost\",\"type\":\"affiliation\",\"timestamp\":1643297822668,\"id\":\"0a22ce52-c5d7-4d7a-ae72-45fc120ce03a\",\"from\":\"1643-297822-659078@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         685,2280}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1643-297822-659078/messages?limit=3">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.730 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.730758 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.738 ***
REST request:
Code: 200
Req: {<0.10053.2>,
      <<"/api/rooms/1643-297822-659078/messages?limit=4&before=1643211412000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e9169f05069c0718">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643038623000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"8665a041 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643038624000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"9cde0415 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1643125023000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"fa24654f day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643125024000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"dcb1aac2 day_offset=2 user_num=2\"}]">>,
         794,2275}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1643-297822-659078/messages?limit=4&before=1643211412000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-01-27 15:37:02.740 ***
=WARNING REPORT==== 27-Jan-2022::15:37:02.740135 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:02.749 ***
REST request:
Code: 200
Req: {<0.10058.2>,
      <<"/api/rooms/1643-297822-659078/messages?limit=2&before=1643211412000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8272c26f7bdde33f">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIxNzVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1643125023000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"fa24654f day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1643125024000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2175@localhost\",\"body\":\"dcb1aac2 day_offset=2 user_num=2\"}]">>,
         460,2375}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2175@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1643-297822-659078/messages?limit=2&before=1643211412000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:02.749 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:02.749 ***
bOb_messages_can_be_paginated_in_room_2175@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:02.749 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:02.749 ***
alicE_messages_can_be_paginated_in_room_2175@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:37:02.755 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:37:02.756 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5814.html



=== Ended at 2022-01-27 15:37:02
=== successfully completed test case
=== === Returned value: ok


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