=== 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.1365.1>},
     {basic_group,mam_all},
     {configuration,rdbms_async_cache},
     {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.37892.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_async_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 => [{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:39


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:39.589 ***
alicE_unnamed_1224@localhost/res1 out
<iq type='set' id='d71a66a7e5fecb25e49632d828b2a063'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1224@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='157343b9-3c58-4e0a-9690-01711e558f72'>
	<result xmlns='urn:xmpp:mam:1' id='BLAH0K3OEG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T16:33:57Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>5a5e0cf9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='c0e22400-c861-4332-9fb9-ecb3fcbbf050'>
	<result xmlns='urn:xmpp:mam:1' id='BLASLCE02008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T06:27:48Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>e963e38c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='9dddc217-5e03-4c18-beea-a5e3205a2770'>
	<result xmlns='urn:xmpp:mam:1' id='BLBHSFAPF00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T07:46:54Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>5c895409</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='f249826b-0d78-4dce-bdcd-6aafd1b79ef6'>
	<result xmlns='urn:xmpp:mam:1' id='BLCDT1T7RG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T17:12:31Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>ca947027</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='f79fb0e5-7d5b-431e-b4d4-0e51978c89cb'>
	<result xmlns='urn:xmpp:mam:1' id='BLD52C2NOG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T20:50:49Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>1d13def3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.597 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='497b7665-7927-4016-bdff-f14010f8648a'>
	<result xmlns='urn:xmpp:mam:1' id='BLDGBKGQCG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T10:18:57Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>00883903</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='a9e3e947-5101-4547-856c-c900905d9a44'>
	<result xmlns='urn:xmpp:mam:1' id='BLDUTMAAT00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T03:41:30Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>f3c848e2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='64c39b7a-5e9e-4ef9-8e5a-82a553d4aea6'>
	<result xmlns='urn:xmpp:mam:1' id='BLEUQV9UU00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T17:46:04Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>391571e1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='4f07ba8f-88d3-44d4-91b1-ca046918d29f'>
	<result xmlns='urn:xmpp:mam:1' id='BLFMMNJ6D00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T22:14:34Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>f9ea28a1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='19109ef4-1ef5-4146-8f96-49e37e701960'>
	<result xmlns='urn:xmpp:mam:1' id='BLG1T985R00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T11:36:38Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>f76659cc</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='78f98388-b51f-4b92-abae-d9349d285d5d'>
	<result xmlns='urn:xmpp:mam:1' id='BLGV4VGUGG0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T22:29:45Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>d6a2882f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='3e720d19-d19a-4b95-9f48-b78c923b87c1'>
	<result xmlns='urn:xmpp:mam:1' id='BLH5RG2FCG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T06:29:37Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>360a928f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='1324c51e-6683-4e4b-b5cb-b9dc2310b4d5'>
	<result xmlns='urn:xmpp:mam:1' id='BLHSCB2CRG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T09:22:07Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>65af11aa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='18c6d60b-d2a0-4770-bc4f-059cd9d990b7'>
	<result xmlns='urn:xmpp:mam:1' id='BLIPHVP2RG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T20:10:39Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>0f652c05</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='8d32cb9a-9cb9-440d-b3a7-eec10b7e885d'>
	<result xmlns='urn:xmpp:mam:1' id='BLJAVP7ASG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T16:58:25Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>3c5180cb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='28b33ac2-3073-486a-8be7-e2d51613ccc9'>
	<result xmlns='urn:xmpp:mam:1' id='BLJQ8UJ7K008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T11:12:40Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>bfa2d6fc</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:39.598 ***
alicE_unnamed_1224@localhost/res1 in
<message from='alicE_unnamed_1224@localhost' to='alicE_unnamed_1224@localhost/res1' id='b7a08bcc-dfac-482f-8ec4-f810de5e6f25'>
	<result xmlns='urn:xmpp:mam:1' id='BLKJK8F8I00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T17:27:32Z' from='alice_unnamed_1224@localhost'/>
			<message from='alice_unnamed_1224@localhost' xmlns='jabber:client' to='bOb_unnamed_1224@localhost' type='chat'>
				<body>955c4c05</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:39.599 ***
alicE_unnamed_1224@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:39.603 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:39.604 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1417.html



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