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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.21277.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@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.25603.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@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 => [],
        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:25:53


*** CT 2022-01-25 16:25:53.427 *** View log from node mongooseim@localhost when started mongooseim@localhost_950.html
*** CT 2022-01-25 16:25:53.428 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

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



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



*** User 2022-01-25 16:25:54.849 ***
alicE_unnamed_865@localhost/res1 out
<iq type='set' id='48f648cbeb9d2846b5aff803dafb1bbc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:25:54.849 ***
alicE_unnamed_865@localhost/res1 in
<iq type='result' id='48f648cbeb9d2846b5aff803dafb1bbc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:25:54.849 ***
alicE_unnamed_865@localhost/res1 out
<presence/>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_865@localhost/res1 in
<presence from='alicE_unnamed_865@localhost/res1' to='alice_unnamed_865@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:25:54.853 ***
alicE_unnamed_865@localhost/res1 out
<iq type='set' id='8ef7518162afc05f47d5b19550b758e6'>
	<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:25:54.860 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='c944282d-5edc-4852-9ff3-2357cf8a2f85'>
	<result xmlns='urn:xmpp:mam:1' id='BL90U8S51G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T07:12:43Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='bOb_unnamed_865@localhost' type='chat'>
				<body>12591eed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='c0573bfc-21ca-43e5-8682-6dfe663c33f0'>
	<result xmlns='urn:xmpp:mam:1' id='BL973UBJV002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T14:34:54Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='carol_unnamed_865@localhost' type='chat'>
				<body>51ac2504</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='a5438a3c-36e1-4ca8-bd9b-9fe048dd4c64'>
	<result xmlns='urn:xmpp:mam:1' id='BL9UB1O5K00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T18:17:12Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='bOb_unnamed_865@localhost' type='chat'>
				<body>3b5e86e6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='47d92288-cadd-4094-a5f1-d826d233d403'>
	<result xmlns='urn:xmpp:mam:1' id='BLA2I07COG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T23:19:05Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='carol_unnamed_865@localhost' type='chat'>
				<body>ae031d4b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='34c4339d-0255-4ba2-8cfa-55d5a1d9dcad'>
	<result xmlns='urn:xmpp:mam:1' id='BLAJVJ7L000K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T20:06:24Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='carol_unnamed_865@localhost' type='chat'>
				<body>6a30a641</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='2ea6ef81-8adf-49b4-8d6f-d89e0c0938b6'>
	<result xmlns='urn:xmpp:mam:1' id='BLALL7JLBG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T22:06:23Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='bOb_unnamed_865@localhost' type='chat'>
				<body>c451b8eb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='7a7a890b-20e4-4160-ba82-b718fc324b4b'>
	<result xmlns='urn:xmpp:mam:1' id='BLB2LDT8Q001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T13:37:24Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='carol_unnamed_865@localhost' type='chat'>
				<body>ea8de17c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='20a26d17-304c-43f8-8dc4-567b7eb16e5c'>
	<result xmlns='urn:xmpp:mam:1' id='BLB6MV1TN00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T18:27:10Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='bOb_unnamed_865@localhost' type='chat'>
				<body>2bc4262b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='60c19d92-1fd4-41e8-a943-a9a1e763a01b'>
	<result xmlns='urn:xmpp:mam:1' id='BLBEHUDMQ00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T03:48:36Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='carol_unnamed_865@localhost' type='chat'>
				<body>fac14ae7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.861 ***
alicE_unnamed_865@localhost/res1 in
<message from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='c7fa3d57-fbb8-4615-87dd-d95baaa16a74'>
	<result xmlns='urn:xmpp:mam:1' id='BLBO3NQUFG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T15:12:39Z' from='alice_unnamed_865@localhost'/>
			<message from='alice_unnamed_865@localhost' xmlns='jabber:client' to='bOb_unnamed_865@localhost' type='chat'>
				<body>d8d39224</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.862 ***
alicE_unnamed_865@localhost/res1 in
<iq from='alicE_unnamed_865@localhost' to='alicE_unnamed_865@localhost/res1' id='8ef7518162afc05f47d5b19550b758e6' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL90U8S51G05</first>
			<last>BLBO3NQUFG0A</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:25:54.862 ***
alicE_unnamed_865@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:25:54.862 ***
alicE_unnamed_865@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:25:54.866 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:25:54.868 *** View log from node mongooseim@localhost when finished mongooseim@localhost_953.html



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