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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.4685.1>},
     {basic_group,mam_all},
     {configuration,rdbms_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.46596.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_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 => [],
        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:12


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-03-04 11:21:12.676 ***
alicE_unnamed_1296@domain.example.com/res1 out
<iq type='set' id='56a5dc28c06c3bcdbb0b93c563b62fbe'>
	<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:21:12.682 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='73f592db-8770-4f22-baed-65bcecd9e205'>
	<result xmlns='urn:xmpp:mam:1' id='BM0SRE180G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T06:35:37Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1296@domain.example.com' type='chat'>
				<body>9d5da804</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.682 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='8f03cbf1-c463-42af-8e2b-7aee68832fa6'>
	<result xmlns='urn:xmpp:mam:1' id='BM10H3C8T00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T10:58:50Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1296@domain.example.com' type='chat'>
				<body>da3d5ea4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.682 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='a0191e6e-13a0-4276-9957-f80d03561760'>
	<result xmlns='urn:xmpp:mam:1' id='BM1K0J6GV00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T10:13:34Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1296@domain.example.com' type='chat'>
				<body>3a6e31ea</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.682 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='1ec49676-2474-4e48-87cd-4214c976a6b3'>
	<result xmlns='urn:xmpp:mam:1' id='BM1OM7QTDG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T15:48:19Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1296@domain.example.com' type='chat'>
				<body>9a32fc79</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.682 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='ae1d0e9c-75e4-4eb7-a76d-f2f0f313b910'>
	<result xmlns='urn:xmpp:mam:1' id='BM28LDG1I007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T10:51:48Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1296@domain.example.com' type='chat'>
				<body>a6f3ea88</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='c306d5f1-1834-43a4-b679-d38d203e262e'>
	<result xmlns='urn:xmpp:mam:1' id='BM2BEH77IG0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T14:11:09Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1296@domain.example.com' type='chat'>
				<body>8504fe1f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='611f3850-9d9d-4d17-8f17-e1d49889bc4e'>
	<result xmlns='urn:xmpp:mam:1' id='BM2M4H3MHG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T02:56:11Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1296@domain.example.com' type='chat'>
				<body>0022f174</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='045f5dfc-ee9e-4083-b324-a917a110144d'>
	<result xmlns='urn:xmpp:mam:1' id='BM332DVEM00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T18:22:04Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1296@domain.example.com' type='chat'>
				<body>db9df9c4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='cdda5866-04e2-47a3-8c7a-08bfffb18e8d'>
	<result xmlns='urn:xmpp:mam:1' id='BM3D7AU3200H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T06:28:52Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1296@domain.example.com' type='chat'>
				<body>772927d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<message from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='9a9bcd4b-3e98-40e2-b946-dc75c8333a73'>
	<result xmlns='urn:xmpp:mam:1' id='BM3RF79FK00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T23:28:40Z' from='alice_unnamed_1296@domain.example.com'/>
			<message from='alice_unnamed_1296@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1296@domain.example.com' type='chat'>
				<body>83bd0a01</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
<iq from='alicE_unnamed_1296@domain.example.com' to='alicE_unnamed_1296@domain.example.com/res1' id='56a5dc28c06c3bcdbb0b93c563b62fbe' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0SRE180G0A</first>
			<last>BM3RF79FK00C</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-03-04 11:21:12.683 ***
alicE_unnamed_1296@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:21:12.689 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:21:12.690 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1781.html



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