=== 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.7633.1>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia_cache},
     {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.95490.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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_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:58


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 15:29:58.387 ***
alicE_unnamed_1389@localhost/res1 out
<iq type='set' id='c410e3a08668aebb308f68a567f28b76'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1389@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:58.394 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='14c14999-c481-4f81-8bb4-fe4ad06e37f0'>
	<result xmlns='urn:xmpp:mam:1' id='BLA6G12JE00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T04:01:00Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>1da1059f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='4af10f1d-9a6b-4f56-9384-7bea00da6f66'>
	<result xmlns='urn:xmpp:mam:1' id='BLB3RPOL1005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:03:14Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>ab47f10f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='8ae9e6dc-3586-4aeb-8651-8381492fc2e9'>
	<result xmlns='urn:xmpp:mam:1' id='BLBGF2SGP00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T06:05:22Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>c3078813</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='aef0b8d2-15b3-4bf2-af95-fd7f89e27b76'>
	<result xmlns='urn:xmpp:mam:1' id='BLCDVRHSNG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T17:18:47Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>31f740c1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='8d49f1fa-aa0d-4122-be49-7409c15d71b7'>
	<result xmlns='urn:xmpp:mam:1' id='BLCUKBIBB001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T13:09:58Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>c25c486f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='a83bf643-9a45-498d-a05a-cbfe996f7b2d'>
	<result xmlns='urn:xmpp:mam:1' id='BLDLHI3E3G0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T16:30:07Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>52fbf769</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='fb038f7d-3030-4235-8aa4-7af2c19bb894'>
	<result xmlns='urn:xmpp:mam:1' id='BLDTSM43U004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T02:27:40Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>9cbdf374</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='47eb78a4-8df1-4d67-93da-6ae07e99c3df'>
	<result xmlns='urn:xmpp:mam:1' id='BLEPFD7SOG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T11:22:17Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>37177792</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='7cb3a6e1-a011-4840-a693-04c127ce10b0'>
	<result xmlns='urn:xmpp:mam:1' id='BLFNCA1TL001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T23:02:50Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>3064cd87</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='14f1e75d-a4ca-4d79-b5ca-245daeb45b6f'>
	<result xmlns='urn:xmpp:mam:1' id='BLG9MKKO900J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T20:54:26Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>3f838829</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='7e916317-1bc7-4c48-9fe9-ddd3773afdfc'>
	<result xmlns='urn:xmpp:mam:1' id='BLGK71N5P003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T09:26:58Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>a96a9fa1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='08fed335-f439-469b-9323-25adf5fb8ae5'>
	<result xmlns='urn:xmpp:mam:1' id='BLH20OJES00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T01:55:04Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>f1440d04</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='af3c64df-c709-458f-9176-59c615598dcd'>
	<result xmlns='urn:xmpp:mam:1' id='BLHNP4CQCG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T03:52:49Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>1518ec87</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='71df16dc-446b-41b5-b77c-7f51f8557676'>
	<result xmlns='urn:xmpp:mam:1' id='BLI96QVGNG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T00:40:23Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>8b8839ab</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='3f73d25f-892a-4e32-af4a-cfcc02a00263'>
	<result xmlns='urn:xmpp:mam:1' id='BLJFC1TUE002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T22:12:12Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>da4ae9bd</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='dbeb4685-4918-4966-8baa-1bef5cad5546'>
	<result xmlns='urn:xmpp:mam:1' id='BLK4IESQT00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T23:29:46Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>21b405bd</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.395 ***
alicE_unnamed_1389@localhost/res1 in
<message from='alicE_unnamed_1389@localhost' to='alicE_unnamed_1389@localhost/res1' id='9800af5a-24d3-4d33-a014-026d093e803f'>
	<result xmlns='urn:xmpp:mam:1' id='BLK5N0Q8UG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T00:51:33Z' from='alice_unnamed_1389@localhost'/>
			<message from='alice_unnamed_1389@localhost' xmlns='jabber:client' to='bOb_unnamed_1389@localhost' type='chat'>
				<body>0bbf3a2a</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:58.396 ***
alicE_unnamed_1389@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:58.399 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:58.400 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1760.html



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