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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.27772.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@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.32516.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@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_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:20:47


*** CT 2022-03-04 11:20:47.663 *** View log from node mongooseim@localhost when started mongooseim@localhost_997.html
*** CT 2022-03-04 11:20:47.663 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_529.html

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

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



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



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

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



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



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



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



*** User 2022-03-04 11:20:47.979 ***
alicE_unnamed_1042@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:20:47.981 ***
alicE_unnamed_1042@domain.example.com/res1 in
<presence from='alicE_unnamed_1042@domain.example.com/res1' to='alice_unnamed_1042@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:20:47.981 ***
alicE_unnamed_1042@domain.example.com/res1 out
<iq type='set' id='2184224bd23f75ab0fd9ea009e22515a'>
	<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-03-04 11:20:47.984 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='b1efadb6-3eb8-4eb6-b9ca-e4da25b3e045'>
	<result xmlns='urn:xmpp:mam:1' id='BM0SF20QE00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T06:07:56Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1042@domain.example.com' type='chat'>
				<body>338dc164</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.984 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='77807906-d6c1-4c35-aea6-b78ddfd2c6db'>
	<result xmlns='urn:xmpp:mam:1' id='BM12I009O009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T13:24:00Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1042@domain.example.com' type='chat'>
				<body>ea9599e9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.984 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='2eb8d700-8eaf-4274-9938-44181a895369'>
	<result xmlns='urn:xmpp:mam:1' id='BM1HEJKLH00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T07:10:10Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1042@domain.example.com' type='chat'>
				<body>5892b112</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='a041d8a7-4125-431e-92c3-591d37f78b7f'>
	<result xmlns='urn:xmpp:mam:1' id='BM1IQENL3G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T08:48:15Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1042@domain.example.com' type='chat'>
				<body>ce3cc2e3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='5c255d36-6ca0-4813-b0ae-e827e279c784'>
	<result xmlns='urn:xmpp:mam:1' id='BM23B3UV9G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T04:30:51Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1042@domain.example.com' type='chat'>
				<body>b87c09d1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='c572a224-f914-4d37-b802-95ce1f2d91a7'>
	<result xmlns='urn:xmpp:mam:1' id='BM29EJBCS00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T11:48:08Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1042@domain.example.com' type='chat'>
				<body>48641b48</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='31575eae-a6f1-4317-ace3-57e69c11772f'>
	<result xmlns='urn:xmpp:mam:1' id='BM2MFP42SG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T03:21:21Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1042@domain.example.com' type='chat'>
				<body>9db1908b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='b019965c-872f-44cf-bfde-02db0555dc44'>
	<result xmlns='urn:xmpp:mam:1' id='BM2ULSTQ7008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T13:07:42Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1042@domain.example.com' type='chat'>
				<body>c109b144</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='ef3adb9c-aef1-4aa1-a2fb-8f1ec3144cba'>
	<result xmlns='urn:xmpp:mam:1' id='BM3FDN8VHG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T09:06:19Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1042@domain.example.com' type='chat'>
				<body>fabd75b6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<message from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='0ed01f30-f81d-4b68-afc8-f0890fd298fb'>
	<result xmlns='urn:xmpp:mam:1' id='BM3GEROH1G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T10:20:27Z' from='alice_unnamed_1042@domain.example.com'/>
			<message from='alice_unnamed_1042@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1042@domain.example.com' type='chat'>
				<body>5979e1b2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
<iq from='alicE_unnamed_1042@domain.example.com' to='alicE_unnamed_1042@domain.example.com/res1' id='2184224bd23f75ab0fd9ea009e22515a' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0SF20QE00E</first>
			<last>BM3GEROH1G0J</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:20:47.985 ***
alicE_unnamed_1042@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:48.040 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:20:48.041 *** View log from node mongooseim@localhost when finished mongooseim@localhost_997.html



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