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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.1613.1>},
     {basic_group,mam_all},
     {configuration,rdbms_async_cache},
     {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.75906.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_async_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 => [{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:39


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:40.284 ***
alicE_unnamed_1236@localhost/res1 out
<iq type='set' id='785e3f1c154be0839690cfe7a15ea650'>
	<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:40.286 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='62886803-1725-484b-b45c-cd4b3ba84c2d'>
	<result xmlns='urn:xmpp:mam:2' id='BLA7DTC3FG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T05:07:51Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='carol_unnamed_1236@localhost' type='chat'>
				<body>907ca8d9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.286 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='616a412a-4295-4049-8e6a-84994819754a'>
	<result xmlns='urn:xmpp:mam:2' id='BLA8S74PF00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T06:51:26Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='bOb_unnamed_1236@localhost' type='chat'>
				<body>9e84459a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.287 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='9a23e893-a2ff-4ccb-83e7-5d3ad3221496'>
	<result xmlns='urn:xmpp:mam:2' id='BLAQVJ1OO00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T04:27:28Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='bOb_unnamed_1236@localhost' type='chat'>
				<body>39f52b69</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.287 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='fd9d985f-74e8-4bc1-8510-a949cacba0ec'>
	<result xmlns='urn:xmpp:mam:2' id='BLB5TK6BEG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T17:30:29Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='carol_unnamed_1236@localhost' type='chat'>
				<body>723b5f00</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.287 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='e94740dd-9dd0-4fc9-9b1d-399808a6c8b3'>
	<result xmlns='urn:xmpp:mam:2' id='BLBJJ52TGG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T09:49:13Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='carol_unnamed_1236@localhost' type='chat'>
				<body>36ab71dc</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.287 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='9ced9fc7-3b25-40dd-9ae3-2f79c43ba7a3'>
	<result xmlns='urn:xmpp:mam:2' id='BLBPBMN0PG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T16:42:03Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='bOb_unnamed_1236@localhost' type='chat'>
				<body>47296a5b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.288 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='73aee5a0-cfd8-4d99-b009-33f1a44bf222'>
	<result xmlns='urn:xmpp:mam:2' id='BLC48DDIF007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T05:42:06Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='carol_unnamed_1236@localhost' type='chat'>
				<body>92e181cd</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.288 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='a8c53728-51ae-4305-89f0-4e3970be95eb'>
	<result xmlns='urn:xmpp:mam:2' id='BLCA64172007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T12:46:28Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='bOb_unnamed_1236@localhost' type='chat'>
				<body>09a69794</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.288 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='c2dcb913-7424-482b-a117-a124aac5c4a2'>
	<result xmlns='urn:xmpp:mam:2' id='BLCQ05SUJ00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T07:38:30Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='carol_unnamed_1236@localhost' type='chat'>
				<body>a66870cf</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.288 ***
alicE_unnamed_1236@localhost/res1 in
<message from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='03d105cd-bbef-4e9d-8dba-0a18d68fa9e7'>
	<result xmlns='urn:xmpp:mam:2' id='BLD01GK3LG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T14:50:59Z' from='alice_unnamed_1236@localhost'/>
			<message from='alice_unnamed_1236@localhost' xmlns='jabber:client' to='bOb_unnamed_1236@localhost' type='chat'>
				<body>ce0e3cad</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.288 ***
alicE_unnamed_1236@localhost/res1 in
<iq from='alicE_unnamed_1236@localhost' to='alicE_unnamed_1236@localhost/res1' id='785e3f1c154be0839690cfe7a15ea650' type='result'>
	<fin xmlns='urn:xmpp:mam:2'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLA7DTC3FG01</first>
			<last>BLD01GK3LG0C</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:40.289 ***
alicE_unnamed_1236@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:40.298 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:40.299 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1460.html



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