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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.4869.1>},
     {basic_group,mam_all},
     {configuration,rdbms_cache},
     {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.86146.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_cache_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_cache_user => [{pm,true}],
        mod_mam_rdbms_arch => [],
        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:49


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

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

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



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



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

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



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



*** User 2022-01-27 15:29:50.107 ***
alicE_unnamed_1317@localhost/res1 out
<iq type='set' id='8a4a63b58bb0d22efe76e2ed32f2264e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:50.108 ***
alicE_unnamed_1317@localhost/res1 in
<iq type='result' id='8a4a63b58bb0d22efe76e2ed32f2264e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



*** User 2022-01-27 15:29:50.111 ***
alicE_unnamed_1317@localhost/res1 out
<iq type='set' id='cc8a45e5ee405b1c7dfbaca894341893'>
	<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:50.115 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='f80131a2-213f-42c4-a27b-e613a6c71a58'>
	<result xmlns='urn:xmpp:mam:2' id='BLA8AVM06G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T06:12:53Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='carol_unnamed_1317@localhost' type='chat'>
				<body>62f082d0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='ad351826-718a-44fe-8671-149293e45671'>
	<result xmlns='urn:xmpp:mam:2' id='BLAAEBMJS00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T08:43:36Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='bOb_unnamed_1317@localhost' type='chat'>
				<body>1359e0f7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='4034206c-490f-4733-aa94-585f09eafa56'>
	<result xmlns='urn:xmpp:mam:2' id='BLB44CSVA00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:22:28Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='carol_unnamed_1317@localhost' type='chat'>
				<body>6724a742</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='2f73f9a0-4f5d-482c-90e8-78df854748c9'>
	<result xmlns='urn:xmpp:mam:2' id='BLB65GTGGG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T17:48:09Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='bOb_unnamed_1317@localhost' type='chat'>
				<body>fd58b21f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='089d3d7a-4837-4168-aa86-3dd2c292e540'>
	<result xmlns='urn:xmpp:mam:2' id='BLBEN5A98008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T04:00:16Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='bOb_unnamed_1317@localhost' type='chat'>
				<body>c5d4d3c0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='157200a2-d553-4f56-aa40-605d8ff92196'>
	<result xmlns='urn:xmpp:mam:2' id='BLBGRC90Q004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T06:32:52Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='carol_unnamed_1317@localhost' type='chat'>
				<body>5b4a150f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='35d037cf-a3a8-466c-a449-119f891e7b8e'>
	<result xmlns='urn:xmpp:mam:2' id='BLCIJ7020G0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T22:48:25Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='carol_unnamed_1317@localhost' type='chat'>
				<body>dbcb2f3f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='fc5d94d1-fcb9-4b97-9fd6-157e05c13a8a'>
	<result xmlns='urn:xmpp:mam:2' id='BLCJ6V1IQ00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T23:32:36Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='bOb_unnamed_1317@localhost' type='chat'>
				<body>cf193dc3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='cdce39e7-5774-4910-9e1e-d35dd8b478b8'>
	<result xmlns='urn:xmpp:mam:2' id='BLCMFK3M5G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T03:26:43Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='carol_unnamed_1317@localhost' type='chat'>
				<body>01aa36b2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1317@localhost/res1 in
<message from='alicE_unnamed_1317@localhost' to='alicE_unnamed_1317@localhost/res1' id='0848195a-0977-4360-a6c8-96708772a349'>
	<result xmlns='urn:xmpp:mam:2' id='BLD6J8IQHG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T22:40:11Z' from='alice_unnamed_1317@localhost'/>
			<message from='alice_unnamed_1317@localhost' xmlns='jabber:client' to='bOb_unnamed_1317@localhost' type='chat'>
				<body>5e309ce5</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:50.117 ***
alicE_unnamed_1317@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:50.121 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:50.122 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1714.html



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