=== Test case: presence_SUITE:fail_to_add_contact_for_another_user/1 (click for source code)

=== Config value:

    [{watchdog,<0.14619.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.presence_SUITE.logs/run.2022-06-22_08.55.24/presence_suite.fail_to_add_contact_for_another_user.74498.html"},
     {tc_group_properties,[{name,roster},{repeat_until_all_ok,3},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/presence_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.presence_SUITE.logs/run.2022-06-22_08.55.24/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"

=== Started at 2022-06-22 08:55:26


*** CT 2022-06-22 08:55:26.171 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4303.html
*** CT 2022-06-22 08:55:26.171 *** View log from node ejabberd2@localhost when started🔗 ejabberd2@localhost_1988.html

*** User 2022-06-22 08:55:26.175 ***🔗
alicE@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-06-22 08:55:26.175 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='711460332fe5ebe4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:55:26.175 ***🔗
alicE@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-06-22 08:55:26.175 ***🔗
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-06-22 08:55:26.177 ***🔗
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:55:26.177 ***🔗
alicE@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-06-22 08:55:26.177 ***🔗
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fa301c00f88ed9fe' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:55:26.177 ***🔗
alicE@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-06-22 08:55:26.177 ***🔗
alicE@localhost/res1 out
<iq type='set' id='514b8021d977505e5859158b3aca2848'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:55:26.178 ***🔗
alicE@localhost/res1 in
<iq id='514b8021d977505e5859158b3aca2848' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:55:26.178 ***🔗
alice@localhost/res1 out
<iq type='set' id='b911dbeed48186026d04c773284e55fa'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:55:26.178 ***🔗
alice@localhost/res1 in
<iq type='result' id='b911dbeed48186026d04c773284e55fa'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:55:26.178 ***🔗
alice@localhost/res1 out
<presence/>



*** User 2022-06-22 08:55:26.180 ***🔗
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:55:26.181 ***🔗
bOb@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-06-22 08:55:26.181 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb86f97a64557e9d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:55:26.181 ***🔗
bOb@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-06-22 08:55:26.181 ***🔗
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2022-06-22 08:55:26.183 ***🔗
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:55:26.183 ***🔗
bOb@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-06-22 08:55:26.183 ***🔗
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e346de36e5a927dc' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:55:26.184 ***🔗
bOb@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-06-22 08:55:26.184 ***🔗
bOb@localhost/res1 out
<iq type='set' id='58bdbdcc83e5e85d9cfb9553fdc40e0c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:55:26.184 ***🔗
bOb@localhost/res1 in
<iq id='58bdbdcc83e5e85d9cfb9553fdc40e0c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:55:26.184 ***🔗
bob@localhost/res1 out
<iq type='set' id='8a6e01f2f37035c259b3b82160026f53'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:55:26.184 ***🔗
bob@localhost/res1 in
<iq type='result' id='8a6e01f2f37035c259b3b82160026f53'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:55:26.185 ***🔗
bob@localhost/res1 out
<presence/>



*** User 2022-06-22 08:55:26.186 ***🔗
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:55:26.186 ***🔗
alice@localhost/res1 out
<iq type='set' id='36172b534ae31112b543b89faa19b089' to='bob@localhost'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-06-22 08:55:26.187 ***🔗
alice@localhost/res1 in
<iq from='bob@localhost' to='alice@localhost/res1' id='36172b534ae31112b543b89faa19b089' type='error'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
	<error code='403' type='auth'>
		<forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
		<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>It is forbidden to query the roster of another user</text>
	</error>
</iq>



*** User 2022-06-22 08:55:26.187 ***🔗
bob@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:55:26.187 ***🔗
bob@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:55:26.187 ***🔗
alice@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:55:26.187 ***🔗
alice@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:55:26.189 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1988.html
*** CT 2022-06-22 08:55:26.190 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4303.html



=== Ended at 2022-06-22 08:55:26
=== successfully completed test case
=== === Returned value: ok