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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.21800.0>},
     {basic_group,mam_all},
     {configuration,rdbms},
     {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.34306.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_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 => [],
        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:01


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:02.220 ***
alicE_unnamed_877@localhost/res1 out
<iq type='set' id='c999129e3c3f485d85d2796b9beebd9d'>
	<query xmlns='urn:xmpp:mam:1'>
		<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:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='0727ab04-a961-4adb-97f9-9cba49fc2cae'>
	<result xmlns='urn:xmpp:mam:1' id='BLA8VLH6IG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T06:59:09Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='carol_unnamed_877@localhost' type='chat'>
				<body>76a77eca</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='f468473d-f6a3-4069-988d-f79de6043f34'>
	<result xmlns='urn:xmpp:mam:1' id='BLAEG2IC500C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T13:33:46Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='bOb_unnamed_877@localhost' type='chat'>
				<body>72ab9860</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='c5155db9-5879-44d1-8611-9a08f2561398'>
	<result xmlns='urn:xmpp:mam:1' id='BLARKR8DUG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T05:15:01Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='carol_unnamed_877@localhost' type='chat'>
				<body>c97aa043</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='976859b7-3bd4-4197-8ae6-2915da316b1d'>
	<result xmlns='urn:xmpp:mam:1' id='BLB7ACJOAG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T19:10:37Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='bOb_unnamed_877@localhost' type='chat'>
				<body>830144a3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='833f8e62-e6df-4ce9-99a1-487beaff364f'>
	<result xmlns='urn:xmpp:mam:1' id='BLBKSE5CN002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T11:21:34Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='carol_unnamed_877@localhost' type='chat'>
				<body>c94cd5e2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='e5b543a6-8ca8-4207-830b-683637de93ea'>
	<result xmlns='urn:xmpp:mam:1' id='BLBRKCV0S00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T19:24:40Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='bOb_unnamed_877@localhost' type='chat'>
				<body>a464045f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='5694fae2-34cc-4f56-baab-304cfca60655'>
	<result xmlns='urn:xmpp:mam:1' id='BLC3BUDL4G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T04:38:25Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='bOb_unnamed_877@localhost' type='chat'>
				<body>2f4b3ce7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='6b79fbac-d0da-45e6-ba1c-83c3da2b8fab'>
	<result xmlns='urn:xmpp:mam:1' id='BLC6BEUFUG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T08:12:05Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='carol_unnamed_877@localhost' type='chat'>
				<body>b98eaab9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='0afbe7d7-3bdd-4e06-ba1e-0b6b374e50f4'>
	<result xmlns='urn:xmpp:mam:1' id='BLCN7C66FG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T04:19:51Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='bOb_unnamed_877@localhost' type='chat'>
				<body>b5e19c5a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<message from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='b1ad7e30-e8e9-4bc7-bcca-123a61f02941'>
	<result xmlns='urn:xmpp:mam:1' id='BLD3IU2CD00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T19:04:42Z' from='alice_unnamed_877@localhost'/>
			<message from='alice_unnamed_877@localhost' xmlns='jabber:client' to='carol_unnamed_877@localhost' type='chat'>
				<body>43d91a3e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.229 ***
alicE_unnamed_877@localhost/res1 in
<iq from='alicE_unnamed_877@localhost' to='alicE_unnamed_877@localhost/res1' id='c999129e3c3f485d85d2796b9beebd9d' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLA8VLH6IG03</first>
			<last>BLD3IU2CD00I</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:02.230 ***
alicE_unnamed_877@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:02.233 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:02.235 *** View log from node mongooseim@localhost when finished mongooseim@localhost_961.html



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