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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.27284.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/mam_suite.limit_archive_request.47363.html"},
     {tc_group_properties,[{name,mam04},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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:26:18


*** CT 2022-01-25 16:26:18.169 *** View log from node mongooseim@localhost when started mongooseim@localhost_1018.html
*** CT 2022-01-25 16:26:18.169 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-01-25 16:26:18.444 ***
alicE_unnamed_1039@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-25 16:26:18.445 ***
alicE_unnamed_1039@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3f42664012fb448' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:18.445 ***
alicE_unnamed_1039@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-25 16:26:18.445 ***
alicE_unnamed_1039@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTAzOQBtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:26:18.446 ***
alicE_unnamed_1039@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:26:18.446 ***
alicE_unnamed_1039@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-25 16:26:18.446 ***
alicE_unnamed_1039@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0bc08694ebe0ed0c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:18.446 ***
alicE_unnamed_1039@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-25 16:26:18.447 ***
alicE_unnamed_1039@localhost/res1 out
<iq type='set' id='9c74a019bc774250adcc5aaebe2d4248'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:26:18.448 ***
alicE_unnamed_1039@localhost/res1 in
<iq id='9c74a019bc774250adcc5aaebe2d4248' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1039@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:26:18.448 ***
alicE_unnamed_1039@localhost/res1 out
<iq type='set' id='27148c169de924b59ebcae6e38959caf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:18.448 ***
alicE_unnamed_1039@localhost/res1 in
<iq type='result' id='27148c169de924b59ebcae6e38959caf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:18.448 ***
alicE_unnamed_1039@localhost/res1 out
<presence/>



*** User 2022-01-25 16:26:18.453 ***
alicE_unnamed_1039@localhost/res1 in
<presence from='alicE_unnamed_1039@localhost/res1' to='alice_unnamed_1039@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:26:18.453 ***
alicE_unnamed_1039@localhost/res1 out
<iq type='set' id='c6d819411d80bcec6b848441c1eac545'>
	<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-25 16:26:18.459 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='11e1dadd-61a3-4728-ac9e-c1e23986eb41'>
	<result xmlns='urn:xmpp:mam:1' id='BL8RUQFFH005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T01:16:02Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='bOb_unnamed_1039@localhost' type='chat'>
				<body>26db65ec</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.459 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='1b938f1c-031f-4bd8-9159-51de0dc75d69'>
	<result xmlns='urn:xmpp:mam:1' id='BL99GD0F2002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T17:25:56Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='carol_unnamed_1039@localhost' type='chat'>
				<body>4cc8665a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='dee5e5f8-4c54-4dd2-8c54-829f834c98a5'>
	<result xmlns='urn:xmpp:mam:1' id='BL9M1BGAPG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T08:22:51Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='bOb_unnamed_1039@localhost' type='chat'>
				<body>1dae84c2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='b3e63c64-408b-48d7-8cd2-de1e691cdd95'>
	<result xmlns='urn:xmpp:mam:1' id='BL9TGR7J1G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T17:18:35Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='carol_unnamed_1039@localhost' type='chat'>
				<body>6920ae25</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='6d4304cf-1f66-4c7e-94d1-bcf06f3dd114'>
	<result xmlns='urn:xmpp:mam:1' id='BLA64G7TSG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T03:35:13Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='bOb_unnamed_1039@localhost' type='chat'>
				<body>487ea03c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='4897ea69-1723-4c50-a170-7fbace1031a1'>
	<result xmlns='urn:xmpp:mam:1' id='BLA9U5RIE00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T08:07:24Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='carol_unnamed_1039@localhost' type='chat'>
				<body>edee2c75</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='3a340d20-9923-4951-945d-ab4d05a48988'>
	<result xmlns='urn:xmpp:mam:1' id='BLB4ANAAMG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:36:37Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='bOb_unnamed_1039@localhost' type='chat'>
				<body>27764d2d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='2ccbadba-af4e-4bab-859d-5ed2521a80ef'>
	<result xmlns='urn:xmpp:mam:1' id='BLBAK1K6H00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T23:06:58Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='carol_unnamed_1039@localhost' type='chat'>
				<body>a7e5d39a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='b10ddfcd-b519-449e-a197-afe9707c5968'>
	<result xmlns='urn:xmpp:mam:1' id='BLBC5NKKBG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T00:58:07Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='bOb_unnamed_1039@localhost' type='chat'>
				<body>c0e4ffc3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<message from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='668de150-c17e-43b8-889b-0bcba0d082dc'>
	<result xmlns='urn:xmpp:mam:1' id='BLBGK0N5S002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T06:16:24Z' from='alice_unnamed_1039@localhost'/>
			<message from='alice_unnamed_1039@localhost' xmlns='jabber:client' to='carol_unnamed_1039@localhost' type='chat'>
				<body>043f3e3d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 in
<iq from='alicE_unnamed_1039@localhost' to='alicE_unnamed_1039@localhost/res1' id='c6d819411d80bcec6b848441c1eac545' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL8RUQFFH005</first>
			<last>BLBGK0N5S002</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:26:18.460 ***
alicE_unnamed_1039@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:26:18.461 ***
alicE_unnamed_1039@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:18.468 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:18.470 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1018.html



=== Ended at 2022-01-25 16:26:18
=== successfully completed test case
=== === Returned value: ok