=== 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.21277.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@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.25731.html"},
     {tc_group_properties,[{name,mam04},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@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 => [],
        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:25:53


*** CT 2022-01-25 16:25:53.434 *** View log from node mongooseim@localhost when started mongooseim@localhost_950.html
*** CT 2022-01-25 16:25:53.435 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

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

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



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



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

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



*** User 2022-01-25 16:25:54.841 ***
alicE_unnamed_866@localhost/res1 in
<iq id='580e18b8d3da44f110fd3295d1f29a23' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_866@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:25:54.841 ***
alicE_unnamed_866@localhost/res1 out
<iq type='set' id='22ed626bd6b7c087c205d7c505d3658d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:25:54.842 ***
alicE_unnamed_866@localhost/res1 in
<iq type='result' id='22ed626bd6b7c087c205d7c505d3658d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:25:54.842 ***
alicE_unnamed_866@localhost/res1 out
<presence/>



*** User 2022-01-25 16:25:54.844 ***
alicE_unnamed_866@localhost/res1 in
<presence from='alicE_unnamed_866@localhost/res1' to='alice_unnamed_866@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:25:54.845 ***
alicE_unnamed_866@localhost/res1 out
<iq type='set' id='6a0ecc21b1db6cdd6674a785ed334ddb'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_866@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='9b245208-f7e0-4557-ab41-e97c75301d15'>
	<result xmlns='urn:xmpp:mam:1' id='BL9AAT9RD00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T18:25:14Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>f441793e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='d6693cb7-b625-4a66-a37c-df99897e784d'>
	<result xmlns='urn:xmpp:mam:1' id='BLA2NFU8D00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T23:31:22Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>98d84628</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='564e061f-ce56-4a49-9395-a330f48932ee'>
	<result xmlns='urn:xmpp:mam:1' id='BLAG52TGMG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T15:32:21Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>98ab15e4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='8feb6472-af20-4ccc-ae25-7f74844775cd'>
	<result xmlns='urn:xmpp:mam:1' id='BLB3RFVR8G0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T15:02:33Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>66f707f0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='fd3793e9-b5de-4fe1-844c-0538fa0607c3'>
	<result xmlns='urn:xmpp:mam:1' id='BLBU31UHEG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:20:37Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>cbdae34b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='4d7eddeb-d9b8-4eb0-abda-8f25d59eb67c'>
	<result xmlns='urn:xmpp:mam:1' id='BLC4S8AKUG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T06:26:29Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>41458431</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='1b5ec498-6ac8-4331-813c-1043a7a13810'>
	<result xmlns='urn:xmpp:mam:1' id='BLCL8S36P006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T02:00:02Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>9a5034d4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='42d60427-04a3-4fba-a870-38418737f594'>
	<result xmlns='urn:xmpp:mam:1' id='BLDC7GSCQG0F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T05:23:25Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>7218a248</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='0e823553-20cd-4f22-993e-674ee4c1f984'>
	<result xmlns='urn:xmpp:mam:1' id='BLEE4PSGQG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T21:51:09Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>4128b838</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='fc218597-de61-45c0-a814-228a8467139a'>
	<result xmlns='urn:xmpp:mam:1' id='BLEGJ5IFTG0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T00:46:27Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>ab24909c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.851 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='f0856696-aaef-4dd5-a18b-9606a9b3bc75'>
	<result xmlns='urn:xmpp:mam:1' id='BLFK31E6OG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T19:07:21Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>5c5494a1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='b74716ce-c1b0-476e-9f58-d8355beb50d1'>
	<result xmlns='urn:xmpp:mam:1' id='BLG17I8FTG01'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T10:48:03Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>3838c807</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='67c26d81-59d3-4a05-bacf-03dcf439ac87'>
	<result xmlns='urn:xmpp:mam:1' id='BLGFC2JOP002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T03:40:18Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>549b11fa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='32022ab0-01ad-4cea-9485-2971506cdeb9'>
	<result xmlns='urn:xmpp:mam:1' id='BLHEV5M0IG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T17:22:05Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>a9dedc45</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='30dbd7c7-d344-4038-ba63-88d5956571bd'>
	<result xmlns='urn:xmpp:mam:1' id='BLHU3S7T2G0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T11:26:21Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>10deae0e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='b9f3f0fe-af14-40f8-9b91-9ff0c16524a4'>
	<result xmlns='urn:xmpp:mam:1' id='BLIQC0Q66G0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T21:08:53Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>c89a01c7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<message from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='d617c9dd-ae8e-4dbb-84c7-4603d0ee48eb'>
	<result xmlns='urn:xmpp:mam:1' id='BLJBE5C29G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T17:30:35Z' from='alice_unnamed_866@localhost'/>
			<message from='alice_unnamed_866@localhost' xmlns='jabber:client' to='bOb_unnamed_866@localhost' type='chat'>
				<body>b40882cf</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:25:54.852 ***
alicE_unnamed_866@localhost/res1 in
<iq from='alicE_unnamed_866@localhost' to='alicE_unnamed_866@localhost/res1' id='6a0ecc21b1db6cdd6674a785ed334ddb' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL9AAT9RD00E</first>
			<last>BLJBE5C29G06</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:25:54.853 ***
alicE_unnamed_866@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:25:54.853 ***
alicE_unnamed_866@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:25:54.861 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:25:54.862 *** View log from node mongooseim@localhost when finished mongooseim@localhost_953.html



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