=== 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.22028.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@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.22020.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@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 => [],
        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:30


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

*** User 2022-03-04 11:20:31.183 ***
alicE_unnamed_891@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:31.183 ***
alicE_unnamed_891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f16de9995e00807e' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2022-03-04 11:20:31.185 ***
alicE_unnamed_891@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:31.185 ***
alicE_unnamed_891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb92307b4c68089f' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



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



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



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



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



*** User 2022-03-04 11:20:31.188 ***
alicE_unnamed_891@domain.example.com/res1 out
<iq type='set' id='7fa503bf9aca06d5e2bf3b2eae7e2f03'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_891@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-03-04 11:20:31.208 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='6ae8d430-19ab-439d-86e5-4710c73c5294'>
	<result xmlns='urn:xmpp:mam:2' id='BM16MTCMG007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T18:21:20Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>e9471586</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.208 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='982c7ee2-ce29-4f70-acdd-4e75a805060c'>
	<result xmlns='urn:xmpp:mam:2' id='BM1RFM9DOG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T19:08:25Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>0309e914</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.208 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='a69be29e-7a49-46e4-8f31-028832623c59'>
	<result xmlns='urn:xmpp:mam:2' id='BM2BDSFFB004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T14:09:42Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>e26f7ecc</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.208 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='75f69d10-b439-4034-b53c-55d832f5e2d7'>
	<result xmlns='urn:xmpp:mam:2' id='BM2TC0OVOG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T11:34:01Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>356e4861</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.208 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='2b230465-be5c-40f6-ad3b-bb7d74c082c3'>
	<result xmlns='urn:xmpp:mam:2' id='BM3C10VNV005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T05:03:10Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>4ce3e0f3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.209 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='4c5026e0-3f61-4e0e-9c5d-c9442a8e5011'>
	<result xmlns='urn:xmpp:mam:2' id='BM4BEF39100F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-21T18:32:18Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>aa087ab9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.209 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='b8fcfe65-62e6-4975-855b-f0ef43b28240'>
	<result xmlns='urn:xmpp:mam:2' id='BM4MAA4QCG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-22T07:30:25Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>844bee75</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.209 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='3567899f-e1ce-4566-8848-7c4ef9af7509'>
	<result xmlns='urn:xmpp:mam:2' id='BM5D31RSTG04'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-23T10:40:35Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>c3499963</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.209 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='03704bae-2cc8-465a-a7cd-03fbc567662d'>
	<result xmlns='urn:xmpp:mam:2' id='BM5U25K7TG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-24T06:55:31Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>4936ade6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.209 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='98a371ca-86c9-45cd-827f-afefda08b52b'>
	<result xmlns='urn:xmpp:mam:2' id='BM6QKJTVH00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-25T17:01:06Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>7076257e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='417ff543-54b0-4ec8-9c29-dfc04d1ea006'>
	<result xmlns='urn:xmpp:mam:2' id='BM7ERH3DIG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-26T17:08:13Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>c1fc4994</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='3abf4fd9-1562-4e89-bb6c-9ddbbc7ad064'>
	<result xmlns='urn:xmpp:mam:2' id='BM84RQQ2RG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-27T19:23:43Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>51361c48</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='fe67a165-abd6-4faf-a3cb-1e3f0b7e5748'>
	<result xmlns='urn:xmpp:mam:2' id='BM8I9OVTOG06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-28T11:25:29Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>eb759f63</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='82bc547d-5cd7-4462-8c6a-fbbe0e06f912'>
	<result xmlns='urn:xmpp:mam:2' id='BM931SS8N007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-01T07:24:46Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>c1cc9c6c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='e29215fb-57ba-4ebd-86fc-b2ce0cef71e0'>
	<result xmlns='urn:xmpp:mam:2' id='BM9I64SOKG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-02T01:28:01Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>e428a728</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='1e86757c-11a0-4ad0-9fff-fb47d0be434b'>
	<result xmlns='urn:xmpp:mam:2' id='BMAB5D82600I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T07:15:56Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>659a0933</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.210 ***
alicE_unnamed_891@domain.example.com/res1 in
<message from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='47eec71b-f1ac-43d1-851b-896f69a818ff'>
	<result xmlns='urn:xmpp:mam:2' id='BMBAET00N007'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T20:36:14Z' from='alice_unnamed_891@domain.example.com'/>
			<message from='alice_unnamed_891@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_891@domain.example.com' type='chat'>
				<body>88992912</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:31.211 ***
alicE_unnamed_891@domain.example.com/res1 in
<iq from='alicE_unnamed_891@domain.example.com' to='alicE_unnamed_891@domain.example.com/res1' id='7fa503bf9aca06d5e2bf3b2eae7e2f03' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM16MTCMG007</first>
			<last>BMBAET00N007</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-03-04 11:20:31.211 ***
alicE_unnamed_891@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:31.216 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:20:31.217 *** View log from node mongooseim@localhost when finished mongooseim@localhost_936.html



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