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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.172.1>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.19.57/mam_suite.limit_archive_request.54531.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.19.57/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"localhost">>},max_user_sessions] =>
                          {ok,[#{acl => all,value => 10}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_mnesia_prefs => [{pm,true}],
        mod_mam_rdbms_arch => [],
        mod_mam_rdbms_user => [{pm,true}],
        mod_muc =>
            [{host,{prefix,<<"muc.">>}},
             {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,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:20:25


*** CT 2022-03-04 11:20:25.119 *** View log from node mongooseim@localhost when started mongooseim@localhost_1419.html
*** CT 2022-03-04 11:20:25.120 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_524.html

*** User 2022-03-04 11:20:25.371 ***
alicE_unnamed_1090@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:20:25.371 ***
alicE_unnamed_1090@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18d83e38915e8313' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:25.371 ***
alicE_unnamed_1090@localhost/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:25.372 ***
alicE_unnamed_1090@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTA5MABtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1090@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1090@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1090@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7479e52980fe6229' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1090@localhost/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:25.374 ***
alicE_unnamed_1090@localhost/res1 out
<iq type='set' id='86a2090b8c3b2492bc7276d42b0f5fbc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:20:25.375 ***
alicE_unnamed_1090@localhost/res1 in
<iq id='86a2090b8c3b2492bc7276d42b0f5fbc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1090@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1090@localhost/res1 out
<iq type='set' id='cf359c7dbc15f9f865a4d78e62cf630b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1090@localhost/res1 in
<iq type='result' id='cf359c7dbc15f9f865a4d78e62cf630b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1090@localhost/res1 out
<presence/>



*** User 2022-03-04 11:20:25.380 ***
alicE_unnamed_1090@localhost/res1 in
<presence from='alicE_unnamed_1090@localhost/res1' to='alice_unnamed_1090@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:20:25.380 ***
alicE_unnamed_1090@localhost/res1 out
<iq type='set' id='01e2d6f293c05aaf860a16ef7bfddc21'>
	<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:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='d9f62b61-c76e-4c2e-b0f9-6b7fe38e5814'>
	<result xmlns='urn:xmpp:mam:1' id='BM0PA7G7BG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T02:22:23Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='bOb_unnamed_1090@localhost' type='chat'>
				<body>e046c7e3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='af3e7ac2-bfca-42da-9d29-30e272c3bb2d'>
	<result xmlns='urn:xmpp:mam:1' id='BM130I3OLG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T13:56:35Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='carol_unnamed_1090@localhost' type='chat'>
				<body>77c6a176</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='6d89e05e-ec91-4a22-91f0-065bd8832f48'>
	<result xmlns='urn:xmpp:mam:1' id='BM1IQ89LA00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T08:47:48Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='carol_unnamed_1090@localhost' type='chat'>
				<body>b5a65b47</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='88c43c98-eb07-4ba0-bdbb-8724aab3d80d'>
	<result xmlns='urn:xmpp:mam:1' id='BM1SU85GH003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T20:52:34Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='bOb_unnamed_1090@localhost' type='chat'>
				<body>5ccbb916</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='b316a668-85da-488f-8615-dabba4a8951a'>
	<result xmlns='urn:xmpp:mam:1' id='BM2IH7IQC00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T22:38:16Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='bOb_unnamed_1090@localhost' type='chat'>
				<body>a4745c56</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='ccac11ba-5b28-430d-9311-5c80e4ba86ff'>
	<result xmlns='urn:xmpp:mam:1' id='BM2J9KSB6G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T23:32:53Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='carol_unnamed_1090@localhost' type='chat'>
				<body>e7fe8589</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='55aac98b-ef07-4891-ad70-4e94ebb20f42'>
	<result xmlns='urn:xmpp:mam:1' id='BM326LKAN00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T17:19:58Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='bOb_unnamed_1090@localhost' type='chat'>
				<body>f22ee2ae</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='a8159fc5-7eca-4e37-a3ac-e4df70942977'>
	<result xmlns='urn:xmpp:mam:1' id='BM32GB39800A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T17:41:36Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='carol_unnamed_1090@localhost' type='chat'>
				<body>0fde798c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='504c05d7-6245-4df7-acbc-16f46077dd0f'>
	<result xmlns='urn:xmpp:mam:1' id='BM3EIHGUHG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T08:05:31Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='carol_unnamed_1090@localhost' type='chat'>
				<body>45d3525d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<message from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='e7b514e7-e8a1-4bfe-9b42-aa48c42ff9b5'>
	<result xmlns='urn:xmpp:mam:1' id='BM3MV3PNL00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T18:06:18Z' from='alice_unnamed_1090@localhost'/>
			<message from='alice_unnamed_1090@localhost' xmlns='jabber:client' to='bOb_unnamed_1090@localhost' type='chat'>
				<body>e253274a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1090@localhost/res1 in
<iq from='alicE_unnamed_1090@localhost' to='alicE_unnamed_1090@localhost/res1' id='01e2d6f293c05aaf860a16ef7bfddc21' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0PA7G7BG0H</first>
			<last>BM3MV3PNL00K</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1090@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1090@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:25.393 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_524.html
*** CT 2022-03-04 11:20:25.394 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1422.html



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