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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.1680.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@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.56195.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@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_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,<<"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:04


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

*** User 2022-03-04 11:21:04.467 ***
alicE_unnamed_1228@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:04.467 ***
alicE_unnamed_1228@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbb2d22b7f28bd8c' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2022-03-04 11:21:04.469 ***
alicE_unnamed_1228@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:04.469 ***
alicE_unnamed_1228@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='38b48f51f9bd7d81' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



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



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



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



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



*** User 2022-03-04 11:21:04.472 ***
alicE_unnamed_1228@domain.example.com/res1 out
<iq type='set' id='89d64d14c33a3cf41874caad04f88e88'>
	<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:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='609810f9-e459-44e4-ae36-f3b3b23ec884'>
	<result xmlns='urn:xmpp:mam:2' id='BM0NU4P3900A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T00:43:46Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1228@domain.example.com' type='chat'>
				<body>5d842db8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='387cbcf0-34a7-4053-81bb-622a88d23d53'>
	<result xmlns='urn:xmpp:mam:2' id='BM14QECH600K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T16:06:04Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1228@domain.example.com' type='chat'>
				<body>ef44a58c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='e9d122ec-9f10-477b-8732-8f6cdc22993e'>
	<result xmlns='urn:xmpp:mam:2' id='BM1EN9C5D00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T03:54:50Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1228@domain.example.com' type='chat'>
				<body>a79bf170</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='1a4e266e-3282-4482-9062-2f99725c1d88'>
	<result xmlns='urn:xmpp:mam:2' id='BM1G2838800G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T05:30:56Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1228@domain.example.com' type='chat'>
				<body>9af20cdb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='ba5afe43-d234-44c5-9923-a0a4268cc6fe'>
	<result xmlns='urn:xmpp:mam:2' id='BM24TONJ8G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T06:24:09Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1228@domain.example.com' type='chat'>
				<body>049cec36</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='c5ed1287-6c3b-48b1-ac59-91af991cf5ad'>
	<result xmlns='urn:xmpp:mam:2' id='BM2A1DJ83001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T12:30:14Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1228@domain.example.com' type='chat'>
				<body>3999dbed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='56ce4c02-70a3-4159-97db-53ca97098541'>
	<result xmlns='urn:xmpp:mam:2' id='BM2TDGERSG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T11:37:21Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1228@domain.example.com' type='chat'>
				<body>ed947de0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.474 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='d064b038-f5e5-4e5e-a68d-f245fea48bc7'>
	<result xmlns='urn:xmpp:mam:2' id='BM30QILIG007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T15:41:20Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1228@domain.example.com' type='chat'>
				<body>9a7710fb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.475 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='0f579914-30a8-4f42-bafd-4edffed39227'>
	<result xmlns='urn:xmpp:mam:2' id='BM39IAAQD00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T02:07:06Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1228@domain.example.com' type='chat'>
				<body>2514a6aa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.475 ***
alicE_unnamed_1228@domain.example.com/res1 in
<message from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='2863e4a4-38cd-4ed0-bcc3-f10c2e177324'>
	<result xmlns='urn:xmpp:mam:2' id='BM3QL6V8MG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T22:30:29Z' from='alice_unnamed_1228@domain.example.com'/>
			<message from='alice_unnamed_1228@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1228@domain.example.com' type='chat'>
				<body>2f5b6b71</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:04.475 ***
alicE_unnamed_1228@domain.example.com/res1 in
<iq from='alicE_unnamed_1228@domain.example.com' to='alicE_unnamed_1228@domain.example.com/res1' id='89d64d14c33a3cf41874caad04f88e88' type='result'>
	<fin xmlns='urn:xmpp:mam:2'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0NU4P3900A</first>
			<last>BM3QL6V8MG01</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-03-04 11:21:04.476 ***
alicE_unnamed_1228@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:21:04.502 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:21:04.503 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1489.html



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