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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.27590.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.29700.html"},
     {tc_group_properties,[{name,mam06},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.758 *** View log from node mongooseim@localhost when started mongooseim@localhost_1076.html
*** CT 2022-01-25 16:26:18.759 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

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



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



*** User 2022-01-25 16:26:19.341 ***
alicE_unnamed_1053@localhost/res1 out
<iq type='set' id='18a41dddd2e4fa28b909ccbc58ef4f90'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:19.341 ***
alicE_unnamed_1053@localhost/res1 in
<iq type='result' id='18a41dddd2e4fa28b909ccbc58ef4f90'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



*** User 2022-01-25 16:26:19.343 ***
alicE_unnamed_1053@localhost/res1 out
<iq type='set' id='fd5a41922514f2a524d9d27e7656034a'>
	<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-25 16:26:19.347 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='0267cc0a-f427-410c-99b0-70a860d3adf9'>
	<result xmlns='urn:xmpp:mam:2' id='BL91F1A9EG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T07:50:13Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='carol_unnamed_1053@localhost' type='chat'>
				<body>88a88585</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.347 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='d1e7aaec-a1ab-4647-8986-6f06f9392235'>
	<result xmlns='urn:xmpp:mam:2' id='BL9AE081OG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T18:32:09Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='bOb_unnamed_1053@localhost' type='chat'>
				<body>5f941bcb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.347 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='3d4a8609-6573-4edf-b47d-817dbce71287'>
	<result xmlns='urn:xmpp:mam:2' id='BL9MHG57H006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T08:58:58Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='bOb_unnamed_1053@localhost' type='chat'>
				<body>dd38973a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.347 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='6c6886da-6d82-49f9-b3a9-96a163f1171e'>
	<result xmlns='urn:xmpp:mam:2' id='BL9S45TC0004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T15:38:40Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='carol_unnamed_1053@localhost' type='chat'>
				<body>30cae3f4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.347 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='66e92ead-76c7-4f3f-85ab-e0c6abd16248'>
	<result xmlns='urn:xmpp:mam:2' id='BLA6SJ9CLG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T04:29:07Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='carol_unnamed_1053@localhost' type='chat'>
				<body>9f9e37be</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='b0169b97-2611-4a68-974a-cbd1c1d3d289'>
	<result xmlns='urn:xmpp:mam:2' id='BLAC9MF3Q00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T10:56:20Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='bOb_unnamed_1053@localhost' type='chat'>
				<body>6d29a483</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='35ef5b1a-345a-40d9-88b6-0d1b81c22942'>
	<result xmlns='urn:xmpp:mam:2' id='BLB415664G08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:15:13Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='carol_unnamed_1053@localhost' type='chat'>
				<body>8742ef98</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='a9023693-b866-43a0-b6f9-60c79aef5a4d'>
	<result xmlns='urn:xmpp:mam:2' id='BLB8A6DKL00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T20:21:46Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='bOb_unnamed_1053@localhost' type='chat'>
				<body>d5ee8d4f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='c25d7c2d-0dd9-432b-b624-b9bd703e8b4a'>
	<result xmlns='urn:xmpp:mam:2' id='BLBNNJTTM00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T14:45:32Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='bOb_unnamed_1053@localhost' type='chat'>
				<body>10a78ca2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<message from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='7637ea78-0c42-465a-bd30-78eac38ed0a6'>
	<result xmlns='urn:xmpp:mam:2' id='BLBRAD0C500J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T19:02:18Z' from='alice_unnamed_1053@localhost'/>
			<message from='alice_unnamed_1053@localhost' xmlns='jabber:client' to='carol_unnamed_1053@localhost' type='chat'>
				<body>c3562b5d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
<iq from='alicE_unnamed_1053@localhost' to='alicE_unnamed_1053@localhost/res1' id='fd5a41922514f2a524d9d27e7656034a' type='result'>
	<fin xmlns='urn:xmpp:mam:2'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL91F1A9EG0K</first>
			<last>BLBRAD0C500J</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-25 16:26:19.348 ***
alicE_unnamed_1053@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:19.352 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:19.353 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1101.html



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