=== 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.24756.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.29443.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@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:38


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-03-04 11:20:39.305 ***
alicE_unnamed_958@domain.example.com/res1 out
<iq type='set' id='51ddb705948b760bb6b11df194d6f24e'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_958@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-03-04 11:20:39.349 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='659e3cfb-1474-4098-bce8-30421352631d'>
	<result xmlns='urn:xmpp:mam:1' id='BM0TE1BR5009'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-16T07:17:14Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>b1b1807e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.349 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='a96516c5-58d9-4c4c-9b1e-25c91fa254a8'>
	<result xmlns='urn:xmpp:mam:1' id='BM1J8K6OIG0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-17T09:19:57Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>33930d8b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.349 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='6f2664e0-0845-433b-b195-e853578e2dfe'>
	<result xmlns='urn:xmpp:mam:1' id='BM24H61HO00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-18T05:56:00Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>23ef934e</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='63485544-ec2e-48dc-8c4a-cd7b1cd68d7a'>
	<result xmlns='urn:xmpp:mam:1' id='BM371KVBRG0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-19T23:06:39Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>d92c3dbe</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='02b0b829-c657-49e8-8f6c-329ce8b70a95'>
	<result xmlns='urn:xmpp:mam:1' id='BM3PTFR8UG0E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-20T21:37:25Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>57b3e5da</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='7ad4613f-ca5e-4b04-a814-bcc6a562e347'>
	<result xmlns='urn:xmpp:mam:1' id='BM417IURCG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-21T06:21:05Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>bec04803</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='dc4e005d-91ff-4baa-9238-26b7a9f83ed1'>
	<result xmlns='urn:xmpp:mam:1' id='BM4M022OSG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-22T07:07:29Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>2aadbe05</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='764a8dab-d15c-4982-9e52-39434c3fa553'>
	<result xmlns='urn:xmpp:mam:1' id='BM5A2K88UG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-23T07:04:53Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>5139f683</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='d6f1c44e-2a75-4af5-85e2-c4c13177e41c'>
	<result xmlns='urn:xmpp:mam:1' id='BM62PGCG9G0C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-24T12:34:03Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>35be47d9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='aa27aa1e-4130-4dfe-8152-1874a4e44cb7'>
	<result xmlns='urn:xmpp:mam:1' id='BM6D4IO93G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-25T00:54:39Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>ec2d858c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='edd921f0-a421-4cc2-a8a6-d9e04e9fded0'>
	<result xmlns='urn:xmpp:mam:1' id='BM7ATV8ROG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-26T12:27:21Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>26d47ff1</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='36bdc49e-6b6d-4674-a260-05bc72dc3825'>
	<result xmlns='urn:xmpp:mam:1' id='BM825EB8A003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-27T16:10:28Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>2df24948</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='c74c923f-f3d4-4f97-a84d-0a1ed7afd4c6'>
	<result xmlns='urn:xmpp:mam:1' id='BM8GP68KO00H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-02-28T09:36:48Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>4126adb6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='54d0b13a-0fcb-45f5-9cea-721e0c23f2c1'>
	<result xmlns='urn:xmpp:mam:1' id='BM9200A50G0A'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-01T06:08:57Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>0f0e39c0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.350 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='04c87d9a-f044-4235-9b9f-3a66bc1edede'>
	<result xmlns='urn:xmpp:mam:1' id='BM9V8TEGJG0K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-02T17:04:47Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>7ce464e4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.351 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='5d5d22d7-d681-485e-b25a-61c53dfe4234'>
	<result xmlns='urn:xmpp:mam:1' id='BMA8U24VI00K'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-03T04:36:20Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>70ae6e62</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.351 ***
alicE_unnamed_958@domain.example.com/res1 in
<message from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='dd4ef755-0c5c-4dac-8215-1cf39cf2aa0d'>
	<result xmlns='urn:xmpp:mam:1' id='BMB2FUA4H00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-03-04T11:05:54Z' from='alice_unnamed_958@domain.example.com'/>
			<message from='alice_unnamed_958@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_958@domain.example.com' type='chat'>
				<body>92c77079</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-03-04 11:20:39.351 ***
alicE_unnamed_958@domain.example.com/res1 in
<iq from='alicE_unnamed_958@domain.example.com' to='alicE_unnamed_958@domain.example.com/res1' id='51ddb705948b760bb6b11df194d6f24e' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BM0TE1BR5009</first>
			<last>BMB2FUA4H00I</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-03-04 11:20:39.351 ***
alicE_unnamed_958@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:20:39.355 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_529.html
*** CT 2022-03-04 11:20:39.356 *** View log from node mongooseim@localhost when finished mongooseim@localhost_946.html



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