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

=== Config value:

    [{watchdog,<0.5498.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.presence_SUITE.logs/run.2022-03-03_10.36.28/presence_suite.fail_to_add_contact_for_another_user.37635.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.presence_SUITE.logs/run.2022-03-03_10.36.28/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@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:36:29


*** CT 2022-03-03 10:36:29.802 *** View log from node mongooseim@localhost when started mongooseim@localhost_4522.html
*** CT 2022-03-03 10:36:29.803 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:36:29.806 ***
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-03-03 10:36:29.807 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7c1181ce25aa41f' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-03-03 10:36:29.808 ***
alicE@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:29.808 ***
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-03-03 10:36:29.809 ***
alicE@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b230dad1d1009e39' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:29.809 ***
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-03-03 10:36:29.809 ***
alicE@localhost/res1 out
<iq type='set' id='2e79e65caec78207dd376ebfca2cebb5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:29.809 ***
alicE@localhost/res1 in
<iq id='2e79e65caec78207dd376ebfca2cebb5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:29.809 ***
alicE@localhost/res1 out
<iq type='set' id='2393ec889dc3fc3de9e33b1782943762'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:29.809 ***
alicE@localhost/res1 in
<iq type='result' id='2393ec889dc3fc3de9e33b1782943762'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:29.810 ***
alicE@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:29.810 ***
alicE@localhost/res1 in
<presence from='alicE@localhost/res1' to='alice@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:29.811 ***
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-03-03 10:36:29.811 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b8a7251904952232' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-03-03 10:36:29.812 ***
bOb@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:36:29.812 ***
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-03-03 10:36:29.812 ***
bOb@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60ca53f04de3cc5a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:36:29.812 ***
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-03-03 10:36:29.812 ***
bOb@localhost/res1 out
<iq type='set' id='d34066fbe7c60928fed9a3af08239538'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:36:29.813 ***
bOb@localhost/res1 in
<iq id='d34066fbe7c60928fed9a3af08239538' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:36:29.813 ***
bOb@localhost/res1 out
<iq type='set' id='d13e4894b5cc3f5653daff84af4a83ac'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:29.813 ***
bOb@localhost/res1 in
<iq type='result' id='d13e4894b5cc3f5653daff84af4a83ac'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:36:29.813 ***
bOb@localhost/res1 out
<presence/>



*** User 2022-03-03 10:36:29.814 ***
bOb@localhost/res1 in
<presence from='bOb@localhost/res1' to='bob@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:36:29.814 ***
alicE@localhost/res1 out
<iq type='set' id='d6140061bdf989649cc82d92ec44459f' to='bOb@localhost'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-03 10:36:29.814 ***
alicE@localhost/res1 in
<iq from='bOb@localhost' to='alicE@localhost/res1' id='d6140061bdf989649cc82d92ec44459f' 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-03-03 10:36:29.815 ***
bOb@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:29.815 ***
bOb@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:36:29.815 ***
alicE@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:36:29.815 ***
alicE@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:36:29.817 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:36:29.817 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4522.html



=== Ended at 2022-03-03 10:36:29
=== successfully completed test case
=== === Returned value: ok