=== 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.7119.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/mam_suite.querying_for_all_messages_with_jid.91138.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:27:05


*** CT 2022-01-25 16:27:05.713 *** View log from node mongooseim@localhost when started mongooseim@localhost_1758.html
*** CT 2022-01-25 16:27:05.714 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-01-25 16:27:06.565 ***
alicE_unnamed_1412@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-25 16:27:06.565 ***
alicE_unnamed_1412@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='78a2f3c936b3c66d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:27:06.566 ***
alicE_unnamed_1412@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-25 16:27:06.566 ***
alicE_unnamed_1412@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTQxMgBtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:27:06.567 ***
alicE_unnamed_1412@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:27:06.567 ***
alicE_unnamed_1412@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-25 16:27:06.568 ***
alicE_unnamed_1412@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01812103130fa69e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:27:06.568 ***
alicE_unnamed_1412@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-25 16:27:06.568 ***
alicE_unnamed_1412@localhost/res1 out
<iq type='set' id='f2c0425d280468dc0caecc26c0b180c3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:27:06.568 ***
alicE_unnamed_1412@localhost/res1 in
<iq id='f2c0425d280468dc0caecc26c0b180c3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1412@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:27:06.568 ***
alicE_unnamed_1412@localhost/res1 out
<iq type='set' id='de60df4475517eb7acb32605a758abb0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:27:06.569 ***
alicE_unnamed_1412@localhost/res1 in
<iq type='result' id='de60df4475517eb7acb32605a758abb0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:27:06.569 ***
alicE_unnamed_1412@localhost/res1 out
<presence/>



*** User 2022-01-25 16:27:06.572 ***
alicE_unnamed_1412@localhost/res1 in
<presence from='alicE_unnamed_1412@localhost/res1' to='alice_unnamed_1412@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:27:06.572 ***
alicE_unnamed_1412@localhost/res1 out
<iq type='set' id='6a4c90a56d2d504c252ab5318958f872'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1412@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:27:06.574 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='af39ae00-30f4-4f23-95bb-2baaaa9385b5'>
	<result xmlns='urn:xmpp:mam:1' id='BL9EL9M7C009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T23:34:48Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>524b0ec6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.574 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='305d493e-8ad0-4d2a-bef1-8b46d3bb3d7d'>
	<result xmlns='urn:xmpp:mam:1' id='BL9I9FQKDG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T03:54:43Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>b4706127</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='23e79a27-b3e8-4b1b-88f7-3796ac635982'>
	<result xmlns='urn:xmpp:mam:1' id='BLAHI19L3008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T17:12:54Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>bfa3f0e5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='c9ccd25b-fdc6-487e-8a1e-0247ed984a3b'>
	<result xmlns='urn:xmpp:mam:1' id='BLB650UB300I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T17:47:02Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>5bcaa7ae</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='20c4560b-cbac-43e4-8092-9023ac0a728f'>
	<result xmlns='urn:xmpp:mam:1' id='BLBSRCR8T00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T20:51:54Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>e16d2423</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='c417faf9-a6e0-4b93-886a-2d99e7a84d33'>
	<result xmlns='urn:xmpp:mam:1' id='BLC992TF1G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T11:41:31Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>2d912557</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='1ec42071-1662-4fd5-a522-645832b52416'>
	<result xmlns='urn:xmpp:mam:1' id='BLCNJQ3L600B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T04:47:40Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>ef6d5c82</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='be8bb94b-baec-4cb9-8652-ad795bd20af3'>
	<result xmlns='urn:xmpp:mam:1' id='BLDB1O3BRG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T03:58:55Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>bebb36d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='86e9c700-30cc-46de-be55-c5199f7a58ab'>
	<result xmlns='urn:xmpp:mam:1' id='BLE6LPSPRG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T12:56:31Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>46faeead</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='4b8a5851-33be-4375-95e6-4e67b7f88fa7'>
	<result xmlns='urn:xmpp:mam:1' id='BLELDII27G0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T06:31:51Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>9b3d5168</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='62af04ec-4981-4f1d-96d1-b7c3bbf32c0e'>
	<result xmlns='urn:xmpp:mam:1' id='BLFDQ6CJU00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T11:38:04Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>68181f04</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='9341a0b7-81fd-4377-9ac4-d9c676528f93'>
	<result xmlns='urn:xmpp:mam:1' id='BLFSE7JHRG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T05:05:03Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>2cbdd03c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.575 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='6ef37f5d-e305-46f8-b133-3af8fba8bf86'>
	<result xmlns='urn:xmpp:mam:1' id='BLGO4S4CL00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T14:08:26Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>440ae42b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='d0fe0399-3a3f-492a-afe2-0b502ab76ec7'>
	<result xmlns='urn:xmpp:mam:1' id='BLH27N9A7003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T02:10:38Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>84dd205c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='d2bbdb9f-962d-49c0-9cc0-6722bd82d482'>
	<result xmlns='urn:xmpp:mam:1' id='BLI5RE5PK00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T20:40:08Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>46a2ed36</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='31a1c1ab-fcfd-4d70-9431-61c6446f4ea8'>
	<result xmlns='urn:xmpp:mam:1' id='BLICVSPTJG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T05:11:11Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>3faf170d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
<message from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='3c349041-49cb-4fbb-83db-cd7c8a8bc33d'>
	<result xmlns='urn:xmpp:mam:1' id='BLJ1T3POM00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T06:08:12Z' from='alice_unnamed_1412@localhost'/>
			<message from='alice_unnamed_1412@localhost' xmlns='jabber:client' to='bOb_unnamed_1412@localhost' type='chat'>
				<body>7421120c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
<iq from='alicE_unnamed_1412@localhost' to='alicE_unnamed_1412@localhost/res1' id='6a4c90a56d2d504c252ab5318958f872' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL9EL9M7C009</first>
			<last>BLJ1T3POM00A</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:27:06.576 ***
alicE_unnamed_1412@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:27:06.583 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:27:06.600 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1761.html



=== Ended at 2022-01-25 16:27:06
=== successfully completed test case
=== === Returned value: ok