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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.4354.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/mam_suite.querying_for_all_messages_with_jid.74243.html"},
     {tc_group_properties,[{name,mam06},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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/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_cache_user => [{pm,true}],
        mod_mam_rdbms_arch => [],
        mod_mam_rdbms_prefs => [{pm,true}],
        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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:26:54


*** CT 2022-01-25 16:26:54.556 *** View log from node mongooseim@localhost when started mongooseim@localhost_1710.html
*** CT 2022-01-25 16:26:54.558 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-01-25 16:26:55.102 ***
alicE_unnamed_1322@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-01-25 16:26:55.103 ***
alicE_unnamed_1322@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2bf581222f2d6364' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:55.103 ***
alicE_unnamed_1322@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-01-25 16:26:55.104 ***
alicE_unnamed_1322@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTMyMgBtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:26:55.108 ***
alicE_unnamed_1322@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:26:55.108 ***
alicE_unnamed_1322@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-01-25 16:26:55.108 ***
alicE_unnamed_1322@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82e29558a80046ec' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:55.108 ***
alicE_unnamed_1322@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-01-25 16:26:55.108 ***
alicE_unnamed_1322@localhost/res1 out
<iq type='set' id='6871b8b2a1e60547d35a4d0b43307755'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:26:55.109 ***
alicE_unnamed_1322@localhost/res1 in
<iq id='6871b8b2a1e60547d35a4d0b43307755' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1322@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:26:55.109 ***
alicE_unnamed_1322@localhost/res1 out
<iq type='set' id='6a5fcb28fbf476cfaf2ce97a22ad56bc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:55.109 ***
alicE_unnamed_1322@localhost/res1 in
<iq type='result' id='6a5fcb28fbf476cfaf2ce97a22ad56bc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:55.109 ***
alicE_unnamed_1322@localhost/res1 out
<presence/>



*** User 2022-01-25 16:26:55.111 ***
alicE_unnamed_1322@localhost/res1 in
<presence from='alicE_unnamed_1322@localhost/res1' to='alice_unnamed_1322@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:26:55.112 ***
alicE_unnamed_1322@localhost/res1 out
<iq type='set' id='3d605e464e3d36b82dcd46b13437cbdc'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1322@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='e80a5f0a-161d-4be0-bdd2-dc2dd621b3c9'>
	<result xmlns='urn:xmpp:mam:2' id='BL9DC1AKJ002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T22:02:30Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>02c70c22</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='887ab972-767f-44ab-8de3-b84bdf0850ab'>
	<result xmlns='urn:xmpp:mam:2' id='BL9KTO3EO004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T07:03:12Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>e7dffaee</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='132ce39a-982e-4615-b58b-39df2d25e11f'>
	<result xmlns='urn:xmpp:mam:2' id='BLABST3EBG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T10:27:43Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>491c501b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='6cd4ca57-0787-4d18-b698-11b39b75f726'>
	<result xmlns='urn:xmpp:mam:2' id='BLAPS37AQ00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T03:08:04Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>05641a0c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='4da58cb1-3be9-40d4-ae5f-b027b478f01c'>
	<result xmlns='urn:xmpp:mam:2' id='BLBM25O8VG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T12:45:59Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>1a4c8eb6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='d601b33b-187a-449c-b01e-2f3baf9ad6d0'>
	<result xmlns='urn:xmpp:mam:2' id='BLC7COLSHG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T09:26:35Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>ef1dcf39</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.117 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='558d0c82-a1ad-4ee6-ac7d-6ce3939cf0e1'>
	<result xmlns='urn:xmpp:mam:2' id='BLCRD5UFV00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T09:19:10Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>c7fd3692</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='0487cb79-6cc7-4ad0-9d03-95352925d3b9'>
	<result xmlns='urn:xmpp:mam:2' id='BLD8BP7DAG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T00:46:37Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>7f1e091a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='9a5db9ad-6605-4fbf-9597-a475d41c2cd4'>
	<result xmlns='urn:xmpp:mam:2' id='BLEBLFLVNG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T18:53:43Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>bd5f81d8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='57ce59a8-6f8d-4834-9b39-02ba11c06b17'>
	<result xmlns='urn:xmpp:mam:2' id='BLEH446VVG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T01:24:23Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>d4d922d4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='2f88dc99-bd29-4f29-8d64-1f2f35a38975'>
	<result xmlns='urn:xmpp:mam:2' id='BLFFCIQ6VG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T13:30:47Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>06fb3cee</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='241a8ada-6f62-4e67-9538-2064eaf0f899'>
	<result xmlns='urn:xmpp:mam:2' id='BLG6I6OGL002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T17:09:46Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>03e4e20d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='4ff9b5b0-a67e-4f70-8edb-156b0552b886'>
	<result xmlns='urn:xmpp:mam:2' id='BLH07TMQ1G09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T23:47:55Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>73481969</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='05a57347-5f84-4754-bf5c-dbee570bc91e'>
	<result xmlns='urn:xmpp:mam:2' id='BLHEVII05G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T17:22:59Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>9a2c2b2e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='8e478dd1-6d88-4d26-8a1a-1283d8a5c3be'>
	<result xmlns='urn:xmpp:mam:2' id='BLHRKA5JB003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T08:28:22Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>b56c2c7b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='74cbf975-66cc-42b8-aa1a-702271eb2eb5'>
	<result xmlns='urn:xmpp:mam:2' id='BLIQHSEGS007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T21:22:00Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>e6a4956d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.118 ***
alicE_unnamed_1322@localhost/res1 in
<message from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='9db5f17f-407e-48be-8de1-1e6ebf858fb8'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ1OLU90G0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T05:58:17Z' from='alice_unnamed_1322@localhost'/>
			<message from='alice_unnamed_1322@localhost' xmlns='jabber:client' to='bOb_unnamed_1322@localhost' type='chat'>
				<body>8cb3de0b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:55.119 ***
alicE_unnamed_1322@localhost/res1 in
<iq from='alicE_unnamed_1322@localhost' to='alicE_unnamed_1322@localhost/res1' id='3d605e464e3d36b82dcd46b13437cbdc' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL9DC1AKJ002</first>
			<last>BLJ1OLU90G0D</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:26:55.119 ***
alicE_unnamed_1322@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:26:55.119 ***
alicE_unnamed_1322@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:55.124 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:55.125 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1714.html



=== Ended at 2022-01-25 16:26:55
=== successfully completed test case
=== === Returned value: ok