=== 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.1613.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.76034.html"},
     {tc_group_properties,[{name,mam06},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.901 *** View log from node mongooseim@localhost when started mongooseim@localhost_1460.html
*** CT 2022-01-27 15:29:39.902 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

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

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



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



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

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



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



*** User 2022-01-27 15:29:40.307 ***
alicE_unnamed_1237@localhost/res1 out
<iq type='set' id='32b9ab2bfa8ea6c1fb272ffa08bdaf31'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:29:40.307 ***
alicE_unnamed_1237@localhost/res1 in
<iq type='result' id='32b9ab2bfa8ea6c1fb272ffa08bdaf31'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



*** User 2022-01-27 15:29:40.309 ***
alicE_unnamed_1237@localhost/res1 out
<iq type='set' id='a2c7cc6ea793d542174aac3440f449db'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1237@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='cfc5fb5b-2f6b-411e-a673-a2952d3626f0'>
	<result xmlns='urn:xmpp:mam:2' id='BLA4ATVJ900G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T01:26:26Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>ff4b60e3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='893a0f5e-3056-44e3-b632-0c2a00fd27cb'>
	<result xmlns='urn:xmpp:mam:2' id='BLB85KGEJ003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T20:11:34Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>bb24f53a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='e6b3031e-8886-4e46-b893-b45f2c0e064a'>
	<result xmlns='urn:xmpp:mam:2' id='BLBJBO39NG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T09:32:39Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>6ce5f625</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='a1c1bf46-33d3-41d3-8a55-dde7d67d4092'>
	<result xmlns='urn:xmpp:mam:2' id='BLC6QBA0TG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T08:45:23Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>6f82b277</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='6f164225-e4d7-46d5-b15f-14e4c59fd62e'>
	<result xmlns='urn:xmpp:mam:2' id='BLCT9VEBF00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T11:35:10Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>a7284fe6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='35d57125-9ca3-4b4f-9d95-099b26a3c4fa'>
	<result xmlns='urn:xmpp:mam:2' id='BLDKBU2VUG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T15:05:57Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>dbca60d0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='1a8d9ba2-dd29-4ddd-94a8-343e7f51d48a'>
	<result xmlns='urn:xmpp:mam:2' id='BLDV09GVVG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T03:47:19Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>5c24f94b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='a096da92-e928-49ff-9d12-a27c0e9a4907'>
	<result xmlns='urn:xmpp:mam:2' id='BLF160SREG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T20:33:57Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>18cb8196</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='37a161b7-4b45-48f2-b6b5-d25d5d2afe1a'>
	<result xmlns='urn:xmpp:mam:2' id='BLFMSVK8CG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T22:28:33Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>c4e0f9a2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.312 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='3ee3713a-50e4-4a63-a598-227583025a86'>
	<result xmlns='urn:xmpp:mam:2' id='BLGC49LU0G0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T23:48:09Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>bac361c6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='e451b2cb-29af-405d-a72d-bbd3f1e0e8e2'>
	<result xmlns='urn:xmpp:mam:2' id='BLGGLF8M300E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T05:12:54Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>b5951aa9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='03d71086-dd66-45a5-8988-db11a8aefb5c'>
	<result xmlns='urn:xmpp:mam:2' id='BLH4TEOOCG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T05:22:25Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>2a8205dd</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='aa6b8636-dd8c-4f38-a87f-dbeb74627830'>
	<result xmlns='urn:xmpp:mam:2' id='BLI1M8M03003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T15:42:14Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>52bc0136</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='6bf72817-dfe4-4e56-a7bf-3147235d20b0'>
	<result xmlns='urn:xmpp:mam:2' id='BLIAE78G2G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T02:08:29Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>d61cfad9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='3e10c51c-c1c5-4dba-8a32-4c8bad84079a'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ1TEON5002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T06:08:58Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>1bca541c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='1ac1e2a0-598e-4a2b-b2e3-38cec5caca9e'>
	<result xmlns='urn:xmpp:mam:2' id='BLJJSAT5KG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T03:34:57Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>3a7aef10</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:40.313 ***
alicE_unnamed_1237@localhost/res1 in
<message from='alicE_unnamed_1237@localhost' to='alicE_unnamed_1237@localhost/res1' id='004f5c95-c8e0-4fe6-a160-b56fe879d924'>
	<result xmlns='urn:xmpp:mam:2' id='BLKA7U9K800E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T06:15:44Z' from='alice_unnamed_1237@localhost'/>
			<message from='alice_unnamed_1237@localhost' xmlns='jabber:client' to='bOb_unnamed_1237@localhost' type='chat'>
				<body>771b9fb3</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:40.314 ***
alicE_unnamed_1237@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:40.317 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:40.318 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1460.html



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