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

=== Config value:

    [{watchdog,<0.15785.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@f547f21cc62a.2022-05-11_08.56.42/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.09.27/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@f547f21cc62a.2022-05-11_08.56.42/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.09.27/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,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        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"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f547f21cc62a.2022-05-11_08.56.42"

=== Started at 2022-05-11 09:09:29


*** CT 2022-05-11 09:09:29.015 *** View log from node mongooseim@localhost when started mongooseim@localhost_5476.html
*** CT 2022-05-11 09:09:29.016 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1721.html

*** User 2022-05-11 09:09:29.020 ***
alicE_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.020 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dca1be44d94e8a39' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.020 ***
alicE_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.020 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8yNTAyAG1hdHlncnlzYQ==</auth>



*** User 2022-05-11 09:09:29.021 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.021 ***
alicE_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.021 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cea5fa662da96066' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 out
<iq type='set' id='a2eadfb04a6714ea3dc89901c168dd43'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<iq id='a2eadfb04a6714ea3dc89901c168dd43' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_can_be_paginated_in_room_2502@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 out
<iq type='set' id='34442cfc3a34734855628997584a3963'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<iq type='result' id='34442cfc3a34734855628997584a3963'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.022 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.025 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<presence from='alicE_messages_can_be_paginated_in_room_2502@localhost/res1' to='alice_messages_can_be_paginated_in_room_2502@localhost/res1' xml:lang='en'/>



*** User 2022-05-11 09:09:29.025 ***
bOb_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.026 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d346a559696465d2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.026 ***
bOb_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.026 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMjUwMgBtYWtyb2xpa2E=</auth>



*** User 2022-05-11 09:09:29.026 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:09:29.026 ***
bOb_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23361d9cb9c2447a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 out
<iq type='set' id='2f01dc5f06722579f89a3e53bc674eb1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<iq id='2f01dc5f06722579f89a3e53bc674eb1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_can_be_paginated_in_room_2502@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 out
<iq type='set' id='1ab2c24217a8a1449cb24c942f660830'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<iq type='result' id='1ab2c24217a8a1449cb24c942f660830'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:09:29.027 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 out
<presence/>



*** User 2022-05-11 09:09:29.030 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<presence from='bOb_messages_can_be_paginated_in_room_2502@localhost/res1' to='bob_messages_can_be_paginated_in_room_2502@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-05-11 09:09:29.031 ***
=WARNING REPORT==== 11-May-2022::09:09:29.031138 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.037 ***
REST request:
Code: 200
Req: {<0.16373.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e1126441d041990">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"{\"id\":\"1652-260169-37584\"}">>,150,924}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@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-05-11 09:09:29.038 ***
=WARNING REPORT==== 11-May-2022::09:09:29.038839 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.048 ***
REST request:
Code: 204
Req: {<0.16378.2>,<<"/api/rooms/1652-260169-37584/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"496b55dbff20c5e7">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2502@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>}],
         <<>>,80,3805}
Params: #{body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_2502@localhost\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1652-260169-37584/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:29.048 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
<message from='1652-260169-37584@muclight.localhost' to='bob_messages_can_be_paginated_in_room_2502@localhost' id='60a7b76e-a468-492e-bbb4-8775db9f5e6d' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1652-260169-45474</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2502@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-05-11 09:09:29.048 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
<message from='1652-260169-37584@muclight.localhost' to='alice_messages_can_be_paginated_in_room_2502@localhost' id='60a7b76e-a468-492e-bbb4-8775db9f5e6d' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1652-260169-37552</prev-version>
		<version>1652-260169-45474</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_2502@localhost</user>
	</x>
	<body/>
	<stanza-id by='1652-260169-37584@muclight.localhost' id='BNLOPHPT8EG1' 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-05-11 09:09:29.057 ***
=WARNING REPORT==== 11-May-2022::09:09:29.057536 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.064 ***
REST request:
Code: 200
Req: {<0.16383.2>,<<"/api/rooms/1652-260169-37584/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"03f5c2843751c97b">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1227">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1652000970000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"aa379858 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652000971000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"b2d2fe18 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1652087370000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f45cefc0 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652087371000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f775ec3a day_offset=2 user_num=2\"},{\"type\":\"message\",\"timestamp\":1652173770000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"afd286c2 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652173771000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"3d596415 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2502@localhost\",\"type\":\"affiliation\",\"timestamp\":1652260169045,\"id\":\"60a7b76e-a468-492e-bbb4-8775db9f5e6d\",\"from\":\"1652-260169-37584@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         1353,1514}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1652-260169-37584/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-05-11 09:09:29.066 ***
=WARNING REPORT==== 11-May-2022::09:09:29.065953 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.072 ***
REST request:
Code: 200
Req: {<0.16388.2>,<<"/api/rooms/1652-260169-37584/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2da07538552dbb56">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"559">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1652173770000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"afd286c2 day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652173771000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"3d596415 day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_2502@localhost\",\"type\":\"affiliation\",\"timestamp\":1652260169045,\"id\":\"60a7b76e-a468-492e-bbb4-8775db9f5e6d\",\"from\":\"1652-260169-37584@muclight.localhost\",\"affiliation\":\"member\"}]">>,
         684,1413}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1652-260169-37584/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-05-11 09:09:29.074 ***
=WARNING REPORT==== 11-May-2022::09:09:29.073971 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.081 ***
REST request:
Code: 200
Req: {<0.16393.2>,
      <<"/api/rooms/1652-260169-37584/messages?limit=4&before=1652173759000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"87ce25148211e714">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1652000970000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"aa379858 day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652000971000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"b2d2fe18 day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1652087370000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f45cefc0 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652087371000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f775ec3a day_offset=2 user_num=2\"}]">>,
         794,1404}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1652-260169-37584/messages?limit=4&before=1652173759000">>,
          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-05-11 09:09:29.082 ***
=WARNING REPORT==== 11-May-2022::09:09:29.082180 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-05-11 09:09:29.089 ***
REST request:
Code: 200
Req: {<0.16398.2>,
      <<"/api/rooms/1652-260169-37584/messages?limit=2&before=1652173759000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd8d8bb5877698de">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzI1MDJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:09:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1652087370000,\"id\":\"undefined\",\"from\":\"alicE_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f45cefc0 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1652087371000,\"id\":\"undefined\",\"from\":\"bOb_messages_can_be_paginated_in_room_2502@localhost\",\"body\":\"f775ec3a day_offset=2 user_num=2\"}]">>,
         460,1300}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_2502@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1652-260169-37584/messages?limit=2&before=1652173759000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:09:29.089 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:29.089 ***
bOb_messages_can_be_paginated_in_room_2502@localhost/res1 in
</stream:stream>

*** User 2022-05-11 09:09:29.089 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 out
</stream:stream>

*** User 2022-05-11 09:09:29.089 ***
alicE_messages_can_be_paginated_in_room_2502@localhost/res1 in
</stream:stream>
*** CT 2022-05-11 09:09:29.092 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1721.html
*** CT 2022-05-11 09:09:29.092 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5477.html



=== Ended at 2022-05-11 09:09:29
=== successfully completed test case
=== === Returned value: ok


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