=== 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.4869.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.mam_SUITE.logs/run.2022-01-27_15.29.00/mam_suite.querying_for_all_messages_with_jid.70659.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.mam_SUITE.logs/run.2022-01-27_15.29.00/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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:29:49


*** CT 2022-01-27 15:29:49.661 *** View log from node mongooseim@localhost when started mongooseim@localhost_1710.html
*** CT 2022-01-27 15:29:49.662 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

*** User 2022-01-27 15:29:50.111 ***
alicE_unnamed_1319@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-27 15:29:50.112 ***
alicE_unnamed_1319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d3854a20ccbb3bbd' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:29:50.112 ***
alicE_unnamed_1319@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-27 15:29:50.112 ***
alicE_unnamed_1319@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTMxOQBtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 15:29:50.113 ***
alicE_unnamed_1319@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:29:50.113 ***
alicE_unnamed_1319@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-27 15:29:50.113 ***
alicE_unnamed_1319@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a1b9b963e94365c6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:29:50.114 ***
alicE_unnamed_1319@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-27 15:29:50.114 ***
alicE_unnamed_1319@localhost/res1 out
<iq type='set' id='5abd31fce56b71e02253d5ee77cfb2f2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:29:50.114 ***
alicE_unnamed_1319@localhost/res1 in
<iq id='5abd31fce56b71e02253d5ee77cfb2f2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1319@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:29:50.114 ***
alicE_unnamed_1319@localhost/res1 out
<iq type='set' id='a8e9f95b8c1ababd319f46c1a216f4ad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:50.114 ***
alicE_unnamed_1319@localhost/res1 in
<iq type='result' id='a8e9f95b8c1ababd319f46c1a216f4ad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:50.114 ***
alicE_unnamed_1319@localhost/res1 out
<presence/>



*** User 2022-01-27 15:29:50.116 ***
alicE_unnamed_1319@localhost/res1 in
<presence from='alicE_unnamed_1319@localhost/res1' to='alice_unnamed_1319@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:29:50.117 ***
alicE_unnamed_1319@localhost/res1 out
<iq type='set' id='13600840c91ba3acb41f81fdddceebfc'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1319@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:50.121 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='94311e59-9d6d-4f52-9b26-9bcf9991b308'>
	<result xmlns='urn:xmpp:mam:2' id='BLA5JEVG9004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T02:57:06Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>d501d42c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.121 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='bbbd1b9d-43c5-4925-bac5-8822a25c2d8e'>
	<result xmlns='urn:xmpp:mam:2' id='BLB6TN9P8G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T18:42:17Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>59d01b64</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='f90f1fae-b84b-4a20-a592-57eb863a2998'>
	<result xmlns='urn:xmpp:mam:2' id='BLBUKAJFDG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:59:15Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>fb57fe38</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='8d6062e9-24b7-4d9e-aa7b-260ec187938b'>
	<result xmlns='urn:xmpp:mam:2' id='BLCA6RS54007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T12:48:08Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>e19e1497</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='45895115-8f94-40fa-ae5a-df10c4cd4ee7'>
	<result xmlns='urn:xmpp:mam:2' id='BLCU31FKH00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T12:31:14Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>be8ddbc0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='6a4b4911-f28b-40b1-bb21-2cb04583e673'>
	<result xmlns='urn:xmpp:mam:2' id='BLDG3DP7DG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T10:00:35Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>5a735e64</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='f4a0fe98-89bd-4131-8394-7beaba600bfd'>
	<result xmlns='urn:xmpp:mam:2' id='BLE60DKE8G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T12:08:41Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>785a1087</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='9cf54591-5524-47d1-b480-fa284aef4753'>
	<result xmlns='urn:xmpp:mam:2' id='BLEOQ3BQIG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T10:34:37Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>c5d3981d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='081bbbdd-d71a-451c-aa33-1bb6b4b5aafb'>
	<result xmlns='urn:xmpp:mam:2' id='BLFNHMDVAG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T23:14:53Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>3d346f4d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='620fc9ec-7df0-4c69-9d0e-b6d5e79eae72'>
	<result xmlns='urn:xmpp:mam:2' id='BLG83FLAO002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T19:00:00Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>30c80bd6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='2ce8f4ab-6fc2-4ce1-96b5-2c8e4a5990e6'>
	<result xmlns='urn:xmpp:mam:2' id='BLGME47JB00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T12:05:58Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>cf289863</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='17af931e-878b-48dd-b40b-81a3ef12acae'>
	<result xmlns='urn:xmpp:mam:2' id='BLHHGC6P8006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T20:23:44Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>30e2bb9d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='b918e399-3fef-4dd6-a569-9d23d558316f'>
	<result xmlns='urn:xmpp:mam:2' id='BLI234T77G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T16:11:03Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>bfdb60ca</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='915bd7e3-7583-4183-9bed-05d71257cedf'>
	<result xmlns='urn:xmpp:mam:2' id='BLIGSKKS300E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T09:50:14Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>6217dda7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='ab12e792-6dc9-4ecf-9804-8d773b3160a5'>
	<result xmlns='urn:xmpp:mam:2' id='BLISTJG21G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T00:11:23Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>44e2c723</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.122 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='e25888cf-0b19-4543-941b-ee1b38ef75b7'>
	<result xmlns='urn:xmpp:mam:2' id='BLJHJDNTFG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T00:51:51Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>78a51700</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.123 ***
alicE_unnamed_1319@localhost/res1 in
<message from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='203fc142-2a69-4f0a-8f59-ec4ba7a39147'>
	<result xmlns='urn:xmpp:mam:2' id='BLK9KOJI900G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T05:32:50Z' from='alice_unnamed_1319@localhost'/>
			<message from='alice_unnamed_1319@localhost' xmlns='jabber:client' to='bOb_unnamed_1319@localhost' type='chat'>
				<body>4e8f21b6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:50.124 ***
alicE_unnamed_1319@localhost/res1 in
<iq from='alicE_unnamed_1319@localhost' to='alicE_unnamed_1319@localhost/res1' id='13600840c91ba3acb41f81fdddceebfc' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLA5JEVG9004</first>
			<last>BLK9KOJI900G</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-27 15:29:50.124 ***
alicE_unnamed_1319@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:29:50.124 ***
alicE_unnamed_1319@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:50.133 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:50.133 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1714.html



=== Ended at 2022-01-27 15:29:50
=== successfully completed test case
=== === Returned value: ok