=== 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.22830.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/mam_suite.querying_for_all_messages_with_jid.31875.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/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@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:31:45


*** CT 2022-01-27 12:31:45.980 *** View log from node mongooseim@localhost when started mongooseim@localhost_928.html
*** CT 2022-01-27 12:31:45.980 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_538.html

*** User 2022-01-27 12:31:46.763 ***
alicE_unnamed_904@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-01-27 12:31:46.764 ***
alicE_unnamed_904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='07a83d5a72156b04' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:31:46.764 ***
alicE_unnamed_904@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-01-27 12:31:46.764 ***
alicE_unnamed_904@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfOTA0AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 12:31:46.765 ***
alicE_unnamed_904@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:31:46.765 ***
alicE_unnamed_904@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-01-27 12:31:46.765 ***
alicE_unnamed_904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5555d303503d562e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:31:46.766 ***
alicE_unnamed_904@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-01-27 12:31:46.766 ***
alicE_unnamed_904@domain.example.com/res1 out
<iq type='set' id='17defaef4a5dfe06c8c899b1216aaee6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:31:46.766 ***
alicE_unnamed_904@domain.example.com/res1 in
<iq id='17defaef4a5dfe06c8c899b1216aaee6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_904@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:31:46.766 ***
alicE_unnamed_904@domain.example.com/res1 out
<iq type='set' id='29aaf12a726ad74bff3b0c5b9cc9c61d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:31:46.766 ***
alicE_unnamed_904@domain.example.com/res1 in
<iq type='result' id='29aaf12a726ad74bff3b0c5b9cc9c61d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:31:46.766 ***
alicE_unnamed_904@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:31:46.768 ***
alicE_unnamed_904@domain.example.com/res1 in
<presence from='alicE_unnamed_904@domain.example.com/res1' to='alice_unnamed_904@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:31:46.769 ***
alicE_unnamed_904@domain.example.com/res1 out
<iq type='set' id='05a20c75ddffc63304f8584632ab9d66'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_904@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='b150083e-943d-4559-8fc0-d9540cddf9a6'>
	<result xmlns='urn:xmpp:mam:1' id='BLADMU4PM002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T12:37:32Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>59cc4ae5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='fc7aa3c7-80e7-4c8b-9d93-412a6a36436d'>
	<result xmlns='urn:xmpp:mam:1' id='BLB0163MOG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T10:28:57Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>e4f1bfaa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='e7464a54-1599-4c42-ad86-3eaff79aca70'>
	<result xmlns='urn:xmpp:mam:1' id='BLBK4M2SD00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T10:28:26Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>bf501daa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='9e0f94d3-bdf9-4c57-87bc-c45268477db2'>
	<result xmlns='urn:xmpp:mam:1' id='BLC5BOULS00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T07:01:12Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>65c7d731</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='044eeba8-54bc-4cca-82ef-f4214cf164c5'>
	<result xmlns='urn:xmpp:mam:1' id='BLCPSRPS0G06'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T07:31:05Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>9338a20d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='d119527b-8610-40d2-933d-b14db3007bac'>
	<result xmlns='urn:xmpp:mam:1' id='BLD7V0IK9G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T00:18:03Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>48a77889</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='0280e3c3-b67d-4370-8d62-c0f21aba897d'>
	<result xmlns='urn:xmpp:mam:1' id='BLE3BDVU500F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T08:58:34Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>469c3134</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='babd0298-9cc8-4cef-b300-8ba9de566a25'>
	<result xmlns='urn:xmpp:mam:1' id='BLEGOC7E700C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T00:58:06Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>12e5f7c3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='3c718dd8-260f-4fdd-b756-fb111826f2b8'>
	<result xmlns='urn:xmpp:mam:1' id='BLFFGF14800C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T13:39:28Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>79ad0a92</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='3976de66-8004-49ae-b58e-8500a33c5cc4'>
	<result xmlns='urn:xmpp:mam:1' id='BLFOGOS5S00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T00:24:24Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>51d61876</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='fe1cda38-6cbe-4939-ad8b-dd31dfcea109'>
	<result xmlns='urn:xmpp:mam:1' id='BLGVR5H99G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T23:19:23Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>1ca855ae</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='e22d6030-17cb-4588-a996-07a5ce0d540d'>
	<result xmlns='urn:xmpp:mam:1' id='BLH6LRJ8TG0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T07:28:35Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>91b06380</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='d32a51d0-1009-4c6e-b989-34c22eab824b'>
	<result xmlns='urn:xmpp:mam:1' id='BLI3EEQSM00A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T17:47:56Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>3b36e67c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='3977fe55-038f-49e7-83a1-7da2b3bd3b8a'>
	<result xmlns='urn:xmpp:mam:1' id='BLIQKTFM3G0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T21:28:47Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>4986aa39</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='64e37cda-cb8b-4355-8a96-07f456b1e5b0'>
	<result xmlns='urn:xmpp:mam:1' id='BLJGNEFHE00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T23:49:16Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>82f3543e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.774 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='c1fd0f55-5c06-4d7a-b87a-369c9b445575'>
	<result xmlns='urn:xmpp:mam:1' id='BLJJ9SQDJ008'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T02:53:42Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>294b6e11</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.775 ***
alicE_unnamed_904@domain.example.com/res1 in
<message from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='502153f2-6e84-4596-be9c-3cb62c28a0d1'>
	<result xmlns='urn:xmpp:mam:1' id='BLK8OUQLF00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T04:30:38Z' from='alice_unnamed_904@domain.example.com'/>
			<message from='alice_unnamed_904@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_904@domain.example.com' type='chat'>
				<body>72673957</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:46.775 ***
alicE_unnamed_904@domain.example.com/res1 in
<iq from='alicE_unnamed_904@domain.example.com' to='alicE_unnamed_904@domain.example.com/res1' id='05a20c75ddffc63304f8584632ab9d66' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLADMU4PM002</first>
			<last>BLK8OUQLF00J</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-27 12:31:46.775 ***
alicE_unnamed_904@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:31:46.776 ***
alicE_unnamed_904@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:31:46.781 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_538.html
*** CT 2022-01-27 12:31:46.782 *** View log from node mongooseim@localhost when finished mongooseim@localhost_932.html



=== Ended at 2022-01-27 12:31:46
=== successfully completed test case
=== === Returned value: ok