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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.7700.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.68227.html"},
     {tc_group_properties,[{name,mam04},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:20


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-03-04 11:21:21.116 ***
alicE_unnamed_1386@domain.example.com/res1 out
<iq type='set' id='4bbbc7fd3af4167e15305c78388a0f0a'>
	<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:21.118 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='d606d690-872e-42fa-81aa-3f8d2f35e4e2'>
	<result xmlns='urn:xmpp:mam:1' id='BM0U1DNH2002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T08:00:36Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1386@domain.example.com' type='chat'>
				<body>d71baf0d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.118 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='ab2b904f-0abf-47e5-b9d8-15874fa49705'>
	<result xmlns='urn:xmpp:mam:1' id='BM0V88JI4G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T09:27:29Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1386@domain.example.com' type='chat'>
				<body>ba57d272</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.118 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='d5e97aa5-22c1-4142-921b-97903c5f95f6'>
	<result xmlns='urn:xmpp:mam:1' id='BM1H7PV14G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T06:54:57Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1386@domain.example.com' type='chat'>
				<body>672c96e4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.118 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='2ce2c82b-57e3-4b26-a5a8-1691268ce85f'>
	<result xmlns='urn:xmpp:mam:1' id='BM1VD2CS6G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T23:48:53Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1386@domain.example.com' type='chat'>
				<body>83d6698a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.118 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='02e710a4-ee66-4aa5-adaf-b11fe9f63f11'>
	<result xmlns='urn:xmpp:mam:1' id='BM22R1U03G08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T03:54:55Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1386@domain.example.com' type='chat'>
				<body>bac1784e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='9770396f-6b06-4951-b9b7-fa8332e087d0'>
	<result xmlns='urn:xmpp:mam:1' id='BM2IA77I1G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T22:22:35Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1386@domain.example.com' type='chat'>
				<body>4ddb61c6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='c4672eb4-e2bc-494c-b012-57f6d0325a72'>
	<result xmlns='urn:xmpp:mam:1' id='BM2SA2HF2G0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T10:18:05Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1386@domain.example.com' type='chat'>
				<body>675b58b3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='fb32cfb8-300b-4506-a7bc-d3341ce52497'>
	<result xmlns='urn:xmpp:mam:1' id='BM31OPEONG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T16:48:55Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1386@domain.example.com' type='chat'>
				<body>fbff4553</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='a12bf897-afda-4b51-a1ef-2506fe43f31b'>
	<result xmlns='urn:xmpp:mam:1' id='BM39T5MR9G0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T02:31:23Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_1386@domain.example.com' type='chat'>
				<body>ddb7b847</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<message from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='0900ba19-607a-4ffc-9049-fe651505e881'>
	<result xmlns='urn:xmpp:mam:1' id='BM3PC0GN1G0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T20:58:19Z' from='alice_unnamed_1386@domain.example.com'/>
			<message from='alice_unnamed_1386@domain.example.com' xmlns='jabber:client' to='carol_unnamed_1386@domain.example.com' type='chat'>
				<body>7b448e97</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
<iq from='alicE_unnamed_1386@domain.example.com' to='alicE_unnamed_1386@domain.example.com/res1' id='4bbbc7fd3af4167e15305c78388a0f0a' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0U1DNH2002</first>
			<last>BM3PC0GN1G0G</last>
			<count>34</count>
		</set>
	</fin>
</iq>



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

*** User 2022-03-04 11:21:21.119 ***
alicE_unnamed_1386@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:21:21.122 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:21:21.123 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1833.html



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