=== 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.25006.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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.20.29/mam_suite.querying_for_all_messages_with_jid.29444.html"},
     {tc_group_properties,[{name,mam06},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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.mam_SUITE.logs/run.2022-03-04_11.20.29/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"test type">>},max_user_sessions] =>
                          {ok,[#{acl => all,value => 10}]}}},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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,<<"groupchats.">>}},
             {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,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"

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


*** CT 2022-03-04 11:20:39.466 *** View log from node mongooseim@localhost when started mongooseim@localhost_946.html
*** CT 2022-03-04 11:20:39.466 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_529.html

*** User 2022-03-04 11:20:39.796 ***
alicE_unnamed_973@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:20:39.796 ***
alicE_unnamed_973@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d365314b69a18c92' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:39.796 ***
alicE_unnamed_973@domain.example.com/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:39.796 ***
alicE_unnamed_973@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfOTczAG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:20:39.797 ***
alicE_unnamed_973@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:20:39.797 ***
alicE_unnamed_973@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-04 11:20:39.797 ***
alicE_unnamed_973@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='16a70eaed0894a22' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:20:39.797 ***
alicE_unnamed_973@domain.example.com/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:39.797 ***
alicE_unnamed_973@domain.example.com/res1 out
<iq type='set' id='4afba1a691fbc839cb1bef35c2325dc3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:20:39.797 ***
alicE_unnamed_973@domain.example.com/res1 in
<iq id='4afba1a691fbc839cb1bef35c2325dc3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_973@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:20:39.798 ***
alicE_unnamed_973@domain.example.com/res1 out
<iq type='set' id='cc41b690aa77419f19af45e90ae84b8e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:39.798 ***
alicE_unnamed_973@domain.example.com/res1 in
<iq type='result' id='cc41b690aa77419f19af45e90ae84b8e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:20:39.798 ***
alicE_unnamed_973@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:20:39.800 ***
alicE_unnamed_973@domain.example.com/res1 in
<presence from='alicE_unnamed_973@domain.example.com/res1' to='alice_unnamed_973@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:20:39.800 ***
alicE_unnamed_973@domain.example.com/res1 out
<iq type='set' id='99f400a5295e89c1adcfe158d9b50f69'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_973@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='8a5c42ca-3340-4143-9099-6843d3a5839a'>
	<result xmlns='urn:xmpp:mam:2' id='BM18GFDCV006'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T20:30:06Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>2b8134bb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='bee1dfff-bdd0-423c-8c8e-bcdb9d73795a'>
	<result xmlns='urn:xmpp:mam:2' id='BM1V0HJRQ00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T23:20:52Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>fe01dd45</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='c7d019fe-fc75-42ab-802d-6d47460db246'>
	<result xmlns='urn:xmpp:mam:2' id='BM2J332FEG03'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T23:18:13Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>a3e3d406</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='bb510b00-2212-4bea-944f-4c9af3625a71'>
	<result xmlns='urn:xmpp:mam:2' id='BM33SL6TM00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T19:20:44Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>2dc204d1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='78e022e7-072d-4e30-8623-f6e46ff9a809'>
	<result xmlns='urn:xmpp:mam:2' id='BM3EVT82QG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T08:35:25Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>ee09394e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='b53d999d-a769-4a4e-b37a-e895b924d505'>
	<result xmlns='urn:xmpp:mam:2' id='BM42LUS6KG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-21T08:04:49Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>8c07edf9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.820 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='e8664686-05d1-4650-b35e-5671f6e0c733'>
	<result xmlns='urn:xmpp:mam:2' id='BM4V6KLOTG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-22T18:06:27Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>51cd8db1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='0e6f6514-8e82-4a85-8789-068e694b1b3f'>
	<result xmlns='urn:xmpp:mam:2' id='BM57UCIKV00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-23T04:32:14Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>a6d20732</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='38611897-46ea-4cc7-b078-bf5317259b06'>
	<result xmlns='urn:xmpp:mam:2' id='BM66PCR24004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-24T17:20:08Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>859da9ee</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='f5b27dbf-f5a6-4abc-a6df-d2523f4bdcce'>
	<result xmlns='urn:xmpp:mam:2' id='BM6V1QE8L00B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-25T22:16:58Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>5dce85e5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='fccf14b8-5810-4368-9bb0-17c92effbd57'>
	<result xmlns='urn:xmpp:mam:2' id='BM78N53F400C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-26T09:48:56Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>34039eda</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='9bf3708c-92b7-4c40-a07a-8b710a8b02ce'>
	<result xmlns='urn:xmpp:mam:2' id='BM84OVNL4G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-27T19:17:21Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>a8f54a04</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='734ee497-5647-4ec1-936e-08bc395285c9'>
	<result xmlns='urn:xmpp:mam:2' id='BM8LMRLSL00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-28T15:29:30Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>96280442</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='4e8f17de-6aa8-4d99-a580-3d0e90b48530'>
	<result xmlns='urn:xmpp:mam:2' id='BM952H58KG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-01T09:49:21Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>d986b5bb</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='37f0e70e-54f9-4aaa-a12f-9d9439e20b0a'>
	<result xmlns='urn:xmpp:mam:2' id='BMA4MV4PO00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-02T23:34:08Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>c73f2b4a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='b561a093-e4ed-468b-8446-70ad28d21115'>
	<result xmlns='urn:xmpp:mam:2' id='BMAC7IS37G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T08:32:23Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>0c09cc56</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<message from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='42f625a5-c1fb-4a81-b241-5ab068eae831'>
	<result xmlns='urn:xmpp:mam:2' id='BMB1JG13K00G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T10:02:16Z' from='alice_unnamed_973@domain.example.com'/>
			<message from='alice_unnamed_973@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_973@domain.example.com' type='chat'>
				<body>6a7ac1ba</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.821 ***
alicE_unnamed_973@domain.example.com/res1 in
<iq from='alicE_unnamed_973@domain.example.com' to='alicE_unnamed_973@domain.example.com/res1' id='99f400a5295e89c1adcfe158d9b50f69' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM18GFDCV006</first>
			<last>BMB1JG13K00G</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-03-04 11:20:39.822 ***
alicE_unnamed_973@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:20:39.822 ***
alicE_unnamed_973@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:39.826 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:20:39.827 *** View log from node mongooseim@localhost when finished mongooseim@localhost_950.html



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