=== 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.7368.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.81155.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@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:06


*** CT 2022-01-25 16:27:06.764 *** View log from node mongooseim@localhost when started mongooseim@localhost_1761.html
*** CT 2022-01-25 16:27:06.768 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-25 16:27:08.125 ***
alicE_unnamed_1428@localhost/res1 out
<iq type='set' id='20bf9e9b6857574de1fd00169b438f9d'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1428@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:27:08.128 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='16c8d7b8-7328-4eb0-94a9-dbf55d93e9db'>
	<result xmlns='urn:xmpp:mam:2' id='BL929B5M000A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T08:49:04Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>d47184c8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.128 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='41be6345-aea0-4a51-b711-7bed95ef1396'>
	<result xmlns='urn:xmpp:mam:2' id='BL9MBIC7J002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T08:45:42Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>22e7078e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.128 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='d40c0c5d-2ec1-4911-ae56-bda065837df9'>
	<result xmlns='urn:xmpp:mam:2' id='BLA93BHO600C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T07:07:24Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>b4b950a5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.128 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='12104493-01e0-4ab7-82c5-bd7b7f91959d'>
	<result xmlns='urn:xmpp:mam:2' id='BLAO27LEN00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T00:58:38Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>72c7161f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='e7f0d71d-5be6-460d-bfc7-68ada7c72a52'>
	<result xmlns='urn:xmpp:mam:2' id='BLBFAHEB0G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T04:43:37Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>cae250c4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='9465b37d-5037-436f-8df0-4e311de1317d'>
	<result xmlns='urn:xmpp:mam:2' id='BLCG8BJH5004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T20:00:58Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>db64f194</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='51f50f5a-9e5f-43f4-839f-b427065e89ed'>
	<result xmlns='urn:xmpp:mam:2' id='BLCV6JENNG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T13:50:47Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>58f0667a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='4e093399-0fde-445d-88a4-8974d02d4c45'>
	<result xmlns='urn:xmpp:mam:2' id='BLDK8UFJI00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T14:59:16Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>c4e7173c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='49e76bc0-1f4d-4887-bea1-328fa018ed03'>
	<result xmlns='urn:xmpp:mam:2' id='BLDV1HB3F002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T03:50:06Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>f3d3dda2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='0e7e31d9-0546-48ee-bf88-5990d6d8c662'>
	<result xmlns='urn:xmpp:mam:2' id='BLEV8TCI1G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T18:17:15Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>2f2c7f42</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='96f1ef21-ceef-4cb3-abef-91860e64a59a'>
	<result xmlns='urn:xmpp:mam:2' id='BLFMUHEPP00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T22:32:02Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>c8d3de59</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='e17c38ab-3cad-4e91-b784-ed8557e04e4c'>
	<result xmlns='urn:xmpp:mam:2' id='BLG4PEFPC00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T15:02:48Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>6a58629c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='79ce9820-c248-4566-a4e7-014f0be41c91'>
	<result xmlns='urn:xmpp:mam:2' id='BLGU7F4TG00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T21:23:44Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>2ab52a14</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='b2232b89-e010-4b19-af18-12443ded4a4e'>
	<result xmlns='urn:xmpp:mam:2' id='BLH99D79SG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T10:35:29Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>07f9b154</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.129 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='28e35f68-d9a3-469e-99a8-c1bbed39fb01'>
	<result xmlns='urn:xmpp:mam:2' id='BLI4OQFK900G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T19:22:42Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>61af5a50</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.130 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='6a9767bb-90d6-4331-9604-ce3ae47bea19'>
	<result xmlns='urn:xmpp:mam:2' id='BLISJF0EL00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T23:48:42Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>8e276e71</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.130 ***
alicE_unnamed_1428@localhost/res1 in
<message from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='0cd12079-db54-4c3a-8294-c7acae8bf2f7'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ28C1P5G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T06:33:23Z' from='alice_unnamed_1428@localhost'/>
			<message from='alice_unnamed_1428@localhost' xmlns='jabber:client' to='bOb_unnamed_1428@localhost' type='chat'>
				<body>94072ad3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:27:08.130 ***
alicE_unnamed_1428@localhost/res1 in
<iq from='alicE_unnamed_1428@localhost' to='alicE_unnamed_1428@localhost/res1' id='20bf9e9b6857574de1fd00169b438f9d' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL929B5M000A</first>
			<last>BLJ28C1P5G01</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-25 16:27:08.130 ***
alicE_unnamed_1428@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:27:08.136 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:27:08.137 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1765.html



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