=== 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.25845.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/mam_suite.querying_for_all_messages_with_jid.51586.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"test type">>},max_user_sessions] =>
                          {ok,[#{acl => all,value => 10}]}}},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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,<<"groupchats.">>}},
             {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,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:31:54


*** CT 2022-01-27 12:31:54.632 *** View log from node mongooseim@localhost when started mongooseim@localhost_982.html
*** CT 2022-01-27 12:31:54.633 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_538.html

*** User 2022-01-27 12:31:54.976 ***
alicE_unnamed_985@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:31:54.976 ***
alicE_unnamed_985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2b9c9c5ebcbf23ed' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:31:54.977 ***
alicE_unnamed_985@domain.example.com/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 12:31:54.977 ***
alicE_unnamed_985@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfOTg1AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42b6eb02a4837cc1' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/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 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 out
<iq type='set' id='b88061791daa7c3fa278bedaac75af4a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 in
<iq id='b88061791daa7c3fa278bedaac75af4a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_985@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 out
<iq type='set' id='c6df0a1b736e797c51ccd897b1dc9414'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 in
<iq type='result' id='c6df0a1b736e797c51ccd897b1dc9414'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:31:54.978 ***
alicE_unnamed_985@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:31:54.980 ***
alicE_unnamed_985@domain.example.com/res1 in
<presence from='alicE_unnamed_985@domain.example.com/res1' to='alice_unnamed_985@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:31:54.980 ***
alicE_unnamed_985@domain.example.com/res1 out
<iq type='set' id='3b7c746b2bea19f47b1323bfa3e542f1'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_985@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 12:31:54.983 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='558a5d19-497c-49e3-a2bc-3cea000adf15'>
	<result xmlns='urn:xmpp:mam:1' id='BLAL54CHF00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T21:30:22Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>3e42ae10</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.983 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='8c39ea01-59d6-42b6-b03b-c5380e489f87'>
	<result xmlns='urn:xmpp:mam:1' id='BLB4RMLN600A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T16:14:36Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>2136819c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='a2db4b6a-1c98-40eb-a43f-fa738bfc44c6'>
	<result xmlns='urn:xmpp:mam:1' id='BLBM9LR2J002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T13:02:46Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>c38f20f9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='10be7762-05c7-4c53-b5a9-e1311e971051'>
	<result xmlns='urn:xmpp:mam:1' id='BLCEN61H100H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T18:10:58Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>70c969cf</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='5a2c6e3d-8369-4a9f-8e5c-613308139a9c'>
	<result xmlns='urn:xmpp:mam:1' id='BLD0LVI1V006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T15:36:46Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>475d1b5f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='80742a2f-36c5-44fa-8245-f5ee39c1eb16'>
	<result xmlns='urn:xmpp:mam:1' id='BLDJ2VNR2G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T13:34:21Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>67692725</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='9ccf678f-1edd-4bab-ab19-e4e5e39ebec3'>
	<result xmlns='urn:xmpp:mam:1' id='BLE9F5V0PG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T16:16:27Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>f689797f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='399076ca-18b9-45e3-9695-f07f3b03f231'>
	<result xmlns='urn:xmpp:mam:1' id='BLEKQEHD800B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T05:49:04Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>6895d519</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='b7e1522e-af0a-4c79-acf5-8d38bcff2b70'>
	<result xmlns='urn:xmpp:mam:1' id='BLFHI5D49004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T16:06:26Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>a6c7a9c2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='233c4bfc-c4dc-42f0-9597-e372a5d1303b'>
	<result xmlns='urn:xmpp:mam:1' id='BLG5RJS6900H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T16:19:14Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>10b0d202</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='0bd91943-005b-4a5e-a2cb-c794a2b0c4fd'>
	<result xmlns='urn:xmpp:mam:1' id='BLGJPO4MOG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T08:57:13Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>dc67336a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='24ac25fb-bb92-4ff5-b07b-05391e395fbb'>
	<result xmlns='urn:xmpp:mam:1' id='BLH60PQJGG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T06:41:29Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>03f38a17</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='da968cf1-1e6e-4001-86f8-278e53d03e0f'>
	<result xmlns='urn:xmpp:mam:1' id='BLI4N3D7PG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T19:18:51Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>b5386bf4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='77183fa0-4376-4506-a203-0c0bf33159c1'>
	<result xmlns='urn:xmpp:mam:1' id='BLINC18MH009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T17:34:10Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>188a894c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='e84fa956-36d4-4bfb-9b56-7fea6c321f3a'>
	<result xmlns='urn:xmpp:mam:1' id='BLJGOB32A00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T23:51:16Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>9c8d602f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='fe4c6417-87b0-4f6d-8869-5e30f2e5b99e'>
	<result xmlns='urn:xmpp:mam:1' id='BLJV803THG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T17:08:27Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>70a913e8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.984 ***
alicE_unnamed_985@domain.example.com/res1 in
<message from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='0c4300fc-cf25-40f3-ae71-4d8e0f19019d'>
	<result xmlns='urn:xmpp:mam:1' id='BLK5K0V8DG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T00:44:51Z' from='alice_unnamed_985@domain.example.com'/>
			<message from='alice_unnamed_985@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_985@domain.example.com' type='chat'>
				<body>03e14ff7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:54.985 ***
alicE_unnamed_985@domain.example.com/res1 in
<iq from='alicE_unnamed_985@domain.example.com' to='alicE_unnamed_985@domain.example.com/res1' id='3b7c746b2bea19f47b1323bfa3e542f1' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLAL54CHF00I</first>
			<last>BLK5K0V8DG06</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-27 12:31:54.985 ***
alicE_unnamed_985@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:31:54.985 ***
alicE_unnamed_985@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:31:54.989 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_538.html
*** CT 2022-01-27 12:31:54.990 *** View log from node mongooseim@localhost when finished mongooseim@localhost_982.html



=== Ended at 2022-01-27 12:31:55
=== successfully completed test case
=== === Returned value: ok