=== 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.30605.0>},
     {basic_group,mam_all},
     {configuration,rdbms_mnesia},
     {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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/mam_suite.querying_for_all_messages_with_jid.55555.html"},
     {tc_group_properties,[{name,mam04},parallel]},
     {tc_group_path,[[{name,rdbms_mnesia_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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.mam_SUITE.logs/run.2022-01-25_16.25.52/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_mnesia_prefs => [{pm,true}],
        mod_mam_rdbms_arch => [],
        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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:26:28


*** CT 2022-01-25 16:26:28.111 *** View log from node mongooseim@localhost when started mongooseim@localhost_1365.html
*** CT 2022-01-25 16:26:28.112 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_541.html

*** User 2022-01-25 16:26:28.938 ***
alicE_unnamed_1126@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-01-25 16:26:28.939 ***
alicE_unnamed_1126@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='557a76006903ffa2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:28.939 ***
alicE_unnamed_1126@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-01-25 16:26:28.939 ***
alicE_unnamed_1126@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VubmFtZWRfMTEyNgBtYXR5Z3J5c2E=</auth>



*** User 2022-01-25 16:26:28.941 ***
alicE_unnamed_1126@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:26:28.941 ***
alicE_unnamed_1126@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-01-25 16:26:28.941 ***
alicE_unnamed_1126@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7de47bee507cc1c2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:26:28.941 ***
alicE_unnamed_1126@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-01-25 16:26:28.942 ***
alicE_unnamed_1126@localhost/res1 out
<iq type='set' id='391a52b711b221391dbffa2f454bfbe6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:26:28.942 ***
alicE_unnamed_1126@localhost/res1 in
<iq id='391a52b711b221391dbffa2f454bfbe6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_unnamed_1126@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:26:28.942 ***
alicE_unnamed_1126@localhost/res1 out
<iq type='set' id='f752e99307e224361b0f37722ee2cc17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:28.942 ***
alicE_unnamed_1126@localhost/res1 in
<iq type='result' id='f752e99307e224361b0f37722ee2cc17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:26:28.942 ***
alicE_unnamed_1126@localhost/res1 out
<presence/>



*** User 2022-01-25 16:26:28.946 ***
alicE_unnamed_1126@localhost/res1 in
<presence from='alicE_unnamed_1126@localhost/res1' to='alice_unnamed_1126@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:26:28.946 ***
alicE_unnamed_1126@localhost/res1 out
<iq type='set' id='0ee6d7eda7e6e09e1044dc7c6fde035b'>
	<query xmlns='urn:xmpp:mam:1'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_1126@localhost</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='9897b909-f3da-4246-8eae-62a1754c3e5b'>
	<result xmlns='urn:xmpp:mam:1' id='BL999A19600I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-09T17:10:04Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>ac359050</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='f9391694-b30d-4a32-af2f-01a758659d57'>
	<result xmlns='urn:xmpp:mam:1' id='BL9S1QARDG08'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-10T15:33:23Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>88efc234</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='6be3baad-c35b-404b-93c7-819add0dcf9d'>
	<result xmlns='urn:xmpp:mam:1' id='BLAI18K4H00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T17:46:58Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>f19851d6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='d8ab2053-443c-43bf-86c2-3cfba7f6b7ca'>
	<result xmlns='urn:xmpp:mam:1' id='BLBALA56E003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T23:09:48Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>fe8a92a9</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='ef4a1392-d997-4f33-a7ef-003eb3129e26'>
	<result xmlns='urn:xmpp:mam:1' id='BLBJPU99K005'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T10:04:24Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>37596b65</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='1db258ac-cf1a-4a73-a3e7-aae450700852'>
	<result xmlns='urn:xmpp:mam:1' id='BLCBON4E1G05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T14:39:39Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>6cb9600c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='3c4a43b5-8338-47f8-afb1-365d0286f733'>
	<result xmlns='urn:xmpp:mam:1' id='BLCPINHSOG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T07:08:25Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>e047eb03</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.970 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='a3ca6acc-3d67-4f12-a035-dd3ee6dade0e'>
	<result xmlns='urn:xmpp:mam:1' id='BLD8PCIM3G07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T01:17:03Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>03e1a2fa</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='c7351d8e-90b5-40a1-9964-e19b0f6db862'>
	<result xmlns='urn:xmpp:mam:1' id='BLEF1IL7TG05'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T22:55:31Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>52791413</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='9ef509ba-0d66-49c9-84b5-a48ec62bcb6c'>
	<result xmlns='urn:xmpp:mam:1' id='BLF2IUPNI003'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T22:14:28Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>78ad5ce4</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='de584060-858b-4ce1-8d16-593e834d680d'>
	<result xmlns='urn:xmpp:mam:1' id='BLFEEU4RE00J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T12:24:28Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>8990d3a2</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='4e9f21d5-cb07-42bb-be8c-36dceb3de7f7'>
	<result xmlns='urn:xmpp:mam:1' id='BLG0BEF56G0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T09:45:09Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>698cbf3d</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='bcc2ef31-efc9-4450-9dc2-87f8b24e5a91'>
	<result xmlns='urn:xmpp:mam:1' id='BLGCEMGIAG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T00:11:25Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>8e32ae9b</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='35e19c51-0045-4e79-bfe1-1542a9771daa'>
	<result xmlns='urn:xmpp:mam:1' id='BLHI0SP50G0G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T21:00:41Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>7dcdfbb5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='9a40502d-216c-4503-beff-966f58003031'>
	<result xmlns='urn:xmpp:mam:1' id='BLHU3HVR100G'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T11:25:38Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>4d738d42</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='af606126-f097-43f6-a4a7-c50b7f847d5d'>
	<result xmlns='urn:xmpp:mam:1' id='BLIS9LFPNG0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T23:26:47Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>d5da32d8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.971 ***
alicE_unnamed_1126@localhost/res1 in
<message from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='4e1dd3d9-1a95-4089-96ea-3e9aa9d60349'>
	<result xmlns='urn:xmpp:mam:1' id='BLJEBE4EP004'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T20:59:14Z' from='alice_unnamed_1126@localhost'/>
			<message from='alice_unnamed_1126@localhost' xmlns='jabber:client' to='bOb_unnamed_1126@localhost' type='chat'>
				<body>980361d3</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-25 16:26:28.972 ***
alicE_unnamed_1126@localhost/res1 in
<iq from='alicE_unnamed_1126@localhost' to='alicE_unnamed_1126@localhost/res1' id='0ee6d7eda7e6e09e1044dc7c6fde035b' type='result'>
	<fin xmlns='urn:xmpp:mam:1' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BL999A19600I</first>
			<last>BLJEBE4EP004</last>
			<count>17</count>
		</set>
	</fin>
</iq>



*** User 2022-01-25 16:26:28.972 ***
alicE_unnamed_1126@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:26:28.972 ***
alicE_unnamed_1126@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:26:28.977 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_541.html
*** CT 2022-01-25 16:26:28.978 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1369.html



=== Ended at 2022-01-25 16:26:28
=== successfully completed test case
=== === Returned value: ok