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

=== Config value:

    [{watchdog,<0.24802.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.presence_SUITE.logs/run.2022-03-04_11.24.48/presence_suite.fail_to_add_contact_for_another_user.145154.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.presence_SUITE.logs/run.2022-03-04_11.24.48/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:24:49


*** CT 2022-03-04 11:24:49.749 *** View log from node mongooseim@localhost when started mongooseim@localhost_2400.html
*** CT 2022-03-04 11:24:49.750 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_646.html

*** User 2022-03-04 11:24:49.756 ***
alicE@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-03-04 11:24:49.757 ***
alicE@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ca0aa30d62e3954a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:49.757 ***
alicE@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-03-04 11:24:49.757 ***
alicE@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:24:49.758 ***
alicE@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:49.758 ***
alicE@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-03-04 11:24:49.758 ***
alicE@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c43e848377b0e44' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:49.758 ***
alicE@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-03-04 11:24:49.758 ***
alicE@domain.example.com/res1 out
<iq type='set' id='1ba6b18b40a685b1a3a5438524fd9d0e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:49.758 ***
alicE@domain.example.com/res1 in
<iq id='1ba6b18b40a685b1a3a5438524fd9d0e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:49.758 ***
alicE@domain.example.com/res1 out
<iq type='set' id='8cd7fdc8ecfe70f0f60a88bc993450ca'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:49.759 ***
alicE@domain.example.com/res1 in
<iq type='result' id='8cd7fdc8ecfe70f0f60a88bc993450ca'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:49.759 ***
alicE@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:49.760 ***
alicE@domain.example.com/res1 in
<presence from='alicE@domain.example.com/res1' to='alice@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:49.761 ***
bOb@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-03-04 11:24:49.761 ***
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9aa2973dcc981d71' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:49.762 ***
bOb@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-03-04 11:24:49.762 ***
bOb@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYgBtYWtyb2xpa2E=</auth>



*** User 2022-03-04 11:24:49.762 ***
bOb@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:49.763 ***
bOb@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-03-04 11:24:49.763 ***
bOb@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d516b729cef6e8e0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:49.763 ***
bOb@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-03-04 11:24:49.763 ***
bOb@domain.example.com/res1 out
<iq type='set' id='9ef5e4acba43d25f7d8f4eaa93ab1b25'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:49.763 ***
bOb@domain.example.com/res1 in
<iq id='9ef5e4acba43d25f7d8f4eaa93ab1b25' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:49.763 ***
bOb@domain.example.com/res1 out
<iq type='set' id='0212bbda4181cf26f50e11fe3fc48af2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:49.764 ***
bOb@domain.example.com/res1 in
<iq type='result' id='0212bbda4181cf26f50e11fe3fc48af2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:49.764 ***
bOb@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:49.765 ***
bOb@domain.example.com/res1 in
<presence from='bOb@domain.example.com/res1' to='bob@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:49.766 ***
alicE@domain.example.com/res1 out
<iq type='set' id='27a08a10f7603d390995be33dade62cc' to='bOb@domain.example.com'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-04 11:24:49.766 ***
alicE@domain.example.com/res1 in
<iq from='bOb@domain.example.com' to='alicE@domain.example.com/res1' id='27a08a10f7603d390995be33dade62cc' type='error'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb@domain.example.com' 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-04 11:24:49.766 ***
bOb@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:49.767 ***
bOb@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:24:49.767 ***
alicE@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:49.767 ***
alicE@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:24:49.770 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_646.html
*** CT 2022-03-04 11:24:49.771 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2400.html



=== Ended at 2022-03-04 11:24:49
=== successfully completed test case
=== === Returned value: ok