=== 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.26533.0>},
     {basic_group,mam_all},
     {configuration,rdbms_simple},
     {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.37891.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_simple_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_rdbms_arch =>
            [[{db_jid_format,mam_jid_rfc},
              {db_message_format,mam_message_xml}]],
        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@43f5552376e6.2022-03-04_11.16.18"

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


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

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

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



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



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

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



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



*** User 2022-03-04 11:20:07.778 ***
alicE_unnamed_935@localhost/res1 out
<iq type='set' id='49ffb9ce5ec9b464c42795d02209a891'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:07.779 ***
alicE_unnamed_935@localhost/res1 in
<iq type='result' id='49ffb9ce5ec9b464c42795d02209a891'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



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



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



*** User 2022-03-04 11:20:07.784 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='9507cfee-43b2-4eee-9793-2935794fd125'>
	<result xmlns='urn:xmpp:mam:1' id='BM18LDFM6G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T20:41:09Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>c2100e8f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.784 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='46007b33-d862-4c03-92b4-8b12f6e1cda1'>
	<result xmlns='urn:xmpp:mam:1' id='BM1DKA7PA00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T02:36:36Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>4727f29b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.784 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='990cbc20-82f9-4598-a6f3-c813c18391e2'>
	<result xmlns='urn:xmpp:mam:1' id='BM2FBIQVQG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T18:50:53Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>b6db95c8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.784 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='2e14f2fa-6002-4d91-8adf-f20275360bce'>
	<result xmlns='urn:xmpp:mam:1' id='BM2UO72HUG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T13:12:53Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>2f5f9f4d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='a6b129b6-653f-4638-9f89-b830508d4cc4'>
	<result xmlns='urn:xmpp:mam:1' id='BM3IBGNDS00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T12:36:08Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>997d906b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='04f6d1b5-dc7e-4368-98ae-15cce4caf68c'>
	<result xmlns='urn:xmpp:mam:1' id='BM3SO5S8KG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-21T01:00:17Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>129a458e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='ec729914-4b8c-4aae-919b-7d7d00e78db7'>
	<result xmlns='urn:xmpp:mam:1' id='BM4S8KPAPG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-22T14:36:11Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>55fa7b0e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='cca0b1a6-8f99-4d40-8eb0-6b08b5f4fd03'>
	<result xmlns='urn:xmpp:mam:1' id='BM5CJRV6AG0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-23T10:06:37Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>fbc5340c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='e1bdde32-048d-4485-ab5b-3d70267f6589'>
	<result xmlns='urn:xmpp:mam:1' id='BM69FSKMKG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-24T20:33:37Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>adf2e1b8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.785 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='eeda27ed-1322-440b-9968-2c371e9149ee'>
	<result xmlns='urn:xmpp:mam:1' id='BM6FCH5B400G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-25T03:35:36Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>e4b91af6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='2818dd9d-91ff-4318-b69a-92d2b523bcd0'>
	<result xmlns='urn:xmpp:mam:1' id='BM7BD88O600A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-26T13:01:32Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>84642dad</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='ba5b0efd-715a-4285-9eb0-3f55a129fb99'>
	<result xmlns='urn:xmpp:mam:1' id='BM7QMCTOG007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-27T07:15:44Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>4657e6e1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='b2209cab-8ee0-46c5-8de1-de91feda388c'>
	<result xmlns='urn:xmpp:mam:1' id='BM8J53199G0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-28T12:26:35Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>88e84a0c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='cd6c45dd-baee-484b-9402-38d2301b2d5f'>
	<result xmlns='urn:xmpp:mam:1' id='BM91PLL5FG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-01T05:54:47Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>cffec18f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='0ec0c66d-9a87-4be5-bf7b-10d11c9c164d'>
	<result xmlns='urn:xmpp:mam:1' id='BM9H9GDC2G04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-02T00:23:57Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>4c896643</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='b238c392-413d-4733-ac09-68ca0c596ecd'>
	<result xmlns='urn:xmpp:mam:1' id='BMAB0T7T8002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T07:05:52Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>55c58752</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:07.786 ***
alicE_unnamed_935@localhost/res1 in
<message from='alicE_unnamed_935@localhost' to='alicE_unnamed_935@localhost/res1' id='a968f699-0737-4f93-ab7e-0bfa5fd8a394'>
	<result xmlns='urn:xmpp:mam:1' id='BMBBBLH3LG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T21:40:35Z' from='alice_unnamed_935@localhost'/>
			<message from='alice_unnamed_935@localhost' xmlns='jabber:client' to='bOb_unnamed_935@localhost' type='chat'>
				<body>c2547ca8</body>
			</message>
		</forwarded>
	</result>
</message>



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



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

*** User 2022-03-04 11:20:07.787 ***
alicE_unnamed_935@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:07.856 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_524.html
*** CT 2022-03-04 11:20:07.859 *** View log from node mongooseim@localhost when finished mongooseim@localhost_965.html



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