=== 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.24255.0>},
     {basic_group,mam_all},
     {configuration,rdbms_simple},
     {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.41602.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_simple_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_rdbms_arch =>
            [[{db_jid_format,mam_jid_rfc},
              {db_message_format,mam_message_xml}]],
        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:06


*** CT 2022-01-25 16:26:06.700 *** View log from node mongooseim@localhost when started mongooseim@localhost_964.html
*** CT 2022-01-25 16:26:06.701 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

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



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



*** User 2022-01-25 16:26:07.395 ***
alicE_unnamed_951@localhost/res1 out
<iq type='set' id='363b63d2338d088a252709a3fed6a651'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:07.395 ***
alicE_unnamed_951@localhost/res1 in
<iq type='result' id='363b63d2338d088a252709a3fed6a651'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



*** User 2022-01-25 16:26:07.398 ***
alicE_unnamed_951@localhost/res1 out
<iq type='set' id='626f4d52c891446b4dade39d9de3c236'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_951@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='f069cd60-e388-4800-b204-e3386638f548'>
	<result xmlns='urn:xmpp:mam:1' id='BL96164FUG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T13:17:09Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>9f09da62</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='1e1af4a3-c90b-4de9-83d0-c7ba8079ada2'>
	<result xmlns='urn:xmpp:mam:1' id='BLA09QDQCG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T20:37:37Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>a38fd5f0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='b00fabd8-6f72-4d10-b97c-31a74aea4e68'>
	<result xmlns='urn:xmpp:mam:1' id='BLAF5BNHTG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T14:21:23Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>b1e13663</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='e7c11639-882f-45bb-8a78-ae116fea207f'>
	<result xmlns='urn:xmpp:mam:1' id='BLB9QKRJ4G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T22:10:09Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>00c943b7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='86e9436f-adfd-4ac0-9c4b-083cd640eb7d'>
	<result xmlns='urn:xmpp:mam:1' id='BLBP644JF00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T16:29:34Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>de00c91b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.403 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='c09794ef-3626-4844-b78e-3f0c9885e940'>
	<result xmlns='urn:xmpp:mam:1' id='BLCD1R6M9G03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T16:11:39Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>96b055c5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='294f4927-9f3e-4d8f-adad-0d5667dd4073'>
	<result xmlns='urn:xmpp:mam:1' id='BLCVMDJU9002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T14:26:10Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>0ad1fb47</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='4603f6a3-988a-4e3d-8fbc-336009526a51'>
	<result xmlns='urn:xmpp:mam:1' id='BLDM18M6HG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T17:05:15Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>302cf3f5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='006fadb9-df36-4918-aa12-635a68e663b7'>
	<result xmlns='urn:xmpp:mam:1' id='BLDT0SIR8G0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T01:25:29Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>45eb5b71</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='52b538be-a93d-483e-8c56-04b026f968f6'>
	<result xmlns='urn:xmpp:mam:1' id='BLELH07ITG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T06:39:31Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>27f9fa22</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='54210bd7-7307-40d2-b649-f77922d564c7'>
	<result xmlns='urn:xmpp:mam:1' id='BLFL5TN15G08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T20:25:23Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>cf9e7eff</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='54713709-81e3-462f-b3db-11e845fa7475'>
	<result xmlns='urn:xmpp:mam:1' id='BLG95P3E1G02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T20:16:43Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>6169f1af</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='6a2ca7b5-b48e-4566-8f0b-fbb00f79495a'>
	<result xmlns='urn:xmpp:mam:1' id='BLGOHNKNC007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T14:37:12Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>9bacdeba</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='3bad5b81-853e-4522-9734-f680529cd7a0'>
	<result xmlns='urn:xmpp:mam:1' id='BLH666THJG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T06:53:35Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>b903103c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.404 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='e2eea346-7852-4dd1-99bc-be7810b62973'>
	<result xmlns='urn:xmpp:mam:1' id='BLHP0R5FTG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T05:21:39Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>eb8cf20a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.405 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='7e0d6e9f-1b85-4711-a536-fe9ad0afe0d1'>
	<result xmlns='urn:xmpp:mam:1' id='BLIFQB6OPG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T08:33:31Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>1a7ac3d0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.405 ***
alicE_unnamed_951@localhost/res1 in
<message from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='5508bd02-31a6-4d0e-bb3d-41af5d596614'>
	<result xmlns='urn:xmpp:mam:1' id='BLJ1G1C5SG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T05:38:57Z' from='alice_unnamed_951@localhost'/>
			<message from='alice_unnamed_951@localhost' xmlns='jabber:client' to='bOb_unnamed_951@localhost' type='chat'>
				<body>48500357</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:07.405 ***
alicE_unnamed_951@localhost/res1 in
<iq from='alicE_unnamed_951@localhost' to='alicE_unnamed_951@localhost/res1' id='626f4d52c891446b4dade39d9de3c236' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL96164FUG0F</first>
			<last>BLJ1G1C5SG04</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-25 16:26:07.405 ***
alicE_unnamed_951@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:07.430 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:07.432 *** View log from node mongooseim@localhost when finished mongooseim@localhost_966.html



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