=== 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.4105.1>},
     {basic_group,mam_all},
     {configuration,rdbms_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.73603.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_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_rdbms_arch => [],
        mod_mam_rdbms_prefs => [{pm,true}],
        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:26:53


*** CT 2022-01-25 16:26:53.749 *** View log from node mongooseim@localhost when started mongooseim@localhost_1707.html
*** CT 2022-01-25 16:26:53.752 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

*** User 2022-01-25 16:26:54.351 ***
alicE_unnamed_1306@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:26:54.351 ***
alicE_unnamed_1306@localhost/res1 out
<iq type='set' id='03486f89bc0730ee38445ba66b419f18'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:26:54.357 ***
alicE_unnamed_1306@localhost/res1 in
<iq id='03486f89bc0730ee38445ba66b419f18' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1306@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:26:54.358 ***
alicE_unnamed_1306@localhost/res1 out
<iq type='set' id='934e668b65d0c487332ba7b1f03b6655'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:54.358 ***
alicE_unnamed_1306@localhost/res1 in
<iq type='result' id='934e668b65d0c487332ba7b1f03b6655'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:54.358 ***
alicE_unnamed_1306@localhost/res1 out
<presence/>



*** User 2022-01-25 16:26:54.364 ***
alicE_unnamed_1306@localhost/res1 in
<presence from='alicE_unnamed_1306@localhost/res1' to='alice_unnamed_1306@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:26:54.365 ***
alicE_unnamed_1306@localhost/res1 out
<iq type='set' id='8970d9d9719fab0d324ad9640edc0e69'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1306@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='d1643c5a-b4d6-4da2-919d-0e83a8cf4ab5'>
	<result xmlns='urn:xmpp:mam:1' id='BL8ULTBF9G01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T04:30:51Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>a2db40da</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='42c6fc9b-512a-4ffa-ae7f-6fd3e48d6177'>
	<result xmlns='urn:xmpp:mam:1' id='BL9K1104KG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T05:58:57Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>8826f5e4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='5d7e9672-62a8-4924-8a0f-b0861e6b123a'>
	<result xmlns='urn:xmpp:mam:1' id='BLAGAP2C4G09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T15:45:05Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>cb3438eb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='acc4e14d-aa80-4fb3-a2f9-07760c5a74e6'>
	<result xmlns='urn:xmpp:mam:1' id='BLB1TGQHHG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T12:43:55Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>06932a8f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='5f0b3a59-8b1d-443f-a6ee-6e222bcfb60a'>
	<result xmlns='urn:xmpp:mam:1' id='BLBPC9HNT00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T16:43:22Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>c979ed50</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='1933de89-493b-4670-88e0-a2865f043b28'>
	<result xmlns='urn:xmpp:mam:1' id='BLC3OVSNC00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T05:07:36Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>a86ef1b9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='92da5eba-7982-4f74-83dc-efad4e13378b'>
	<result xmlns='urn:xmpp:mam:1' id='BLCV3M7KO002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T13:44:16Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>bfec3cea</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='4a62f40d-8a62-4453-8d7e-fe5e1206553a'>
	<result xmlns='urn:xmpp:mam:1' id='BLDDEPIU200B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T06:51:16Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>cb619522</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='2f8daa7a-48e5-4c3b-aaa0-c9b093e1e590'>
	<result xmlns='urn:xmpp:mam:1' id='BLE71BLVV008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T13:22:22Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>dce34d89</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.415 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='3789ac76-3db5-4e06-b4a3-b8a6e1d5f38c'>
	<result xmlns='urn:xmpp:mam:1' id='BLERRJHMU00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T14:12:44Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>caac70aa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.416 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='8de5c581-8e1d-425d-8e91-56ca485a31c4'>
	<result xmlns='urn:xmpp:mam:1' id='BLF8J3REDG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T05:24:19Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>62024229</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.416 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='e04b2f92-5184-4043-b1bb-91bef6c1f553'>
	<result xmlns='urn:xmpp:mam:1' id='BLFUEC50G00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T07:28:32Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>04694de8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.416 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='b059f40f-707a-48cb-b176-c16788b88039'>
	<result xmlns='urn:xmpp:mam:1' id='BLGFRRIQK00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T04:15:36Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>daa3ab5f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.416 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='ab737513-320e-4bef-b598-781efaf3c2a4'>
	<result xmlns='urn:xmpp:mam:1' id='BLH9JH00RG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T10:58:07Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>a8ccf584</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.416 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='f033c4ec-3c95-4f8c-b639-be59eb3d5fca'>
	<result xmlns='urn:xmpp:mam:1' id='BLHRD095CG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T08:12:01Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>eb1d98d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.417 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='6b656649-9db0-4e79-8177-1b2db9ef2112'>
	<result xmlns='urn:xmpp:mam:1' id='BLISH8TDA00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T23:43:48Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>db4512ed</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.417 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='e5104947-0df8-470f-8fc4-30e7ca81ad4d'>
	<result xmlns='urn:xmpp:mam:1' id='BLJB2DROQ00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T17:04:20Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>48641e52</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:54.417 ***
alicE_unnamed_1306@localhost/res1 in
<iq from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='8970d9d9719fab0d324ad9640edc0e69' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL8ULTBF9G01</first>
			<last>BLJB2DROQ00C</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:26:54.417 ***
alicE_unnamed_1306@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:26:54.417 ***
alicE_unnamed_1306@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:54.428 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:54.429 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1710.html



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