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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.40906.0>},
     {basic_group,mam_all},
     {configuration,rdbms},
     {mam_meta_opts,#{cache =>
                          #{module => internal,strategy => fifo,
                            number_of_segments => 3,time_to_live => 480},
                      send_message => mod_mam_utils,
                      pm =>
                          #{archive_groupchats => false,
                            same_mam_id_for_peers => false},
                      backend => rdbms,max_result_limit => 50,
                      is_archivable_message => mod_mam_utils,
                      full_text_search => true,message_retraction => true,
                      async_writer =>
                          #{enabled => false,batch_size => 30,
                            flush_interval => 2000,pool_size => 16},
                      default_result_limit => 50,
                      enforce_simple_queries => false,
                      archive_chat_markers => false,
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@17a96e781220.2024-03-21_22.20.25/big_tests.tests.mam_SUITE.logs/run.2024-03-21_22.27.04/mam_suite.limit_archive_request.102786.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.mam_SUITE.logs/run.2024-03-21_22.27.04/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,[#{value => 10,acl => all}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_muc =>
            #{access => muc,
              host => {prefix,<<"muc.">>},
              backend => rdbms,max_users => 200,room_shaper => none,
              http_auth_pool => none,hibernate_timeout => 2000,
              online_backend => mnesia,history_size => 20,
              min_presence_interval => 0,access_admin => none,
              access_persistent => all,max_users_admin_threshold => 5,
              user_message_shaper => none,user_presence_shaper => none,
              min_message_interval => 0,max_user_conferences => 10,
              max_room_name => infinity,max_room_desc => infinity,
              default_room =>
                  #{public => true,description => <<>>,title => <<>>,
                    persistent => false,password => <<>>,subject => <<>>,
                    affiliations => [],anonymous => true,
                    allow_change_subj => true,allow_query_users => true,
                    allow_private_messages => true,
                    allow_visitor_status => true,
                    allow_visitor_nickchange => true,public_list => true,
                    moderated => true,members_by_default => true,
                    members_only => false,allow_user_invites => false,
                    allow_multiple_sessions => false,
                    password_protected => false,max_users => 200,
                    maygetmemberlist => [],logging => false,
                    subject_author => <<>>},
              hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,access_create => muc_create,
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_muc_log =>
            #{dirname => room_jid,outdir => "/tmp/muclogs",
              file_format => html,css_file => false,timezone => local,
              spam_prevention => true,
              top_link => {"/","Home"},
              access_log => muc,dirtype => subdirs},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {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@17a96e781220.2024-03-21_22.20.25"

=== Started at 2024-03-21 22:27:05


*** CT 2024-03-21 22:27:05.329 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2805.html

*** User 2024-03-21 22:27:05.627 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-03-21 22:27:05.628 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-03-21 22:27:05.629 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-03-21 22:27:05.632 ***🔗
alicE_unnamed_1680@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 22:27:05.632 ***🔗
alicE_unnamed_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ab34a4944d79a39' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 22:27:05.633 ***🔗
alicE_unnamed_1680@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 22:27:05.633 ***🔗
alicE_unnamed_1680@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTY4MABtYXR5Z3J5c2E=</auth>



*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='043f0797c5bd16e9' from='localhost' version='1.0' xml:lang='en' to='alice_unnamed_1680@localhost'>

*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 out
<iq type='set' id='8507fc106faf8c15fac4f4893b11a700'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 22:27:05.634 ***🔗
alicE_unnamed_1680@localhost/res1 in
<iq id='8507fc106faf8c15fac4f4893b11a700' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_unnamed_1680@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 22:27:05.634 ***🔗
alice_unnamed_1680@localhost/res1 out
<iq type='set' id='c5907b044874f39c53b3bf22233404f1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:27:05.635 ***🔗
alice_unnamed_1680@localhost/res1 in
<iq from='localhost' to='alice_unnamed_1680@localhost/res1' id='c5907b044874f39c53b3bf22233404f1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:27:05.635 ***🔗
alice_unnamed_1680@localhost/res1 out
<presence/>



*** User 2024-03-21 22:27:05.637 ***🔗
alice_unnamed_1680@localhost/res1 in
<presence from='alice_unnamed_1680@localhost/res1' to='alice_unnamed_1680@localhost/res1'/>



*** User 2024-03-21 22:27:05.637 ***🔗
alice_unnamed_1680@localhost/res1 out
<iq type='set' id='f2b183e8fef923a9181e3bc5d9fa2249'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data' type='submit'>
			<field var='start'>
				<value>2010-08-07T00:00:00Z</value>
			</field>
		</x>
		<set>
			<max>10</max>
		</set>
	</query>
</iq>



*** User 2024-03-21 22:27:05.641 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='2395534a-f5f0-4196-9110-b87c8804f741'>
	<result xmlns='urn:xmpp:mam:1' id='C4N61MB5Q00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-05T08:59:00.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_1680@localhost'>
				<body>fe733250</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.641 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='02de096a-65fa-4577-95e2-476837f8e379'>
	<result xmlns='urn:xmpp:mam:1' id='C4N8PSGACG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-05T12:16:17.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_1680@localhost'>
				<body>481a53d2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.641 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='ea64481b-4623-4e9e-a608-430b3e5e57a7'>
	<result xmlns='urn:xmpp:mam:1' id='C4NKV79USG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-06T02:47:13.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_1680@localhost'>
				<body>ca3cf8f1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.641 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='967ca236-6bf1-4100-8fb8-fa20a4ce5b09'>
	<result xmlns='urn:xmpp:mam:1' id='C4NNBC607006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-06T05:37:34.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_1680@localhost'>
				<body>9d0db33b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.641 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='e8169047-e16a-4ae4-a540-88b49e891c38'>
	<result xmlns='urn:xmpp:mam:1' id='C4OC34SOG00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-07T06:22:24.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_1680@localhost'>
				<body>594bfe9c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.642 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='5c76d12b-baa1-43ea-b7cc-f06dc1dd82d4'>
	<result xmlns='urn:xmpp:mam:1' id='C4OIRAJKNG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-07T14:25:59.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_1680@localhost'>
				<body>47bd90cb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.642 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='6e8b43be-8070-467c-a72b-901b57123d34'>
	<result xmlns='urn:xmpp:mam:1' id='C4PC43DLRG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-08T20:35:11.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_1680@localhost'>
				<body>d96cddd3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.642 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='07d2160a-9852-447c-b460-b2742d65d4ac'>
	<result xmlns='urn:xmpp:mam:1' id='C4PCVOLK0001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-08T21:37:04.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_1680@localhost'>
				<body>cb352117</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.642 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='6e00d4f8-6a66-4001-90a8-c375c985c40f'>
	<result xmlns='urn:xmpp:mam:1' id='C4PJ7Q6RP00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-09T05:04:34.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='bOb_unnamed_1680@localhost'>
				<body>3d6f9477</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.642 ***🔗
alice_unnamed_1680@localhost/res1 in
<message from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='697f54a9-2f37-4a82-a8f3-6500da33abe4'>
	<result xmlns='urn:xmpp:mam:1' id='C4PK5AISPG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2024-03-09T06:10:35.000000Z' from='alice_unnamed_1680@localhost'/>
			<message from='alice_unnamed_1680@localhost' xmlns='jabber:client' type='chat' to='carol_unnamed_1680@localhost'>
				<body>b1a1f95f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2024-03-21 22:27:05.643 ***🔗
alice_unnamed_1680@localhost/res1 in
<iq from='alice_unnamed_1680@localhost' to='alice_unnamed_1680@localhost/res1' id='f2b183e8fef923a9181e3bc5d9fa2249' type='result'>
	<fin xmlns='urn:xmpp:mam:1'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>C4N61MB5Q00J</first>
			<last>C4PK5AISPG0F</last>
			<count>34</count>
		</set>
	</fin>
</iq>



*** User 2024-03-21 22:27:05.643 ***🔗
alice_unnamed_1680@localhost/res1 out
</stream:stream>

*** User 2024-03-21 22:27:05.643 ***🔗
alice_unnamed_1680@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 22:27:05.647 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2809.html



=== Ended at 2024-03-21 22:27:05
=== successfully completed test case
=== === Returned value: ok