=== 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.21800.0>},
     {basic_group,mam_all},
     {configuration,rdbms},
     {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.34434.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_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 => [],
        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:01


*** CT 2022-01-27 15:29:01.291 *** View log from node mongooseim@localhost when started mongooseim@localhost_958.html
*** CT 2022-01-27 15:29:01.292 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:02.244 ***
alicE_unnamed_879@localhost/res1 out
<iq type='set' id='31c12c0e280da7b8cfb997d411237a1f'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_879@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:02.248 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='f9d4bf0e-190e-45f6-8dae-6fd7ac8d16a0'>
	<result xmlns='urn:xmpp:mam:1' id='BLA8Q1H0D004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T06:46:34Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>74f2972b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='00f8faa2-fcb1-43d9-868b-decca7b80d87'>
	<result xmlns='urn:xmpp:mam:1' id='BLAQF0ANN00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T03:50:22Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>b8d0cb14</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='8ed0861a-8dcb-4dd7-9d2b-6b3a52ccb080'>
	<result xmlns='urn:xmpp:mam:1' id='BLBHD0C5H00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T07:12:18Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>fc1e51fb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='8abb9e94-f574-4441-ab2d-2d4346746ad3'>
	<result xmlns='urn:xmpp:mam:1' id='BLC1TETRP007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T02:54:26Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>4068dcb9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='cf73bf74-5907-4930-8cfa-e9d5280ddc5f'>
	<result xmlns='urn:xmpp:mam:1' id='BLD5DJJRQG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T21:15:57Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>43dd6bd4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='00576478-ad75-47f0-be40-5a221852bee4'>
	<result xmlns='urn:xmpp:mam:1' id='BLDQFJE51G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T22:23:39Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>1bde159f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='a09e1220-4dd4-4370-b297-8f4cd52aa9ba'>
	<result xmlns='urn:xmpp:mam:1' id='BLEFOOJTHG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T23:47:23Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>1d247dbe</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='cf09868f-cca7-434f-9880-6b0e104c1c4e'>
	<result xmlns='urn:xmpp:mam:1' id='BLEKDRJNJ00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T05:20:54Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>8c74d8da</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='faa71a36-97da-4aad-a3e2-1e4d504eff91'>
	<result xmlns='urn:xmpp:mam:1' id='BLFIEI8CB009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T17:09:58Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>04344d02</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='98a96db9-3061-472d-b221-b1d27525fc6c'>
	<result xmlns='urn:xmpp:mam:1' id='BLFOF4DMU004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T00:20:44Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>2782552b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.249 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='b334fc1c-a8f6-4179-953b-90e1320626b5'>
	<result xmlns='urn:xmpp:mam:1' id='BLGTKA5NUG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T20:40:53Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>92159981</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='e45451e8-2e34-4e95-a18b-7021f7075a0d'>
	<result xmlns='urn:xmpp:mam:1' id='BLHI56QIE00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T21:10:20Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>20b8b641</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='942b450b-b1a5-4456-9a81-3773570c96f2'>
	<result xmlns='urn:xmpp:mam:1' id='BLHNNNARQ00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T03:49:40Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>ed4ace57</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='41adb22c-8f24-4923-ba3f-b6b7cceb8b83'>
	<result xmlns='urn:xmpp:mam:1' id='BLIGKJKCG006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T09:32:16Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>4fcdac72</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='93c87599-9003-4eff-b6aa-34d5fef0c8fa'>
	<result xmlns='urn:xmpp:mam:1' id='BLJGI4NDA004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T23:37:24Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>a3ad82d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='867cc3e9-0f18-42a1-acb1-43f3917f5f00'>
	<result xmlns='urn:xmpp:mam:1' id='BLJUHCOASG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T16:17:53Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>bf37b967</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
<message from='alicE_unnamed_879@localhost' to='alicE_unnamed_879@localhost/res1' id='b179d325-8fa3-476c-859f-77a5c3b50365'>
	<result xmlns='urn:xmpp:mam:1' id='BLKLT051FG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T20:10:15Z' from='alice_unnamed_879@localhost'/>
			<message from='alice_unnamed_879@localhost' xmlns='jabber:client' to='bOb_unnamed_879@localhost' type='chat'>
				<body>a3a5d883</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:02.250 ***
alicE_unnamed_879@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:02.253 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:02.255 *** View log from node mongooseim@localhost when finished mongooseim@localhost_961.html



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