=== 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.4620.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@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.69635.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@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_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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:29:48


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

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

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



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



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

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



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



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



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



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



*** User 2022-01-27 15:29:49.528 ***
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-27 15:29:49.528 ***
alicE_unnamed_1306@localhost/res1 out
<iq type='set' id='c4076ab95fcaf49404384985ebe9c8b9'>
	<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-27 15:29:49.544 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='696aa5c0-79e7-4f57-8d37-38e31d7d47e0'>
	<result xmlns='urn:xmpp:mam:1' id='BLA98OKM900I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T07:19:30Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>9fa5619b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.544 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='fbb03145-4ae6-4654-b01a-4d9a9eac3791'>
	<result xmlns='urn:xmpp:mam:1' id='BLB748S0S00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T18:56:56Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>ceceb189</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='2c538413-a88b-4582-bc3a-3ead2c0d579c'>
	<result xmlns='urn:xmpp:mam:1' id='BLBO68LA5006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T15:18:18Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>dc399225</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='57fc13d9-e43a-4bef-b89f-1a109ba4bf78'>
	<result xmlns='urn:xmpp:mam:1' id='BLCGNM8QI00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T20:35:16Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>291d8a4e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='cca08bd5-a069-4770-b1ee-894aadf47811'>
	<result xmlns='urn:xmpp:mam:1' id='BLCK80T6OG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T00:46:33Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>47bca279</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='cbd9175e-808e-4ca3-bc05-5e1afe39139c'>
	<result xmlns='urn:xmpp:mam:1' id='BLDN7C6HR002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T18:30:30Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>b979496e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='af3a34b0-189a-4483-b189-7a9f50f07b77'>
	<result xmlns='urn:xmpp:mam:1' id='BLE9OT3CA00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T16:38:12Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>92697844</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='d539f013-01a1-4b58-9212-e44cd9e1c0b1'>
	<result xmlns='urn:xmpp:mam:1' id='BLEIO3ST8G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T03:20:41Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>c0d68fd5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='2647f75c-f62e-4e0d-a2ae-93f25d489b65'>
	<result xmlns='urn:xmpp:mam:1' id='BLF6REK7Q007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T03:19:48Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>113ef745</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='96bc8ae5-5d93-45de-9f2b-d269b4e11227'>
	<result xmlns='urn:xmpp:mam:1' id='BLG8LATBM00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T19:39:56Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>b26dd3b3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='0f0f768b-2d1c-4a6b-a9f4-401b42ffd135'>
	<result xmlns='urn:xmpp:mam:1' id='BLGE9M2FL007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T02:23:22Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>54496334</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='7fada846-ad0d-442a-9de7-4a8bde8348de'>
	<result xmlns='urn:xmpp:mam:1' id='BLHKC3RGOG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T23:48:57Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>62d72d34</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='f83cad2d-6f9e-4160-8c36-b20cd120e4b3'>
	<result xmlns='urn:xmpp:mam:1' id='BLHT1FU83009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T10:09:26Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>e6e302a0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='5090ed6a-3c5c-48b6-8c6a-4818e27c0173'>
	<result xmlns='urn:xmpp:mam:1' id='BLIGCU9NPG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T09:15:07Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>29d91a56</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='9320ccd7-c97e-4542-b0d7-6220715ec6fd'>
	<result xmlns='urn:xmpp:mam:1' id='BLJ7A9JDC00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T12:35:36Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>b7e01365</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='c2edc78a-ab77-4797-aa0f-81d0cb3c03d8'>
	<result xmlns='urn:xmpp:mam:1' id='BLJU35JQE00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T15:46:04Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>d3fb5f4b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:49.545 ***
alicE_unnamed_1306@localhost/res1 in
<message from='alicE_unnamed_1306@localhost' to='alicE_unnamed_1306@localhost/res1' id='d279c20f-a5ac-4270-bf07-7b5448f4eee8'>
	<result xmlns='urn:xmpp:mam:1' id='BLKBNBBF1G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T08:01:47Z' from='alice_unnamed_1306@localhost'/>
			<message from='alice_unnamed_1306@localhost' xmlns='jabber:client' to='bOb_unnamed_1306@localhost' type='chat'>
				<body>aac1e3c7</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:49.546 ***
alicE_unnamed_1306@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:49.549 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:49.550 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1710.html



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