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

=== Config value:

    [{watchdog,<0.13401.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/presence_suite.fail_to_add_contact_for_another_user.66690.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/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@901bd2a377ee.2022-05-25_10.38.09"

=== Started at 2022-05-25 10:49:18


*** CT 2022-05-25 10:49:18.219 *** View log from node mongooseim@localhost when started mongooseim@localhost_4888.html
*** CT 2022-05-25 10:49:18.226 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1997.html

*** User 2022-05-25 10:49:18.235 ***
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-05-25 10:49:18.235 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39b33afb87381fe1' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.235 ***
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-05-25 10:49:18.235 ***
alicE@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 10:49:18.237 ***
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:18.237 ***
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-05-25 10:49:18.237 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='67c26eb6886a57a7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.238 ***
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-05-25 10:49:18.238 ***
alicE@localhost/res1 out
<iq type='set' id='1e121d1bda27ec4d2827039a6927b0a9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.238 ***
alicE@localhost/res1 in
<iq id='1e121d1bda27ec4d2827039a6927b0a9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.238 ***
alice@localhost/res1 out
<iq type='set' id='9d71a293fac2cb23ede3f798d0286517'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.238 ***
alice@localhost/res1 in
<iq type='result' id='9d71a293fac2cb23ede3f798d0286517'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.238 ***
alice@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:18.241 ***
alice@localhost/res1 in
<presence from='alice@localhost/res1' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:18.241 ***
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-05-25 10:49:18.242 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2b6fd1e45ccb0b27' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.242 ***
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-05-25 10:49:18.242 ***
bOb@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2022-05-25 10:49:18.244 ***
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:49:18.244 ***
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-05-25 10:49:18.244 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='26bc737326d679d9' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:49:18.244 ***
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-05-25 10:49:18.245 ***
bOb@localhost/res1 out
<iq type='set' id='a49a1f4e1011b87ebc6bef1c94bb8855'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.245 ***
bOb@localhost/res1 in
<iq id='a49a1f4e1011b87ebc6bef1c94bb8855' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:49:18.245 ***
bob@localhost/res1 out
<iq type='set' id='db594ab41e6b948d44bfcbd5fef1363b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.245 ***
bob@localhost/res1 in
<iq type='result' id='db594ab41e6b948d44bfcbd5fef1363b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:49:18.245 ***
bob@localhost/res1 out
<presence/>



*** User 2022-05-25 10:49:18.247 ***
bob@localhost/res1 in
<presence from='bob@localhost/res1' to='bob@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:49:18.247 ***
alice@localhost/res1 out
<iq type='set' id='2c10bc29c9c01a7410f25a9fcd523d8c' to='bob@localhost'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-05-25 10:49:18.247 ***
alice@localhost/res1 in
<iq from='bob@localhost' to='alice@localhost/res1' id='2c10bc29c9c01a7410f25a9fcd523d8c' 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-05-25 10:49:18.248 ***
bob@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:18.248 ***
bob@localhost/res1 in
</stream:stream>

*** User 2022-05-25 10:49:18.248 ***
alice@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:49:18.248 ***
alice@localhost/res1 in
</stream:stream>
*** CT 2022-05-25 10:49:18.251 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1997.html
*** CT 2022-05-25 10:49:18.252 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4888.html



=== Ended at 2022-05-25 10:49:18
=== successfully completed test case
=== === Returned value: ok