=== 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.7882.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.54148.html"},
     {tc_group_properties,[{name,mam06},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.506 *** View log from node mongooseim@localhost when started mongooseim@localhost_1760.html
*** CT 2022-01-27 15:29:58.507 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_549.html

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

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



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



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

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



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



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



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



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



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



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



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='8e45810f-b00a-4168-8f98-1274a8627719'>
	<result xmlns='urn:xmpp:mam:2' id='BLA38090100B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T00:08:18Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>8532e315</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='3c3c484d-574e-4ee2-97b4-56e53871b233'>
	<result xmlns='urn:xmpp:mam:2' id='BLASCMTCC00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T06:08:24Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>632808ed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='2ec2f23a-9014-4ec3-93e4-6bf91c59917b'>
	<result xmlns='urn:xmpp:mam:2' id='BLBMF8DFTG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T13:15:15Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>40752dbb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='ad57bc50-8e46-468a-945b-f30d579579c7'>
	<result xmlns='urn:xmpp:mam:2' id='BLCG9JSSTG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T20:03:47Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>d02e20ef</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='0cf3bb6d-2b9f-4afa-9c3e-f276dcaf74ff'>
	<result xmlns='urn:xmpp:mam:2' id='BLD24GUSEG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T17:20:53Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>7650791d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='b8ac6e49-df3c-4db1-aac4-3a505858cb6e'>
	<result xmlns='urn:xmpp:mam:2' id='BLDF16FPCG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T08:44:01Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>f977be98</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='f8f36f34-2fd8-4c95-8056-146f6893feb7'>
	<result xmlns='urn:xmpp:mam:2' id='BLEEUJH3Q00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T22:48:52Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>caad3d1c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='4ea12db6-d743-40b9-b0cd-d4f76fe4f08f'>
	<result xmlns='urn:xmpp:mam:2' id='BLEGGFNT9G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T00:40:27Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>87b57d33</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.783 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='56c35f4f-4a3f-4f69-8c79-8f8edd036323'>
	<result xmlns='urn:xmpp:mam:2' id='BLF64HFRCG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T02:28:33Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>52fe46ec</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='6ab73ba1-651f-457f-90a6-0b0008be34be'>
	<result xmlns='urn:xmpp:mam:2' id='BLG1EFGIDG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T11:03:31Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>108e8f06</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='038d954c-5f38-4fe2-9bba-3c978d395582'>
	<result xmlns='urn:xmpp:mam:2' id='BLGSH443P002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T19:22:10Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>d9134973</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='76ccf183-1a9a-44b9-bad8-8216a37ce51c'>
	<result xmlns='urn:xmpp:mam:2' id='BLHC8GS53G0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T14:08:15Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>15f474a2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='eeda6f2c-bd82-462e-811a-f40914cca3c5'>
	<result xmlns='urn:xmpp:mam:2' id='BLI7MGQSP00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T22:52:18Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>6684dbdb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='26673139-b8ab-4819-80e6-c49023f45116'>
	<result xmlns='urn:xmpp:mam:2' id='BLIR467UCG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T22:02:57Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>24ac53d0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='dc0b0f61-b971-4113-9c17-ce36ada5738a'>
	<result xmlns='urn:xmpp:mam:2' id='BLIU7V4PKG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T01:46:09Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>11d81562</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='cf61bcf6-a664-43b1-a98f-ccdae7735255'>
	<result xmlns='urn:xmpp:mam:2' id='BLJOQSEM4G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T09:29:37Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>f5e6c28a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:58.784 ***
alicE_unnamed_1402@localhost/res1 in
<message from='alicE_unnamed_1402@localhost' to='alicE_unnamed_1402@localhost/res1' id='8fa6c289-8517-4a9b-b4b2-e8665e7032c3'>
	<result xmlns='urn:xmpp:mam:2' id='BLKA05K5IG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T05:58:21Z' from='alice_unnamed_1402@localhost'/>
			<message from='alice_unnamed_1402@localhost' xmlns='jabber:client' to='bOb_unnamed_1402@localhost' type='chat'>
				<body>98958edb</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:58.785 ***
alicE_unnamed_1402@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:58.794 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:58.795 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1765.html



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