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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.7950.1>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia_cache},
     {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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.20.29/mam_suite.limit_archive_request.69379.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.20.29/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"test type">>},max_user_sessions] =>
                          {ok,[#{acl => all,value => 10}]}}},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_mnesia_prefs => [{pm,true}],
        mod_mam_rdbms_arch => [],
        mod_mam_rdbms_user => [{pm,true}],
        mod_muc =>
            [{host,{prefix,<<"groupchats.">>}},
             {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,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:21:21


*** CT 2022-03-04 11:21:21.226 *** View log from node mongooseim@localhost when started mongooseim@localhost_1833.html
*** CT 2022-03-04 11:21:21.226 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_529.html

*** User 2022-03-04 11:21:21.987 ***
alicE_unnamed_1401@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:21:21.988 ***
alicE_unnamed_1401@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6f28e9266aceeda' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:21:21.988 ***
alicE_unnamed_1401@domain.example.com/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-03-04 11:21:21.988 ***
alicE_unnamed_1401@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTQwMQBtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:21:21.989 ***
alicE_unnamed_1401@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:21:21.989 ***
alicE_unnamed_1401@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:21:21.989 ***
alicE_unnamed_1401@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0959f0157e6a7db0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:21:21.989 ***
alicE_unnamed_1401@domain.example.com/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-03-04 11:21:21.989 ***
alicE_unnamed_1401@domain.example.com/res1 out
<iq type='set' id='ec988efe1f1ea68fd5f4f6902d762ded'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:21:21.990 ***
alicE_unnamed_1401@domain.example.com/res1 in
<iq id='ec988efe1f1ea68fd5f4f6902d762ded' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1401@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:21:21.990 ***
alicE_unnamed_1401@domain.example.com/res1 out
<iq type='set' id='e213b3df048163766706c6eb4dc84c45'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:21:21.990 ***
alicE_unnamed_1401@domain.example.com/res1 in
<iq type='result' id='e213b3df048163766706c6eb4dc84c45'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:21:21.990 ***
alicE_unnamed_1401@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:21:21.992 ***
alicE_unnamed_1401@domain.example.com/res1 in
<presence from='alicE_unnamed_1401@domain.example.com/res1' to='alice_unnamed_1401@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:21:21.992 ***
alicE_unnamed_1401@domain.example.com/res1 out
<iq type='set' id='1bb45b2a65855b41764273ef0336995e'>
	<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-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='2d7ddf13-a2d2-488b-a5d1-cdc9d0b27f2b'>
	<result xmlns='urn:xmpp:mam:2' id='BM0PS37GIG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T03:02:21Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1401@domain.example.com' type='chat'>
				<body>085c572a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='a44c5fa0-078a-4584-9caf-258b6e7676ed'>
	<result xmlns='urn:xmpp:mam:2' id='BM0T30VJA00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T06:52:36Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1401@domain.example.com' type='chat'>
				<body>1d6007be</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='c2eb45bd-e824-413a-8413-81bf4b7ff6f9'>
	<result xmlns='urn:xmpp:mam:2' id='BM1P498AG005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T16:19:44Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1401@domain.example.com' type='chat'>
				<body>3c62d869</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='f5865cf3-5b41-4abc-8d45-2a2391a5286d'>
	<result xmlns='urn:xmpp:mam:2' id='BM1P8VU3C002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T16:30:16Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1401@domain.example.com' type='chat'>
				<body>76b85999</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='df684d02-7bd0-447a-8f50-6a935f6d1255'>
	<result xmlns='urn:xmpp:mam:2' id='BM223N6NLG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T03:02:43Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1401@domain.example.com' type='chat'>
				<body>2bc7b459</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='984d7cf2-30f3-4998-a705-767cdb84bf32'>
	<result xmlns='urn:xmpp:mam:2' id='BM2HMJMVTG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T21:38:43Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1401@domain.example.com' type='chat'>
				<body>26bb6073</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='69968142-0255-4f02-8cca-2b73d2e4f991'>
	<result xmlns='urn:xmpp:mam:2' id='BM2KN37L0G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T01:14:33Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1401@domain.example.com' type='chat'>
				<body>1df68073</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='99175d3f-2b6b-4e31-ae0b-f89e7173d571'>
	<result xmlns='urn:xmpp:mam:2' id='BM2RP5IC000K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T09:40:16Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1401@domain.example.com' type='chat'>
				<body>6993d2c1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.994 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='289012c3-762e-44ba-bf7a-aa59a59e6e81'>
	<result xmlns='urn:xmpp:mam:2' id='BM3IM908U00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T13:00:12Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1401@domain.example.com' type='chat'>
				<body>dfa1a9d2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.995 ***
alicE_unnamed_1401@domain.example.com/res1 in
<message from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='ec3057ca-a81b-4e52-885c-d9c1d03431d8'>
	<result xmlns='urn:xmpp:mam:2' id='BM3PD3I7N004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T21:00:46Z' from='alice_unnamed_1401@domain.example.com'/>
			<message from='alice_unnamed_1401@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1401@domain.example.com' type='chat'>
				<body>76f47b98</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.995 ***
alicE_unnamed_1401@domain.example.com/res1 in
<iq from='alicE_unnamed_1401@domain.example.com' to='alicE_unnamed_1401@domain.example.com/res1' id='1bb45b2a65855b41764273ef0336995e' type='result'>
	<fin xmlns='urn:xmpp:mam:2'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0PS37GIG06</first>
			<last>BM3PD3I7N004</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-03-04 11:21:21.995 ***
alicE_unnamed_1401@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:21:21.995 ***
alicE_unnamed_1401@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:21:22.003 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:21:22.003 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1838.html



=== Ended at 2022-03-04 11:21:22
=== successfully completed test case
=== === Returned value: ok