=== 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.30855.0>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia},
     {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.56963.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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_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:26:29


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-25 16:26:29.801 ***
alicE_unnamed_1139@localhost/res1 out
<iq type='set' id='d85e2a1393f65e62a37c0dbb3d17a93f'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1139@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:29.805 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='6eec6496-eba6-4bf6-a19b-d92ad34a0ed6'>
	<result xmlns='urn:xmpp:mam:2' id='BL99S1DIN001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T17:51:58Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>0bb1cd9b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.805 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='5cddc68e-0243-4f7a-bd9e-3107e17ce902'>
	<result xmlns='urn:xmpp:mam:2' id='BL9UBB1N3G0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T18:17:51Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>4f56d646</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.805 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='2f15cd64-f5e8-49ce-ac71-af99fde706ea'>
	<result xmlns='urn:xmpp:mam:2' id='BLAM6U33FG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T22:45:59Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>451820ef</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.805 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='02cd9b19-0f66-45c2-8d52-dfe9d788c8da'>
	<result xmlns='urn:xmpp:mam:2' id='BLB2BSG0LG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T13:16:03Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>17f740fb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.805 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='24c8e60c-5bcb-47a3-ab0c-990c578ffd0c'>
	<result xmlns='urn:xmpp:mam:2' id='BLBS9QDH5G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T20:12:35Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>21c7bd26</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.806 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='e4cf57a4-ebba-42f7-9a3a-f11bda1ded98'>
	<result xmlns='urn:xmpp:mam:2' id='BLC6RN5QPG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T08:48:27Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>c632a12d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.806 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='fb4ea5f9-d349-40f6-90b4-4e3f423a3471'>
	<result xmlns='urn:xmpp:mam:2' id='BLCV9QTSOG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T13:58:01Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>1896f8d3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='ee4686ee-852e-4774-9f7c-1421b95b4649'>
	<result xmlns='urn:xmpp:mam:2' id='BLDFITTO2G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T09:23:41Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>a2b814c4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='3f6517d0-2aa1-4475-a509-4811fe13fca9'>
	<result xmlns='urn:xmpp:mam:2' id='BLECM9E6T00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T20:07:06Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>7d1aba69</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='b6a14437-da52-424f-9087-7fdd3a0e5b10'>
	<result xmlns='urn:xmpp:mam:2' id='BLEUHLOFE005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T17:25:16Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>dbc26969</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='3c61ecdd-ec6d-44d7-943a-6b1e5f91964d'>
	<result xmlns='urn:xmpp:mam:2' id='BLF5G6JJFG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T01:43:03Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>66e480d1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='12598370-f653-428f-b3b1-811cc457ee9d'>
	<result xmlns='urn:xmpp:mam:2' id='BLFRTGQQE00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T04:27:40Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>13a0b747</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='5bd45f9b-72b8-49f8-89f3-638da878184d'>
	<result xmlns='urn:xmpp:mam:2' id='BLGKPG1HV00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T10:08:14Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>c627dfa8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.807 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='75998afa-286c-42ec-a1f7-c985355b9e4e'>
	<result xmlns='urn:xmpp:mam:2' id='BLH6E3SAQ004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T07:11:16Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>7c96a526</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.808 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='97610dad-1a91-44fd-86ca-7d314dedc435'>
	<result xmlns='urn:xmpp:mam:2' id='BLHPS8A19001'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T06:22:58Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>cde61660</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.810 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='a528b6cd-946d-4c85-b6c5-442522829406'>
	<result xmlns='urn:xmpp:mam:2' id='BLIENT7MQG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T07:16:29Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>310af9ff</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.810 ***
alicE_unnamed_1139@localhost/res1 in
<message from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='7de5610a-1db1-49bc-a46b-b925310cbcb7'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ3IS7FE00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T08:08:28Z' from='alice_unnamed_1139@localhost'/>
			<message from='alice_unnamed_1139@localhost' xmlns='jabber:client' to='bOb_unnamed_1139@localhost' type='chat'>
				<body>5d6cd934</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:29.810 ***
alicE_unnamed_1139@localhost/res1 in
<iq from='alicE_unnamed_1139@localhost' to='alicE_unnamed_1139@localhost/res1' id='d85e2a1393f65e62a37c0dbb3d17a93f' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL99S1DIN001</first>
			<last>BLJ3IS7FE00E</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-25 16:26:29.810 ***
alicE_unnamed_1139@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:29.820 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:29.821 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1374.html



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