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

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


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

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

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



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



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

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



*** User 2022-01-27 15:29:31.222 ***
alicE_unnamed_1152@localhost/res1 in
<iq id='34936c3f870a7c5eb141cb671dd4551e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1152@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



*** User 2022-01-27 15:29:31.225 ***
alicE_unnamed_1152@localhost/res1 out
<iq type='set' id='ba4e01670c7bb1e4e77caf1d7d918b8c'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1152@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:31.229 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='d13133b1-e1e7-432e-a606-9731ab9ccaa0'>
	<result xmlns='urn:xmpp:mam:2' id='BLA3TNVIC009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T00:56:56Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>3881da70</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.229 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='9bfdd8a7-5a79-4c72-b79b-1a9ae1fa6ff2'>
	<result xmlns='urn:xmpp:mam:2' id='BLB97PL7BG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T21:27:59Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>0af64711</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.229 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='2d9d9365-1d17-4e50-9edf-b0826af26f34'>
	<result xmlns='urn:xmpp:mam:2' id='BLBH4ARHR005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T06:52:54Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>22795aa5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.229 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='16641b59-2457-4a47-ac41-7095bebed7db'>
	<result xmlns='urn:xmpp:mam:2' id='BLCCKMCQ300J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T15:42:14Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>6f76e6e3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='a3aa0a32-fba8-4282-89a1-6771a2ed7817'>
	<result xmlns='urn:xmpp:mam:2' id='BLD003AGUG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T14:47:49Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>00da35b1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='e8b410bf-f20e-478a-a859-15bc5addca43'>
	<result xmlns='urn:xmpp:mam:2' id='BLD8R8STM00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T01:21:16Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>935b94ba</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='95c14b67-d7fa-48fd-9e71-26edc6a1fa02'>
	<result xmlns='urn:xmpp:mam:2' id='BLDV27VSQG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T03:51:41Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>87796037</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='fca5e42a-83dc-46af-884b-40cbd8b849e5'>
	<result xmlns='urn:xmpp:mam:2' id='BLEKTN6MVG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T05:56:23Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>f9207536</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='a9df34fc-c6d1-4446-8b21-4f6139bd6a2c'>
	<result xmlns='urn:xmpp:mam:2' id='BLFECQLNKG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T12:19:45Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>a2bec624</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='2832c513-e756-4dbf-94c8-4cda46d2e3f5'>
	<result xmlns='urn:xmpp:mam:2' id='BLFRQ1NGT00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T04:19:54Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>b7d16fd8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='0ca865f6-186d-40ab-a1ba-20a771f8208e'>
	<result xmlns='urn:xmpp:mam:2' id='BLGSTLRKNG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T19:50:15Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>b73f12b0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='208d17d4-770f-452e-b752-76000facf58f'>
	<result xmlns='urn:xmpp:mam:2' id='BLH22BK4V00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T01:58:38Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>5b5817b8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.230 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='e045f47b-b9fd-40bf-bd43-403a4ee6fa2d'>
	<result xmlns='urn:xmpp:mam:2' id='BLI3PEG83G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T18:12:31Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>85c54fd1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='99f467b5-c7bb-417a-aeb8-ad487f0fdefc'>
	<result xmlns='urn:xmpp:mam:2' id='BLIEAL30L00D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T06:46:50Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>9916a8f2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='91d1aad6-cfbd-43f2-92c1-c0665c342c03'>
	<result xmlns='urn:xmpp:mam:2' id='BLJ8U4OBVG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T14:31:35Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>025e07f8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='5617f831-5ad0-4089-9394-c7d2eeb2a87f'>
	<result xmlns='urn:xmpp:mam:2' id='BLJU5MTECG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T15:51:45Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>b37fd623</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
<message from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='9745a1bd-581e-4107-8098-9c7d17f4c00b'>
	<result xmlns='urn:xmpp:mam:2' id='BLKNFPEK400J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T22:03:52Z' from='alice_unnamed_1152@localhost'/>
			<message from='alice_unnamed_1152@localhost' xmlns='jabber:client' to='bOb_unnamed_1152@localhost' type='chat'>
				<body>b288d136</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
<iq from='alicE_unnamed_1152@localhost' to='alicE_unnamed_1152@localhost/res1' id='ba4e01670c7bb1e4e77caf1d7d918b8c' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLA3TNVIC009</first>
			<last>BLKNFPEK400J</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 15:29:31.231 ***
alicE_unnamed_1152@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:31.242 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:31.244 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1370.html



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