=== 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.23080.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.21124.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@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:46


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

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

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



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



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

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



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



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



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



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



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



*** User 2022-01-27 12:31:47.285 ***
alicE_unnamed_917@domain.example.com/res1 out
<iq type='set' id='7f2e5f836f93d0050b5696e38a9dd349'>
	<query xmlns='urn:xmpp:mam:2'>
		<x xmlns='jabber:x:data'>
			<field var='with'>
				<value>bob_unnamed_917@domain.example.com</value>
			</field>
		</x>
	</query>
</iq>



*** User 2022-01-27 12:31:47.300 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='0e4e1097-ec0b-4f01-9cbe-a4c417741d55'>
	<result xmlns='urn:xmpp:mam:2' id='BLAABE08JG0D'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-11T08:37:03Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>b244418f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.300 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='7eedb7fe-49c8-431e-a1db-e724828fd84e'>
	<result xmlns='urn:xmpp:mam:2' id='BLAUGMURRG0J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-12T08:40:31Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>8150d9e7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.300 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='59f43381-07de-4151-ab4a-ffbd93e23c01'>
	<result xmlns='urn:xmpp:mam:2' id='BLBUB5BAEG0I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-13T22:38:45Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>96fc00a8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.300 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='dc99ea87-28ea-4b49-8735-cce63c51ca48'>
	<result xmlns='urn:xmpp:mam:2' id='BLC0JT8NGG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-14T01:21:29Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>2261145a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.300 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='65e74c6d-64de-4552-a732-fe701e1dd284'>
	<result xmlns='urn:xmpp:mam:2' id='BLD4UPD0400E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-15T20:42:48Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>c9ccb66a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='f3a94753-2039-4c42-b2bf-a541243fc021'>
	<result xmlns='urn:xmpp:mam:2' id='BLDEJ4BFSG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-16T08:12:33Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>ed1b7df0</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='cd7135af-c0f4-4ff6-bab2-8dc2e86f1182'>
	<result xmlns='urn:xmpp:mam:2' id='BLE18APJM00C'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-17T06:28:28Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>9abaabe8</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='d152167e-6e5c-47d0-b596-875acb626cd5'>
	<result xmlns='urn:xmpp:mam:2' id='BLF1TJV4Q00F'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-18T21:26:44Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>f61bed86</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='fc3fc04c-8909-4b39-9001-2100aefee96a'>
	<result xmlns='urn:xmpp:mam:2' id='BLFL8FV5M00E'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-19T20:31:08Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>618705b5</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='2c590f62-dee9-458c-a918-e9def8583ed8'>
	<result xmlns='urn:xmpp:mam:2' id='BLFQNCR6RG09'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-20T03:02:23Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>6b122b02</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='0e0d84d7-fa96-4e1d-b1cb-ef16b82208dd'>
	<result xmlns='urn:xmpp:mam:2' id='BLGIH2JR300J'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-21T07:26:14Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>b52cae26</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='fb42b445-fa34-45e0-ae60-7061d128dce5'>
	<result xmlns='urn:xmpp:mam:2' id='BLHHBS6KA00I'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-22T20:13:40Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>272196d7</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='a99efb18-0043-4471-8951-ec399c38d03a'>
	<result xmlns='urn:xmpp:mam:2' id='BLHOID3NCG02'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-23T04:49:21Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>4ffaf32f</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='b1161bcb-c0a8-47b4-abf3-dabd3fa63052'>
	<result xmlns='urn:xmpp:mam:2' id='BLIEPU2T2G0H'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-24T07:21:01Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>f8602c8a</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='625b0635-ecd9-4bd2-b7d2-0ad86f7b0fdf'>
	<result xmlns='urn:xmpp:mam:2' id='BLJBKOC2O002'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-25T17:45:20Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>a37cd52c</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='baf5895d-1a8f-46ac-bd1d-c733de67cbb8'>
	<result xmlns='urn:xmpp:mam:2' id='BLJKDF8P2G0B'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-26T04:13:17Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>c0da1724</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<message from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='a79e84a4-1add-4404-a03d-06b8ca837e01'>
	<result xmlns='urn:xmpp:mam:2' id='BLKEL5GPPG07'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T11:31:39Z' from='alice_unnamed_917@domain.example.com'/>
			<message from='alice_unnamed_917@domain.example.com' xmlns='jabber:client' to='bOb_unnamed_917@domain.example.com' type='chat'>
				<body>5acb5af6</body>
			</message>
		</forwarded>
	</result>
</message>



*** User 2022-01-27 12:31:47.301 ***
alicE_unnamed_917@domain.example.com/res1 in
<iq from='alicE_unnamed_917@domain.example.com' to='alicE_unnamed_917@domain.example.com/res1' id='7f2e5f836f93d0050b5696e38a9dd349' type='result'>
	<fin xmlns='urn:xmpp:mam:2' complete='true'>
		<set xmlns='http://jabber.org/protocol/rsm'>
			<first index='0'>BLAABE08JG0D</first>
			<last>BLKEL5GPPG07</last>
			<count>17</count>
		</set>
	</fin>
</iq>



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

*** User 2022-01-27 12:31:47.302 ***
alicE_unnamed_917@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:31:47.305 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_538.html
*** CT 2022-01-27 12:31:47.306 *** View log from node mongooseim@localhost when finished mongooseim@localhost_936.html



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