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

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


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

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

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



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



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

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



*** User 2022-01-27 15:29:12.584 ***
alicE_unnamed_968@localhost/res1 in
<iq id='4294c33bd7c29059b55bbbef4858b5bc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_968@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



*** User 2022-01-27 15:29:12.588 ***
alicE_unnamed_968@localhost/res1 out
<iq type='set' id='6b392c585f5338f5a9f83c1e8c78d1bd'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_968@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:12.596 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='7729fc30-a42e-4c33-b932-44054751c57b'>
	<result xmlns='urn:xmpp:mam:1' id='BLALJHFPE00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T22:02:36Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>9e9fd070</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.596 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='d5c3c4c5-b8de-481a-af9d-5f90d27f65d5'>
	<result xmlns='urn:xmpp:mam:1' id='BLB4IHSQG00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:54:08Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>7a701f96</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.596 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='f8106536-17ad-4258-8dc8-ef7e47170d28'>
	<result xmlns='urn:xmpp:mam:1' id='BLBO3KNOL003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T15:12:26Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>f33a402a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.596 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='00d4d914-d204-4911-bee9-b6ecf2aad9a8'>
	<result xmlns='urn:xmpp:mam:1' id='BLCFOEQD200A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T19:25:24Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>3e5c3ab2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='89404cd0-da5c-4339-acd2-1f3c7b6b76d0'>
	<result xmlns='urn:xmpp:mam:1' id='BLCK77KFRG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T00:44:47Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>c94e04fa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='4d71eeaa-65b5-4c43-802b-a8a3089b1f35'>
	<result xmlns='urn:xmpp:mam:1' id='BLDR3S5NM00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T23:09:00Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>0bef2ae0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='85320086-a518-4889-8170-c977a40f99d5'>
	<result xmlns='urn:xmpp:mam:1' id='BLEB1UA2S00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T18:10:00Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>c03d22aa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='ffac7b1a-4319-421a-a3d4-a38424fe7f45'>
	<result xmlns='urn:xmpp:mam:1' id='BLEPCB0IQG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T11:15:25Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>372d016e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='4f0a33db-d56a-43c9-acbb-0d6368b37c82'>
	<result xmlns='urn:xmpp:mam:1' id='BLF7GK6VF006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T04:07:10Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>535c452f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='9313a1df-32e3-4f43-93e1-5a1ecfb871f3'>
	<result xmlns='urn:xmpp:mam:1' id='BLFQ1E7CE00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T02:13:16Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>f806481c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='d624ba81-edf7-4e40-98b1-b70018683f57'>
	<result xmlns='urn:xmpp:mam:1' id='BLGED5SLJG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T02:31:11Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>bd7b3a4c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='1bfc116d-3856-4484-a15b-0017d6d15cb2'>
	<result xmlns='urn:xmpp:mam:1' id='BLHD7758FG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T15:16:55Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>30c09ea7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='1b206c7f-69d0-45f1-bce3-4128b7c8a0dd'>
	<result xmlns='urn:xmpp:mam:1' id='BLHMC4QH9G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T02:12:11Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>b3210de3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='4c5f3981-b00a-4fa1-a710-20c45472c8b4'>
	<result xmlns='urn:xmpp:mam:1' id='BLII3RTKFG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T11:17:59Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>fb6ff313</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='1dc70be5-3200-4c51-b84c-835a2534b5fa'>
	<result xmlns='urn:xmpp:mam:1' id='BLIVGFT2G006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T03:16:48Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>d6ec11d5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='95b3f59e-7b75-4ea7-b32f-cefbdf1f8112'>
	<result xmlns='urn:xmpp:mam:1' id='BLJO6I9AL003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T08:44:10Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>89739432</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:12.597 ***
alicE_unnamed_968@localhost/res1 in
<message from='alicE_unnamed_968@localhost' to='alicE_unnamed_968@localhost/res1' id='3d34097d-3ab1-4243-b801-ccc9e821f26e'>
	<result xmlns='urn:xmpp:mam:1' id='BLK8G8QPG007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T04:11:12Z' from='alice_unnamed_968@localhost'/>
			<message from='alice_unnamed_968@localhost' xmlns='jabber:client' to='bOb_unnamed_968@localhost' type='chat'>
				<body>caa35a89</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:12.598 ***
alicE_unnamed_968@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:12.601 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:12.602 *** View log from node mongooseim@localhost when finished mongooseim@localhost_975.html



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