=== 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.28095.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.57218.html"},
     {tc_group_properties,[{name,mam06},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:21


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:21.592 ***
alicE_unnamed_1069@localhost/res1 out
<iq type='set' id='4c62c089a06fdf0e2aad9fddc982ce58'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1069@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='ccbffbbb-ea5d-45c3-a67e-5ada3b20f4dd'>
	<result xmlns='urn:xmpp:mam:2' id='BLACOJP5B00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T11:29:42Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>4e8d19b6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='00bc5e11-31a9-4019-9e1d-4b0f26e59895'>
	<result xmlns='urn:xmpp:mam:2' id='BLB0OJU5100C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T11:21:22Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>22093ddb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='c55865c4-42ae-401c-b5c5-8d6f104bec36'>
	<result xmlns='urn:xmpp:mam:2' id='BLBL6HERD00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T11:44:10Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>001d27a4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='eadd138b-9857-443c-8407-072f249df462'>
	<result xmlns='urn:xmpp:mam:2' id='BLC07IM2P00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T00:53:54Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>e733a417</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='ceb62b2d-7ae5-425d-9d2c-6fcbf54532ea'>
	<result xmlns='urn:xmpp:mam:2' id='BLCTDB6R100E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T11:42:42Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>d93a2d7e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='54e3fbdc-2e27-493e-8417-0bbf713fc8c9'>
	<result xmlns='urn:xmpp:mam:2' id='BLDGAS6K1G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T10:17:15Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>71b4692e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='5e7c613d-644d-4c5d-aeb7-a8cb49f1104d'>
	<result xmlns='urn:xmpp:mam:2' id='BLEDOE3NCG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T21:23:29Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>1680233f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.597 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='11a8c468-5e50-4fe5-8d52-97b633a37f54'>
	<result xmlns='urn:xmpp:mam:2' id='BLF0P0JTTG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T20:04:51Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>2f1cb46e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='7238102d-e1af-4f41-9fe6-9d4fb44ced01'>
	<result xmlns='urn:xmpp:mam:2' id='BLFDID7SVG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T11:20:39Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>8f7f3628</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='43536075-f007-4abc-93ec-7fc70a359f33'>
	<result xmlns='urn:xmpp:mam:2' id='BLG48IMR000J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T14:25:04Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>e9e80ded</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='ebbfc41d-f463-44d4-a5b9-cfb0ab26ebb4'>
	<result xmlns='urn:xmpp:mam:2' id='BLGCBIC78G0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T00:04:25Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>030be9b6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='61dbd603-9798-4369-9e5e-6827e9713062'>
	<result xmlns='urn:xmpp:mam:2' id='BLHAIFCH0G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T12:07:21Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>ca95de3b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='ed01488e-ee41-42bc-af75-ee9f312677f8'>
	<result xmlns='urn:xmpp:mam:2' id='BLHP3Q1VSG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T05:28:17Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>876c858c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='b616cf77-c38c-4d30-9b34-0d0515100ffd'>
	<result xmlns='urn:xmpp:mam:2' id='BLINU44RV00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T18:14:38Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>88945923</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='6a07ec05-f50d-4b64-8d77-5f6e187e1b94'>
	<result xmlns='urn:xmpp:mam:2' id='BLJBMKEM6003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T17:49:32Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>71eef6cd</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='64ffcde7-5b03-44fa-84c9-3a73d3dbd825'>
	<result xmlns='urn:xmpp:mam:2' id='BLJNJF767G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T08:01:27Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>66e46240</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<message from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='7f49ae28-7984-42f5-830f-5544752a7667'>
	<result xmlns='urn:xmpp:mam:2' id='BLKGK7G01G0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T13:52:43Z' from='alice_unnamed_1069@localhost'/>
			<message from='alice_unnamed_1069@localhost' xmlns='jabber:client' to='bOb_unnamed_1069@localhost' type='chat'>
				<body>de08c84d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
<iq from='alicE_unnamed_1069@localhost' to='alicE_unnamed_1069@localhost/res1' id='4c62c089a06fdf0e2aad9fddc982ce58' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLACOJP5B00C</first>
			<last>BLKGK7G01G0B</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:21.598 ***
alicE_unnamed_1069@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:21.606 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:21.608 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1096.html



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