=== Test case: mam_SUITE:limit_archive_request/1 (click for source code)

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.28095.0>},
     {basic_group,mam_all},
     {configuration,rdbms_async_pool},
     {wait_for_parallel_writer,[pm]},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_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.mam_SUITE.logs/run.2022-01-27_15.29.00/mam_suite.limit_archive_request.29444.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_mam_all},parallel]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.mam_SUITE.logs/run.2022-01-27_15.29.00/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"localhost">>},max_user_sessions] =>
                          {ok,[#{acl => all,value => 10}]}}},
     {{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_mam => [{archive_groupchats,false}],
        mod_mam_rdbms_arch => [{no_writer,true}],
        mod_mam_rdbms_arch_async => [{pm,[{flush_interval,1}]}],
        mod_mam_rdbms_prefs => [{pm,true}],
        mod_mam_rdbms_user => [{pm,true}],
        mod_muc =>
            [{host,{prefix,<<"muc.">>}},
             {backend,rdbms},
             {hibernate_timeout,2000},
             {hibernated_room_check_interval,1000},
             {hibernated_room_timeout,2000},
             {access,muc},
             {access_create,muc_create}],
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_muc_log => [{outdir,"/tmp/muclogs"},{access_log,muc}],
        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.">>}}]}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== 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:29:21


*** CT 2022-01-27 15:29:21.223 *** View log from node mongooseim@localhost when started mongooseim@localhost_1072.html
*** CT 2022-01-27 15:29:21.223 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

*** User 2022-01-27 15:29:21.581 ***
alicE_unnamed_1068@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:29:21.581 ***
alicE_unnamed_1068@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9f08a022dcc06c49' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-01-27 15:29:21.583 ***
alicE_unnamed_1068@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:29:21.583 ***
alicE_unnamed_1068@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8f47764c475a939' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:29:21.583 ***
alicE_unnamed_1068@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:29:21.583 ***
alicE_unnamed_1068@localhost/res1 out
<iq type='set' id='0b438398fddb93dcce2d2e04cf93132d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:29:21.583 ***
alicE_unnamed_1068@localhost/res1 in
<iq id='0b438398fddb93dcce2d2e04cf93132d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1068@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:29:21.584 ***
alicE_unnamed_1068@localhost/res1 out
<iq type='set' id='83db581c9de2291fc7203a953bc3161d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:21.584 ***
alicE_unnamed_1068@localhost/res1 in
<iq type='result' id='83db581c9de2291fc7203a953bc3161d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:21.584 ***
alicE_unnamed_1068@localhost/res1 out
<presence/>



*** User 2022-01-27 15:29:21.586 ***
alicE_unnamed_1068@localhost/res1 in
<presence from='alicE_unnamed_1068@localhost/res1' to='alice_unnamed_1068@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:29:21.586 ***
alicE_unnamed_1068@localhost/res1 out
<iq type='set' id='b2c9783ca3fa865461655316cf9e56b7'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='start'>
				<value>2010-08-07T00:00:00Z</value>
			</field>
		</x>
		<set>
			<max>10</max>
		</set>
	</query>
</iq>



*** User 2022-01-27 15:29:21.590 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='d570437c-4252-4074-a5ae-6e1790b8d452'>
	<result xmlns='urn:xmpp:mam:2' id='BLAHQD93500A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T17:31:38Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='bOb_unnamed_1068@localhost' type='chat'>
				<body>7f01e7d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.590 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='2f11992b-dae9-4172-89ed-efea16806a5c'>
	<result xmlns='urn:xmpp:mam:2' id='BLAJQ9N50G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T19:54:33Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='carol_unnamed_1068@localhost' type='chat'>
				<body>0b8cc3ed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.590 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='30d1108d-c6df-4ff5-b378-b74d0b29d842'>
	<result xmlns='urn:xmpp:mam:2' id='BLAQ7TQQ400J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T03:34:32Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='bOb_unnamed_1068@localhost' type='chat'>
				<body>abb12a70</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='18423210-4463-4939-bff5-92d51c19a904'>
	<result xmlns='urn:xmpp:mam:2' id='BLBAMIM6B00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T23:12:38Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='carol_unnamed_1068@localhost' type='chat'>
				<body>aab0b7f5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='61a2a8ae-0895-459e-97f1-1fab9d195bda'>
	<result xmlns='urn:xmpp:mam:2' id='BLBHQDH2L00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T07:42:18Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='carol_unnamed_1068@localhost' type='chat'>
				<body>4d675020</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='22c463f7-09db-4be9-bbbf-5c2611745fb8'>
	<result xmlns='urn:xmpp:mam:2' id='BLBU61PHVG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:27:19Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='bOb_unnamed_1068@localhost' type='chat'>
				<body>88756a77</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='40a7f3a8-507c-4604-928e-056c162a7229'>
	<result xmlns='urn:xmpp:mam:2' id='BLC0SN2LNG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T01:41:11Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='bOb_unnamed_1068@localhost' type='chat'>
				<body>d44c7f73</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='7cebed36-495f-4007-b3d2-03bd0902ad33'>
	<result xmlns='urn:xmpp:mam:2' id='BLCJHJ13B00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T23:56:22Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='carol_unnamed_1068@localhost' type='chat'>
				<body>fd5bab13</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='496be983-1ea7-4fa1-9255-bc5135562acf'>
	<result xmlns='urn:xmpp:mam:2' id='BLCL6V9MTG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T01:55:47Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='carol_unnamed_1068@localhost' type='chat'>
				<body>099e0448</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<message from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='75faeb1b-50c3-44f8-ae2f-e1a0bda847da'>
	<result xmlns='urn:xmpp:mam:2' id='BLD6HFR12G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T22:36:13Z' from='alice_unnamed_1068@localhost'/>
			<message from='alice_unnamed_1068@localhost' xmlns='jabber:client' to='bOb_unnamed_1068@localhost' type='chat'>
				<body>46dd73ea</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
<iq from='alicE_unnamed_1068@localhost' to='alicE_unnamed_1068@localhost/res1' id='b2c9783ca3fa865461655316cf9e56b7' type='result'>
	<fin xmlns='urn:xmpp:mam:2'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLAHQD93500A</first>
			<last>BLD6HFR12G06</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:29:21.591 ***
alicE_unnamed_1068@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:21.602 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:21.602 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1096.html



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