=== 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.172.1>},
     {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,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.19.57/mam_suite.querying_for_all_messages_with_jid.54659.html"},
     {tc_group_properties,[{name,mam04},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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.19.57/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@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:20:25


*** CT 2022-03-04 11:20:25.115 *** View log from node mongooseim@localhost when started mongooseim@localhost_1419.html
*** CT 2022-03-04 11:20:25.116 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_524.html

*** User 2022-03-04 11:20:25.371 ***
alicE_unnamed_1089@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-03-04 11:20:25.372 ***
alicE_unnamed_1089@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6e2c9128de73d1b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:25.372 ***
alicE_unnamed_1089@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-03-04 11:20:25.372 ***
alicE_unnamed_1089@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTA4OQBtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1089@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1089@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-03-04 11:20:25.374 ***
alicE_unnamed_1089@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3e39364da9d1dd71' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:25.374 ***
alicE_unnamed_1089@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-03-04 11:20:25.375 ***
alicE_unnamed_1089@localhost/res1 out
<iq type='set' id='d51455931e2142a92f3ab5b0155bfc03'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1089@localhost/res1 in
<iq id='d51455931e2142a92f3ab5b0155bfc03' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1089@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1089@localhost/res1 out
<iq type='set' id='521cb0d491cf227f14a9e19f827bae91'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1089@localhost/res1 in
<iq type='result' id='521cb0d491cf227f14a9e19f827bae91'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:25.376 ***
alicE_unnamed_1089@localhost/res1 out
<presence/>



*** User 2022-03-04 11:20:25.380 ***
alicE_unnamed_1089@localhost/res1 in
<presence from='alicE_unnamed_1089@localhost/res1' to='alice_unnamed_1089@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:20:25.380 ***
alicE_unnamed_1089@localhost/res1 out
<iq type='set' id='aa6974b9f3131a530eeb1692624e2df2'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1089@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-03-04 11:20:25.383 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='2933b1b4-db27-442c-96f9-0b1041a4d4e8'>
	<result xmlns='urn:xmpp:mam:1' id='BM0O05518003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T00:48:16Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>6235ee55</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.383 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='d067cce7-cb16-4231-990d-335499eecee6'>
	<result xmlns='urn:xmpp:mam:1' id='BM1V4M5Q0006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T23:30:08Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>9dc6294a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.383 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='2b4f0487-b15e-428e-a963-2bfa2dbd1941'>
	<result xmlns='urn:xmpp:mam:1' id='BM2EF42MKG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T17:47:13Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>54889ed8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.383 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='2b322a4d-0bde-4a66-8340-dadae155abd4'>
	<result xmlns='urn:xmpp:mam:1' id='BM30ESBDN00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T15:15:10Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>97bdaee2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='dd6dccba-6c86-4be6-a1c6-b6cab1ebd008'>
	<result xmlns='urn:xmpp:mam:1' id='BM3823H0DG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T00:19:15Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>03fc9360</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='54bff472-c9c7-4610-8a75-232c179fa0b6'>
	<result xmlns='urn:xmpp:mam:1' id='BM40MU353005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-21T05:43:50Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>7687d6c8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='cb8e8333-74da-484e-9841-fd64e792376b'>
	<result xmlns='urn:xmpp:mam:1' id='BM4QO96U0006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-22T12:48:00Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>97cd11b4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='aa4da204-76c1-49fc-bf67-9c01711f7665'>
	<result xmlns='urn:xmpp:mam:1' id='BM5K1F4IRG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-23T18:58:07Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>d54e234b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='668b9155-0e5e-414f-9e80-1e2674b964b3'>
	<result xmlns='urn:xmpp:mam:1' id='BM6775LQ4G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-24T17:50:57Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>fcf508fb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='e7ebc372-e776-4637-b2b7-8c5f5f460b5d'>
	<result xmlns='urn:xmpp:mam:1' id='BM6T40OE5G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-25T19:58:43Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>3b73046c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.385 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='5bf6e236-cc69-4219-bcc7-c42bcefd5790'>
	<result xmlns='urn:xmpp:mam:1' id='BM737EUN1G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-26T03:15:55Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>37151f4d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='66066913-1f27-439f-a5d3-fc6332336027'>
	<result xmlns='urn:xmpp:mam:1' id='BM7NU0AK400B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-27T03:58:00Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>f8130fd8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='a7ab5418-f2dd-4f66-8563-dc6a44c755dc'>
	<result xmlns='urn:xmpp:mam:1' id='BM8L9QTMR00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-28T15:00:22Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>8c924821</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='c6a22ceb-1d15-4ec0-9549-fd010de09d7c'>
	<result xmlns='urn:xmpp:mam:1' id='BM9A24I53G08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-01T15:46:23Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>d1be886e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='60822311-394a-4c89-9f29-0298279d2257'>
	<result xmlns='urn:xmpp:mam:1' id='BM9IK62HIG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-02T01:59:25Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>f05b8840</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='a71bc821-0c51-4f0a-83ac-a3dfcff414cf'>
	<result xmlns='urn:xmpp:mam:1' id='BMACKDT5LG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T09:01:07Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>300b9972</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<message from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='afa9de53-6d47-4e59-a98b-08102a65496b'>
	<result xmlns='urn:xmpp:mam:1' id='BMAV33NIDG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T07:02:27Z' from='alice_unnamed_1089@localhost'/>
			<message from='alice_unnamed_1089@localhost' xmlns='jabber:client' to='bOb_unnamed_1089@localhost' type='chat'>
				<body>7fa36b78</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 in
<iq from='alicE_unnamed_1089@localhost' to='alicE_unnamed_1089@localhost/res1' id='aa6974b9f3131a530eeb1692624e2df2' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0O05518003</first>
			<last>BMAV33NIDG0A</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-03-04 11:20:25.386 ***
alicE_unnamed_1089@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:20:25.387 ***
alicE_unnamed_1089@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:25.397 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_524.html
*** CT 2022-03-04 11:20:25.398 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1422.html



=== Ended at 2022-03-04 11:20:25
=== successfully completed test case
=== === Returned value: ok