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

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:1">>}]},
     {watchdog,<0.27801.0>},
     {basic_group,mam_all},
     {configuration,rdbms_async_pool},
     {wait_for_parallel_writer,[pm]},
     {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.44675.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_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_rdbms_arch => [{no_writer,true}],
        mod_mam_rdbms_arch_async => [{pm,[{flush_interval,1}]}],
        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:20


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

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

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



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



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

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



*** User 2022-01-27 15:29:21.104 ***
alicE_unnamed_1056@localhost/res1 in
<iq id='431a2a2efa61f809e5ff345a63587581' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1056@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



*** User 2022-01-27 15:29:21.106 ***
alicE_unnamed_1056@localhost/res1 out
<iq type='set' id='83b5e50102ddf3f5d5f1b03852344374'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1056@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='fd519880-d618-47bf-97c7-1e4e9d3e656a'>
	<result xmlns='urn:xmpp:mam:1' id='BLAI7CR48G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T18:00:41Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>4b011ee1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='71eab587-3d3a-476b-b849-a82256a6a57e'>
	<result xmlns='urn:xmpp:mam:1' id='BLAQOF42A005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T04:11:32Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>e62bce43</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='072ba643-4120-4463-9935-fe595a190d34'>
	<result xmlns='urn:xmpp:mam:1' id='BLBMQ8AFFG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T13:39:51Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>79bfbe3c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='8259d52b-3928-41bc-883e-c0fcd21388e1'>
	<result xmlns='urn:xmpp:mam:1' id='BLCDQD8PU003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T17:06:36Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>9f4c1ffe</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='6265cc0f-ff49-4b4c-9141-10d1186bc4ab'>
	<result xmlns='urn:xmpp:mam:1' id='BLCOASFSMG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T05:39:17Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>fc558836</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='11b121ba-0f70-4190-9458-ca31a57c431b'>
	<result xmlns='urn:xmpp:mam:1' id='BLD8D2F9L00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T00:49:30Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>376f2339</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='5ef6cf56-de88-46ae-ae04-c53b2a7c340a'>
	<result xmlns='urn:xmpp:mam:1' id='BLDUVND59G0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T03:46:03Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>8b7eada6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='b3edc177-4941-41f2-bf58-5d8b4f5765a2'>
	<result xmlns='urn:xmpp:mam:1' id='BLELIE0DTG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T06:42:43Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>911024e9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='ba48a1c4-d230-45d1-a538-f3c76bca0deb'>
	<result xmlns='urn:xmpp:mam:1' id='BLF7I2F2O006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T04:10:24Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>464400d2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='6c5a9c88-e66f-4f87-8698-abcec7e5f39d'>
	<result xmlns='urn:xmpp:mam:1' id='BLG4CHA1LG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T14:33:55Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>76c84e87</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='ed82c15f-565d-4b7e-bc73-738a8a4c2638'>
	<result xmlns='urn:xmpp:mam:1' id='BLGGILRLBG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T05:06:39Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>2db8d55e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='ddc68e0c-7fca-4988-88ce-da9b59d4fdd2'>
	<result xmlns='urn:xmpp:mam:1' id='BLH7H226B001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T08:29:26Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>26786d0e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='aedf5601-7d3f-44c7-8161-9f8445b50219'>
	<result xmlns='urn:xmpp:mam:1' id='BLHU5J2LDG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T11:30:11Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>0583605f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.110 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='f3ea0a8e-405f-412f-adbc-1e0b8a0094e7'>
	<result xmlns='urn:xmpp:mam:1' id='BLIKLGO5J00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T14:20:38Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>43f0a64b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.111 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='b9f3e8bf-6f58-442b-9547-462ca4fa54d4'>
	<result xmlns='urn:xmpp:mam:1' id='BLJAAR8NNG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T16:11:35Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>2c24cbd6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.111 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='4256c45f-24f1-4385-99e0-fbdae8138b95'>
	<result xmlns='urn:xmpp:mam:1' id='BLJN0QU2H00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T07:19:46Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>96d44b9b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.111 ***
alicE_unnamed_1056@localhost/res1 in
<message from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='0d2643ed-aac6-48cd-9b8d-5c0958dda531'>
	<result xmlns='urn:xmpp:mam:1' id='BLKAJ7NPE001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T06:41:00Z' from='alice_unnamed_1056@localhost'/>
			<message from='alice_unnamed_1056@localhost' xmlns='jabber:client' to='bOb_unnamed_1056@localhost' type='chat'>
				<body>1ce34dd1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.111 ***
alicE_unnamed_1056@localhost/res1 in
<iq from='alicE_unnamed_1056@localhost' to='alicE_unnamed_1056@localhost/res1' id='83b5e50102ddf3f5d5f1b03852344374' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLAI7CR48G0C</first>
			<last>BLKAJ7NPE001</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:21.111 ***
alicE_unnamed_1056@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:21.114 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:21.116 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1072.html



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