=== 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.22049.0>},
     {basic_group,mam_all},
     {configuration,rdbms},
     {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.35074.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_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 => [],
        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:02


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

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

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



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



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

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



*** User 2022-01-27 15:29:02.827 ***
alicE_unnamed_892@localhost/res1 in
<iq id='3b97416cca7039381abf658b902bb2ee' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_892@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



*** User 2022-01-27 15:29:02.831 ***
alicE_unnamed_892@localhost/res1 out
<iq type='set' id='50ddee90837c1923e058f3077495660e'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_892@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='878c116f-5ff2-436e-b710-0922725efd97'>
	<result xmlns='urn:xmpp:mam:2' id='BLAEONRBMG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T13:53:09Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>416c043d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='68101880-a2ef-404b-ade4-202785a372cb'>
	<result xmlns='urn:xmpp:mam:2' id='BLB8KUERIG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T20:45:49Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>f0a42bb2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='dd481853-b9bf-4299-8b5f-a06daad59f8a'>
	<result xmlns='urn:xmpp:mam:2' id='BLBOHLE9A00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T15:43:48Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>06470035</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='c71abcfd-5f2c-4196-b763-c1cde3fd4c27'>
	<result xmlns='urn:xmpp:mam:2' id='BLC8KF6TU00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T10:55:24Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>25088edb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='30dd1e72-48b8-4b18-bd59-829b8f905221'>
	<result xmlns='urn:xmpp:mam:2' id='BLD469N5SG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T19:48:01Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>4a668a29</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='0c0576d7-d8a4-4fdb-9a84-c71ff1a6e085'>
	<result xmlns='urn:xmpp:mam:2' id='BLDEQT8IMG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T08:29:57Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>34db974c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='120215e0-0dac-4e00-92ba-5468538e1829'>
	<result xmlns='urn:xmpp:mam:2' id='BLE1ACBMBG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T06:33:03Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>ca099083</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.858 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='e145d2e1-57bf-4a9f-a519-2d39aacb7961'>
	<result xmlns='urn:xmpp:mam:2' id='BLEQQGV6I002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T12:58:44Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>fba21ec7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='b18f81f7-836d-4a42-9683-7bef732696c8'>
	<result xmlns='urn:xmpp:mam:2' id='BLFIO44SOG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T17:31:21Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>28368e7e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='7a03a751-fcde-4bf6-96fc-d661a445202b'>
	<result xmlns='urn:xmpp:mam:2' id='BLG4F5UFJ00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T14:39:50Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>2851d47b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='140b9756-e84b-475b-a057-c2c866a9cae9'>
	<result xmlns='urn:xmpp:mam:2' id='BLGRSQ6CE003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T18:36:44Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>f5fc6a98</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='56d49a96-7cc3-44c3-a3f7-63a51503cce4'>
	<result xmlns='urn:xmpp:mam:2' id='BLH84DUJV00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T09:12:46Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>f321ead1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='c5ed3440-c1c2-4527-bf78-53cd1f087258'>
	<result xmlns='urn:xmpp:mam:2' id='BLHTNA13R00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T10:58:14Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>17293e51</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='a273b132-d3ce-4580-8955-1ef688473633'>
	<result xmlns='urn:xmpp:mam:2' id='BLIMD3J2PG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T16:24:59Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>d244aa9e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='cb835ac9-1abd-4894-a9fa-95ab9cc73551'>
	<result xmlns='urn:xmpp:mam:2' id='BLIU22HUD002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T01:32:58Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>e16f05ee</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='ecf7e677-2ec9-42e4-86e1-f806657bc9f7'>
	<result xmlns='urn:xmpp:mam:2' id='BLK4UR4SK006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T23:57:28Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>74aa89a8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 15:29:02.859 ***
alicE_unnamed_892@localhost/res1 in
<message from='alicE_unnamed_892@localhost' to='alicE_unnamed_892@localhost/res1' id='4e38da6c-08e6-4773-a971-b04dcfeab70e'>
	<result xmlns='urn:xmpp:mam:2' id='BLKOJE1KS00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T23:23:36Z' from='alice_unnamed_892@localhost'/>
			<message from='alice_unnamed_892@localhost' xmlns='jabber:client' to='bOb_unnamed_892@localhost' type='chat'>
				<body>2035572b</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-01-27 15:29:02.860 ***
alicE_unnamed_892@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:29:02.863 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_549.html
*** CT 2022-01-27 15:29:02.865 *** View log from node mongooseim@localhost when finished mongooseim@localhost_966.html



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