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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.31368.0>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia},
     {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.34180.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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_mnesia_prefs => [{pm,true}],
        mod_mam_rdbms_arch => [],
        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:30


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

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

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



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



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

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



*** User 2022-01-27 15:29:31.214 ***
alicE_unnamed_1150@localhost/res1 in
<iq id='746e3f36a061ca705922a10728252f21' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1150@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:29:31.214 ***
alicE_unnamed_1150@localhost/res1 out
<iq type='set' id='671b896372a57d430c4386ad6c5bca68'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:31.214 ***
alicE_unnamed_1150@localhost/res1 in
<iq type='result' id='671b896372a57d430c4386ad6c5bca68'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



*** User 2022-01-27 15:29:31.218 ***
alicE_unnamed_1150@localhost/res1 out
<iq type='set' id='f829238806c2ed7fbf27ea27d31a12c4'>
	<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:31.222 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='bedd182b-b6ea-413c-8274-f6d49eb066bd'>
	<result xmlns='urn:xmpp:mam:2' id='BLAALS11K00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T09:00:24Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='bOb_unnamed_1150@localhost' type='chat'>
				<body>b8c7c9b5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='90049f68-d430-415d-999e-62e2ab0d2583'>
	<result xmlns='urn:xmpp:mam:2' id='BLAMHLDDVG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T23:09:59Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='carol_unnamed_1150@localhost' type='chat'>
				<body>efaefa42</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='ecd2c0c9-0d7c-46ad-9801-023c62dbe26c'>
	<result xmlns='urn:xmpp:mam:2' id='BLB3CSEJG005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T14:29:52Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='bOb_unnamed_1150@localhost' type='chat'>
				<body>8065da7c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='2d846a3f-2704-4f5d-ae2f-50499647cbce'>
	<result xmlns='urn:xmpp:mam:2' id='BLB407CGI001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:13:08Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='carol_unnamed_1150@localhost' type='chat'>
				<body>cba31e3c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='f88ddc0d-8e8e-402f-9d06-8e7b2cbe23d0'>
	<result xmlns='urn:xmpp:mam:2' id='BLBR4QT73G0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T18:49:51Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='bOb_unnamed_1150@localhost' type='chat'>
				<body>e02df1ae</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='ea3e5e44-30fd-4de9-b0c3-46a4a811e077'>
	<result xmlns='urn:xmpp:mam:2' id='BLBU2M8MI006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:19:48Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='carol_unnamed_1150@localhost' type='chat'>
				<body>4324a84d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='4eced539-04a8-4bb1-bba8-a50a5390f479'>
	<result xmlns='urn:xmpp:mam:2' id='BLCEJG8JI003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T18:02:44Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='carol_unnamed_1150@localhost' type='chat'>
				<body>d2d32325</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='efa86b03-1c3a-41b4-ad8f-3d9bc2599816'>
	<result xmlns='urn:xmpp:mam:2' id='BLCI54CG7G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T22:16:55Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='bOb_unnamed_1150@localhost' type='chat'>
				<body>4b596b52</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='160036ec-7e39-415f-87b8-646a40b0dd61'>
	<result xmlns='urn:xmpp:mam:2' id='BLCPF4KGVG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T07:00:23Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='bOb_unnamed_1150@localhost' type='chat'>
				<body>e12e48f2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.223 ***
alicE_unnamed_1150@localhost/res1 in
<message from='alicE_unnamed_1150@localhost' to='alicE_unnamed_1150@localhost/res1' id='5d20e615-85d1-4560-af78-47cbf026cb04'>
	<result xmlns='urn:xmpp:mam:2' id='BLD45F0M4G08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T19:46:09Z' from='alice_unnamed_1150@localhost'/>
			<message from='alice_unnamed_1150@localhost' xmlns='jabber:client' to='carol_unnamed_1150@localhost' type='chat'>
				<body>32c8674b</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:31.224 ***
alicE_unnamed_1150@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:31.227 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:31.228 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1370.html



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