=== 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.28545.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.mam_SUITE.logs/run.2022-02-03_16.32.18/mam_suite.querying_for_all_messages_with_jid.13829.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@c0783a4ae5cf.2022-02-03_16.28.29/big_tests.tests.mam_SUITE.logs/run.2022-02-03_16.32.18/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@c0783a4ae5cf.2022-02-03_16.28.29"

=== Started at 2022-02-03 16:32:37


*** CT 2022-02-03 16:32:37.447 *** View log from node mongooseim@localhost when started mongooseim@localhost_1076.html
*** CT 2022-02-03 16:32:37.448 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-02-03 16:32:37.815 ***
alicE_unnamed_1094@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-02-03 16:32:37.816 ***
alicE_unnamed_1094@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1bb41b4fbe63c632' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:32:37.816 ***
alicE_unnamed_1094@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-02-03 16:32:37.816 ***
alicE_unnamed_1094@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTA5NABtYXR5Z3J5c2E=</auth>



*** User 2022-02-03 16:32:37.817 ***
alicE_unnamed_1094@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-03 16:32:37.817 ***
alicE_unnamed_1094@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-02-03 16:32:37.817 ***
alicE_unnamed_1094@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ec2dec13c21f9f6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-02-03 16:32:37.817 ***
alicE_unnamed_1094@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-02-03 16:32:37.817 ***
alicE_unnamed_1094@localhost/res1 out
<iq type='set' id='8d2b2581e914f4d762b93bd1338d4fdc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-03 16:32:37.817 ***
alicE_unnamed_1094@localhost/res1 in
<iq id='8d2b2581e914f4d762b93bd1338d4fdc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1094@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-02-03 16:32:37.818 ***
alicE_unnamed_1094@localhost/res1 out
<iq type='set' id='193bd9742a2f20003da79bc2f2d91490'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:32:37.818 ***
alicE_unnamed_1094@localhost/res1 in
<iq type='result' id='193bd9742a2f20003da79bc2f2d91490'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-03 16:32:37.818 ***
alicE_unnamed_1094@localhost/res1 out
<presence/>



*** User 2022-02-03 16:32:37.820 ***
alicE_unnamed_1094@localhost/res1 in
<presence from='alicE_unnamed_1094@localhost/res1' to='alice_unnamed_1094@localhost/res1' xml:lang='en'/>



*** User 2022-02-03 16:32:37.820 ***
alicE_unnamed_1094@localhost/res1 out
<iq type='set' id='3cfe383ded83146f1a8fbbedb1bdec10'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1094@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='b1bf22a4-9b15-49be-ac74-6cf671128b88'>
	<result xmlns='urn:xmpp:mam:2' id='BLF2EFGF1G0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T22:04:27Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>b5bdf985</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='338faa37-27ca-45d1-882b-98f8b5da0b1b'>
	<result xmlns='urn:xmpp:mam:2' id='BLFD1AHMH005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T10:42:26Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>a974e0dc</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='45795118-f6bb-48a8-9adb-d93acb46394a'>
	<result xmlns='urn:xmpp:mam:2' id='BLG2GBJDR00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T12:19:18Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>268ff2db</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='127a3df0-81c8-4ae8-b527-45884daece17'>
	<result xmlns='urn:xmpp:mam:2' id='BLGOI9GTTG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T14:38:27Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>46dfd9f5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='337dae86-49d3-47ba-a862-cd71e9639196'>
	<result xmlns='urn:xmpp:mam:2' id='BLHA06P86G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T11:26:29Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>322f7477</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='755ede05-04d6-44e0-bc83-a352cc41c82f'>
	<result xmlns='urn:xmpp:mam:2' id='BLI3NGO7M00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T18:08:12Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>92d17d18</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.824 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='2b23fc70-c203-4ba6-a7ca-7a79e3c20309'>
	<result xmlns='urn:xmpp:mam:2' id='BLIOEJON5G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T18:51:31Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>6232fc61</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='49b13602-da2c-44bc-a256-245acc7d9491'>
	<result xmlns='urn:xmpp:mam:2' id='BLJFT2FFK009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T22:50:16Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>c1dee1d8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='c7cf4a43-0c64-45cf-888d-b248ac06b9bc'>
	<result xmlns='urn:xmpp:mam:2' id='BLJVB06I700A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T17:15:10Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>9c6edcd5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='bbd90214-9f2c-462a-865c-bbc3184bd40c'>
	<result xmlns='urn:xmpp:mam:2' id='BLKC4RBTRG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T08:31:59Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>acb14dd1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='f2115466-565b-40db-bde8-44a972fb3ad2'>
	<result xmlns='urn:xmpp:mam:2' id='BLKV8OM3CG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-28T07:20:49Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>705b217d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='39dae90e-ee72-4ac4-a066-808600136864'>
	<result xmlns='urn:xmpp:mam:2' id='BLLGUEJSB00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-29T04:26:14Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>afb58684</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='a4ae23ad-c2c3-4389-a25d-da71aa25f517'>
	<result xmlns='urn:xmpp:mam:2' id='BLMJE3AEVG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-30T21:35:03Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>3294973b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='fe00d646-52d9-4771-a616-6f6ec7891a01'>
	<result xmlns='urn:xmpp:mam:2' id='BLN5HLLE2004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-31T19:11:32Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>08de52cb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='dfb62cdf-b290-4588-ac65-97378ff5ec08'>
	<result xmlns='urn:xmpp:mam:2' id='BLNGA564000A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-01T08:02:08Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>91749ff0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='c1d9130d-3be8-4edb-bc82-6dc65a633f4a'>
	<result xmlns='urn:xmpp:mam:2' id='BLO72I5S6G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-02T11:11:33Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>5615fdc2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<message from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='df95ac91-5ffe-4161-91b6-c0b1ef59dffd'>
	<result xmlns='urn:xmpp:mam:2' id='BLORIL2NG005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-03T11:39:12Z' from='alice_unnamed_1094@localhost'/>
			<message from='alice_unnamed_1094@localhost' xmlns='jabber:client' to='bOb_unnamed_1094@localhost' type='chat'>
				<body>45ef130e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
<iq from='alicE_unnamed_1094@localhost' to='alicE_unnamed_1094@localhost/res1' id='3cfe383ded83146f1a8fbbedb1bdec10' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLF2EFGF1G0E</first>
			<last>BLORIL2NG005</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 out
</stream:stream>

*** User 2022-02-03 16:32:37.825 ***
alicE_unnamed_1094@localhost/res1 in
</stream:stream>
*** CT 2022-02-03 16:32:37.830 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-02-03 16:32:37.832 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1121.html



=== Ended at 2022-02-03 16:32:37
=== successfully completed test case
=== === Returned value: ok