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

=== Config value:

    [{watchdog,<0.11526.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/rest_client_suite.messages_can_be_paginated_in_room.html"},
     {tc_group_properties,[{name,muc},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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_client_SUITE.logs/run.2022-03-07_16.09.36/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => [],
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              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,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55"

=== Started at 2022-03-07 16:09:38


*** CT 2022-03-07 16:09:38.220 *** View log from node mongooseim@localhost when started mongooseim@localhost_4923.html
*** CT 2022-03-07 16:09:38.220 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1909.html

*** User 2022-03-07 16:09:38.225 ***
alicE_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.226 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce1c36d6852ab7a8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:38.226 ***
alicE_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.226 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8yMjQyAG1hdHlncnlzYQ==</auth>



*** User 2022-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cfa1d86c3585c5d6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 out
<iq type='set' id='0dbf2a14daf9646d0d7ef1ec577ef7c1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:38.227 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<iq id='0dbf2a14daf9646d0d7ef1ec577ef7c1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_can_be_paginated_in_room_2242@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:38.228 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 out
<iq type='set' id='45f3c4ff02f6f2bd1000ac56fe26b051'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:38.228 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<iq type='result' id='45f3c4ff02f6f2bd1000ac56fe26b051'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:38.228 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:38.231 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<presence from='alicE_messages_can_be_paginated_in_room_2242@localhost/res1' to='alice_messages_can_be_paginated_in_room_2242@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:38.231 ***
bOb_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.232 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49c867f27eb7dac3' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:38.232 ***
bOb_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.232 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMjI0MgBtYWtyb2xpa2E=</auth>



*** User 2022-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='58c906e1479d0d6e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 out
<iq type='set' id='0b35e4612c04997580c283c932391e89'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<iq id='0b35e4612c04997580c283c932391e89' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_can_be_paginated_in_room_2242@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:38.233 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 out
<iq type='set' id='61f203af9372a428797185492273a279'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:38.234 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<iq type='result' id='61f203af9372a428797185492273a279'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:38.234 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:38.236 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<presence from='bOb_messages_can_be_paginated_in_room_2242@localhost/res1' to='bob_messages_can_be_paginated_in_room_2242@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-03-07 16:09:38.237 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.237841 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.245 ***
REST request:
Code: 200
Req: {<0.12114.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4214c23d2a26b3b5">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1646-669378-244939\"}">>,151,1320}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@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-03-07 16:09:38.246 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.246614 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.257 ***
REST request:
Code: 204
Req: {<0.12119.2>,<<"/api/rooms/1646-669378-244939/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ace36e4602adc81b">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2242@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>}],
         <<>>,80,4614}
Params: #{body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2242@localhost\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-669378-244939/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:38.257 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
<message from='1646-669378-244939@muclight.localhost' to='bob_messages_can_be_paginated_in_room_2242@localhost' id='ab155eb9-d8ac-4358-b477-b029d67128bc' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-669378-254151</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2242@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-07 16:09:38.257 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
<message from='1646-669378-244939@muclight.localhost' to='alice_messages_can_be_paginated_in_room_2242@localhost' id='ab155eb9-d8ac-4358-b477-b029d67128bc' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-669378-244904</prev-version>
		<version>1646-669378-254151</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2242@localhost</user>
	</x>
	<body/>
	<stanza-id by='1646-669378-244939@muclight.localhost' id='BMD32TD76C81' 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-03-07 16:09:38.268 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.268784 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.277 ***
REST request:
Code: 200
Req: {<0.12124.2>,<<"/api/rooms/1646-669378-244939/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5252cedff8912047">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1228">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1646410179000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"4c2d3bf5 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646410180000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"0a43f847 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1646496579000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"9b70d37a day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646496580000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"fd505c7b day_offset=2 user_num=2\"},{\"type\":\"message\",\"timestamp\":1646582979000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"f51c68fa day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646582980000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"2a1bddd8 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2242@localhost\",\"type\":\"affiliation\",\"timestamp\":1646669378253,\"id\":\"ab155eb9-d8ac-4358-b477-b029d67128bc\",\"from\":\"1646-669378-244939@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         1354,2074}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1646-669378-244939/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-03-07 16:09:38.278 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.278562 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.286 ***
REST request:
Code: 200
Req: {<0.12129.2>,<<"/api/rooms/1646-669378-244939/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1cc2d05f992a552">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"560">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1646582979000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"f51c68fa day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646582980000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"2a1bddd8 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2242@localhost\",\"type\":\"affiliation\",\"timestamp\":1646669378253,\"id\":\"ab155eb9-d8ac-4358-b477-b029d67128bc\",\"from\":\"1646-669378-244939@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         685,1802}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1646-669378-244939/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-03-07 16:09:38.287 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.287403 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.295 ***
REST request:
Code: 200
Req: {<0.12134.2>,
      <<"/api/rooms/1646-669378-244939/messages?limit=4&before=1646582968000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ec4dbd4a938eed9">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1646410179000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"4c2d3bf5 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646410180000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"0a43f847 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1646496579000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"9b70d37a day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646496580000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"fd505c7b day_offset=2 user_num=2\"}]">>,
         794,1726}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1646-669378-244939/messages?limit=4&before=1646582968000">>,
          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-03-07 16:09:38.296 ***
=WARNING REPORT==== 7-Mar-2022::16:09:38.296684 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-07 16:09:38.304 ***
REST request:
Code: 200
Req: {<0.12139.2>,
      <<"/api/rooms/1646-669378-244939/messages?limit=2&before=1646582968000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"38c702a83d0d51ac">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzIyNDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1646496579000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"9b70d37a day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1646496580000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2242@localhost\",\"body\":\"fd505c7b day_offset=2 user_num=2\"}]">>,
         460,1753}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2242@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1646-669378-244939/messages?limit=2&before=1646582968000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:38.304 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:38.304 ***
bOb_messages_can_be_paginated_in_room_2242@localhost/res1 in
</stream:stream>

*** User 2022-03-07 16:09:38.304 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:38.305 ***
alicE_messages_can_be_paginated_in_room_2242@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 16:09:38.307 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1909.html
*** CT 2022-03-07 16:09:38.308 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4924.html



=== Ended at 2022-03-07 16:09:38
=== successfully completed test case
=== === Returned value: ok


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