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

=== Config value:

    [{watchdog,<0.24301.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,riak},
     {archive_wait,2500},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_08.57.32/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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_08.57.32/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 => riak,iqdisc => one_queue,
              riak =>
                  #{bucket_type => <<"rosters">>,
                    version_bucket_type => <<"roster_versions">>},
              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 => riak,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,
              riak =>
                  #{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
              search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"

=== Started at 2022-06-22 08:57:44


*** CT 2022-06-22 08:57:44.759 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4731.html
*** CT 2022-06-22 08:57:44.760 *** View log from node ejabberd2@localhost when started🔗 ejabberd2@localhost_1988.html

*** User 2022-06-22 08:57:44.767 ***🔗
alicE_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.767 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cbfb416ca57d709b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:44.767 ***🔗
alicE_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.768 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2Nhbl9iZV9wYWdpbmF0ZWRfaW5fcm9vbV8xNzA3AG1hdHlncnlzYQ==</auth>



*** User 2022-06-22 08:57:44.769 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:44.769 ***🔗
alicE_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.769 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7ad0ee8953bfb8c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:44.770 ***🔗
alicE_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.770 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 out
<iq type='set' id='f30adff906b45693d01db1da3b8ee2d1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:44.770 ***🔗
alicE_messages_can_be_paginated_in_room_1707@localhost/res1 in
<iq id='f30adff906b45693d01db1da3b8ee2d1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_messages_can_be_paginated_in_room_1707@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:44.770 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 out
<iq type='set' id='cbb822c3c1b57e71b1007ddd6ff48743'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:44.770 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 in
<iq type='result' id='cbb822c3c1b57e71b1007ddd6ff48743'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:44.770 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:44.773 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 in
<presence from='alice_messages_can_be_paginated_in_room_1707@localhost/res1' to='alice_messages_can_be_paginated_in_room_1707@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:44.774 ***🔗
bOb_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.774 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfb9e7a5e00f8402' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:44.774 ***🔗
bOb_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.774 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19jYW5fYmVfcGFnaW5hdGVkX2luX3Jvb21fMTcwNwBtYWtyb2xpa2E=</auth>



*** User 2022-06-22 08:57:44.776 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:44.776 ***🔗
bOb_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.776 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39b907ca2300aab3' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:44.776 ***🔗
bOb_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.776 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 out
<iq type='set' id='439ab9750df959199b9a256e15597b64'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:44.777 ***🔗
bOb_messages_can_be_paginated_in_room_1707@localhost/res1 in
<iq id='439ab9750df959199b9a256e15597b64' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_messages_can_be_paginated_in_room_1707@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:44.777 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 out
<iq type='set' id='0ceaa128c1836735028a240277d112c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:44.777 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 in
<iq type='result' id='0ceaa128c1836735028a240277d112c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:44.777 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:44.780 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 in
<presence from='bob_messages_can_be_paginated_in_room_1707@localhost/res1' to='bob_messages_can_be_paginated_in_room_1707@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-06-22 08:57:44.781 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:44.781092 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:44.789 ***🔗
REST request:
Code: 200
Req: {<0.24889.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6e1e806d746730f4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1655-888264-789114\"}">>,151,2331}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@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-06-22 08:57:44.790 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:44.790783 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:44.805 ***🔗
REST request:
Code: 204
Req: {<0.24894.1>,<<"/api/rooms/1655-888264-789114/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d82619f06c0d519b">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_messages_can_be_paginated_in_room_1707@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:44 GMT">>}],
         <<>>,80,8047}
Params: #{body =>
              <<"{\"user\":\"bob_messages_can_be_paginated_in_room_1707@localhost\"}">>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1655-888264-789114/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:44.805 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 in
<message from='1655-888264-789114@muclight.localhost' to='bob_messages_can_be_paginated_in_room_1707@localhost' id='72a25d6d-386c-4e6a-80b3-dc8e38d9f789' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1655-888264-800028</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_1707@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-06-22 08:57:44.805 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 in
<message from='1655-888264-789114@muclight.localhost' to='alice_messages_can_be_paginated_in_room_1707@localhost' id='72a25d6d-386c-4e6a-80b3-dc8e38d9f789' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1655-888264-789073</prev-version>
		<version>1655-888264-800028</version>
		<user affiliation='member'>bob_messages_can_be_paginated_in_room_1707@localhost</user>
	</x>
	<body/>
	<stanza-id by='1655-888264-789114@muclight.localhost' id='BOG5GV7Q6NO1' xmlns='urn:xmpp:sid:0'/>
</message>


Could not find element wait_for_parallel_writer in Config.


*** System report during rest_client_SUITE:messages_can_be_paginated_in_room/1 in muc 2022-06-22 08:57:48.322 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:48.322844 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:48.345 ***🔗
REST request:
Code: 200
Req: {<0.24899.1>,<<"/api/rooms/1655-888264-789114/messages?limit=10">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10b336f622ca3f2c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1562">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1655629065000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"9fcd753d day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655629066000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"03d1e0ae day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1655715465000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"fb8fdec2 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655715466000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"08539864 day_offset=2 user_num=2\"},{\"type\":\"message\",\"timestamp\":1655801865000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"4dd150ab day_offset=1 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655801866000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"caf47bed day_offset=1 user_num=2\"},{\"user\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"type\":\"affiliation\",\"timestamp\":1655888264799,\"id\":\"72a25d6d-386c-4e6a-80b3-dc8e38d9f789\",\"from\":\"1655-888264-789114@muclight.localhost\",\"affiliation\":\"member\"},{\"type\":\"message\",\"timestamp\":1655888265000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"62c21d55 day_offset=0 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655888266000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"a42d642b day_offset=0 user_num=2\"}]">>,
         1688,16630}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1655-888264-789114/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-06-22 08:57:48.346 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:48.346810 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:48.362 ***🔗
REST request:
Code: 200
Req: {<0.24904.1>,<<"/api/rooms/1655-888264-789114/messages?limit=3">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7cb5084fd6e60a8c">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"560">>}],
         <<"[{\"user\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"type\":\"affiliation\",\"timestamp\":1655888264799,\"id\":\"72a25d6d-386c-4e6a-80b3-dc8e38d9f789\",\"from\":\"1655-888264-789114@muclight.localhost\",\"affiliation\":\"member\"},{\"type\":\"message\",\"timestamp\":1655888265000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"62c21d55 day_offset=0 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655888266000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"a42d642b day_offset=0 user_num=2\"}]">>,
         685,10166}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path => <<"/api/rooms/1655-888264-789114/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-06-22 08:57:48.364 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:48.364109 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:48.381 ***🔗
REST request:
Code: 200
Req: {<0.24909.1>,
      <<"/api/rooms/1655-888264-789114/messages?limit=4&before=1655801858000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dce3b587709cf0df">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"669">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1655629065000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"9fcd753d day_offset=3 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655629066000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"03d1e0ae day_offset=3 user_num=2\"},{\"type\":\"message\",\"timestamp\":1655715465000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"fb8fdec2 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655715466000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"08539864 day_offset=2 user_num=2\"}]">>,
         794,11291}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1655-888264-789114/messages?limit=4&before=1655801858000">>,
          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-06-22 08:57:48.382 ***🔗
=WARNING REPORT==== 22-Jun-2022::08:57:48.382729 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-06-22 08:57:48.398 ***🔗
REST request:
Code: 200
Req: {<0.24914.1>,
      <<"/api/rooms/1655-888264-789114/messages?limit=2&before=1655801858000">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d0e4bc64ccbb660">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbWVzc2FnZXNfY2FuX2JlX3BhZ2luYXRlZF9pbl9yb29tXzE3MDdAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"335">>}],
         <<"[{\"type\":\"message\",\"timestamp\":1655715465000,\"id\":\"undefined\",\"from\":\"alice_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"fb8fdec2 day_offset=2 user_num=1\"},{\"type\":\"message\",\"timestamp\":1655715466000,\"id\":\"undefined\",\"from\":\"bob_messages_can_be_paginated_in_room_1707@localhost\",\"body\":\"08539864 day_offset=2 user_num=2\"}]">>,
         460,8524}
Params: #{body => <<>>,
          creds =>
              {<<"alice_messages_can_be_paginated_in_room_1707@localhost">>,
               <<"matygrysa">>},
          method => <<"GET">>,
          path =>
              <<"/api/rooms/1655-888264-789114/messages?limit=2&before=1655801858000">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:48.398 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:48.399 ***🔗
bob_messages_can_be_paginated_in_room_1707@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:57:48.399 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:48.399 ***🔗
alice_messages_can_be_paginated_in_room_1707@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:57:48.401 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1988.html
*** CT 2022-06-22 08:57:48.401 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4732.html



=== Ended at 2022-06-22 08:57:48
=== successfully completed test case
=== === Returned value: ok


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