=== 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.31118.0>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia},
     {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.53891.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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_mnesia_prefs => [{pm,true}],
        mod_mam_rdbms_arch => [],
        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:29


*** CT 2022-01-27 15:29:30.021 *** View log from node mongooseim@localhost when started mongooseim@localhost_1363.html
*** CT 2022-01-27 15:29:30.022 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:30.385 ***
alicE_unnamed_1138@localhost/res1 out
<iq type='set' id='35a50aee3ad7fe9b1cdf849c74da7acc'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1138@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='c434a9c7-68a2-42a0-8d85-2abaed84d00d'>
	<result xmlns='urn:xmpp:mam:1' id='BLAFSJJ8LG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T15:13:23Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>7034a9ef</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='e7f3f502-b3b4-42db-8bdb-56e9317b57c9'>
	<result xmlns='urn:xmpp:mam:1' id='BLB99IKKV00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T21:31:58Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>3ab62c3d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='47e004be-963d-40d5-b18c-cd8640f388ac'>
	<result xmlns='urn:xmpp:mam:1' id='BLBTRK81800D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:04:00Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>30821fe6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='30980493-41d6-411b-9d4e-271083c47f1c'>
	<result xmlns='urn:xmpp:mam:1' id='BLCH4Q466G0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T21:04:37Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>70335a9d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='a7227e86-90bf-475d-a70e-ac59dee12e8b'>
	<result xmlns='urn:xmpp:mam:1' id='BLCKL4GU8G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T01:15:53Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>5875949c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='430e3c4c-7c9c-419f-b593-752f46b89541'>
	<result xmlns='urn:xmpp:mam:1' id='BLDGQIPCFG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T10:52:23Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>728087c7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='8f080e80-21fc-4b9c-b411-4ae3b6c24867'>
	<result xmlns='urn:xmpp:mam:1' id='BLDSESI7GG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T00:45:13Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>23313bee</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.406 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='b7834b23-21d4-4d73-94d2-ba271565da4c'>
	<result xmlns='urn:xmpp:mam:1' id='BLEPDSJG2G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T11:18:53Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>c6c56e0e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='2b099ee6-9084-4526-a1e6-964bb5202b02'>
	<result xmlns='urn:xmpp:mam:1' id='BLFKVSQRD003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T20:11:54Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>732a37ca</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='dc48766b-88a6-4ee5-83c7-2f412b788a5c'>
	<result xmlns='urn:xmpp:mam:1' id='BLG57KLP8G0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T15:34:33Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>d2254d99</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='30dcb08b-5f9d-4007-a7e6-5fc11b0b2716'>
	<result xmlns='urn:xmpp:mam:1' id='BLGCCO99K00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T00:07:04Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>8c9698ac</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='9cf5ee36-60c1-477b-a2c1-aeee436ae9ed'>
	<result xmlns='urn:xmpp:mam:1' id='BLHD76M06G03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T15:16:53Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>930e70d3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='73ab4292-23a1-47da-87d4-17abc5b3f65b'>
	<result xmlns='urn:xmpp:mam:1' id='BLHUJD3I4G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T12:01:05Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>b50af7e4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='7e169152-1778-4e65-823e-ac78ed8e75ee'>
	<result xmlns='urn:xmpp:mam:1' id='BLIH7UPTMG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T10:15:33Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>a369c8d0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='1a65c782-bb92-4674-926e-2c881fb03629'>
	<result xmlns='urn:xmpp:mam:1' id='BLJ41P9SQG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T08:41:49Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>1b7ff123</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='477bc635-bb29-4302-bdb0-97bac1714159'>
	<result xmlns='urn:xmpp:mam:1' id='BLK1C88PQ00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T19:41:08Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>8cfb77ca</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<message from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='27e876e5-4a08-4029-a790-8acd5df59561'>
	<result xmlns='urn:xmpp:mam:1' id='BLKAAN7CMG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T06:21:57Z' from='alice_unnamed_1138@localhost'/>
			<message from='alice_unnamed_1138@localhost' xmlns='jabber:client' to='bOb_unnamed_1138@localhost' type='chat'>
				<body>39568c14</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:30.407 ***
alicE_unnamed_1138@localhost/res1 in
<iq from='alicE_unnamed_1138@localhost' to='alicE_unnamed_1138@localhost/res1' id='35a50aee3ad7fe9b1cdf849c74da7acc' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLAFSJJ8LG0K</first>
			<last>BLKAAN7CMG0H</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:30.408 ***
alicE_unnamed_1138@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:30.412 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:30.413 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1367.html



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