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

=== Config value:

    [{watchdog,<0.22756.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.presence_SUITE.logs/run.2022-01-27_12.36.15/presence_suite.subscribe.103299.html"},
     {tc_group_properties,[{name,subscribe_group},
                           {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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.presence_SUITE.logs/run.2022-01-27_12.36.15/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@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:36:17


*** CT 2022-01-27 12:36:17.219 *** View log from node mongooseim@localhost when started mongooseim@localhost_2352.html
*** CT 2022-01-27 12:36:17.220 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_655.html

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

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



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



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

*** User 2022-01-27 12:36:17.253 ***
alicE_subscribe_1689@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:36:17.254 ***
alicE_subscribe_1689@domain.example.com/res1 out
<iq type='set' id='8c486974f20ced455f47543b39bb61e6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:17.254 ***
alicE_subscribe_1689@domain.example.com/res1 in
<iq id='8c486974f20ced455f47543b39bb61e6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_subscribe_1689@domain.example.com/res1</jid>
	</bind>
</iq>



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



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



*** User 2022-01-27 12:36:17.255 ***
alicE_subscribe_1689@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:17.257 ***
alicE_subscribe_1689@domain.example.com/res1 in
<presence from='alicE_subscribe_1689@domain.example.com/res1' to='alice_subscribe_1689@domain.example.com/res1' xml:lang='en'/>



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

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



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



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

*** User 2022-01-27 12:36:17.261 ***
bOb_subscribe_1689@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:36:17.261 ***
bOb_subscribe_1689@domain.example.com/res1 out
<iq type='set' id='9f961bd0a8b1fb261749af49b0c1a65f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:17.261 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq id='9f961bd0a8b1fb261749af49b0c1a65f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_subscribe_1689@domain.example.com/res1</jid>
	</bind>
</iq>



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



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



*** User 2022-01-27 12:36:17.262 ***
bOb_subscribe_1689@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:17.267 ***
bOb_subscribe_1689@domain.example.com/res1 in
<presence from='bOb_subscribe_1689@domain.example.com/res1' to='bob_subscribe_1689@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:17.267 ***
alicE_subscribe_1689@domain.example.com/res1 out
<iq type='set' id='5e07c0fadf2e1e6f9b51177e2938dcea'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb_subscribe_1689@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.298 ***
alicE_subscribe_1689@domain.example.com/res1 in
<iq from='alicE_subscribe_1689@domain.example.com' to='alicE_subscribe_1689@domain.example.com/res1' id='pusha6fcd826434e365a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_1689@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.298 ***
alicE_subscribe_1689@domain.example.com/res1 in
<iq from='alicE_subscribe_1689@domain.example.com' to='alicE_subscribe_1689@domain.example.com/res1' id='5e07c0fadf2e1e6f9b51177e2938dcea' type='result'/>



*** User 2022-01-27 12:36:17.298 ***
alicE_subscribe_1689@domain.example.com/res1 out
<iq to='alicE_subscribe_1689@domain.example.com' id='pusha6fcd826434e365a' type='result'/>



*** User 2022-01-27 12:36:17.298 ***
alicE_subscribe_1689@domain.example.com/res1 out
<presence type='subscribe' to='bOb_subscribe_1689@domain.example.com'/>



*** User 2022-01-27 12:36:17.339 ***
alicE_subscribe_1689@domain.example.com/res1 in
<iq from='alicE_subscribe_1689@domain.example.com' to='alicE_subscribe_1689@domain.example.com/res1' id='push2215484cf792d278' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1689@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.339 ***
alicE_subscribe_1689@domain.example.com/res1 out
<iq to='alicE_subscribe_1689@domain.example.com' id='push2215484cf792d278' type='result'/>



*** User 2022-01-27 12:36:17.339 ***
bOb_subscribe_1689@domain.example.com/res1 in
<presence from='alicE_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' xml:lang='en' type='subscribe'/>



*** User 2022-01-27 12:36:17.339 ***
bOb_subscribe_1689@domain.example.com/res1 out
<iq type='get' id='1d0e19642170fd1f6dfbee5f7e228d55'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-27 12:36:17.352 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq from='bOb_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' id='1d0e19642170fd1f6dfbee5f7e228d55' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-27 12:36:17.352 ***
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bOb_subscribe_1689@domain.example.com">>},
                {<<"to">>,<<"bOb_subscribe_1689@domain.example.com/res1">>},
                {<<"id">>,<<"1d0e19642170fd1f6dfbee5f7e228d55">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2022-01-27 12:36:17.352 ***
bOb_subscribe_1689@domain.example.com/res1 out
<iq type='set' id='71ee845bd863c1e9a1a4e9c18ff022a5'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_subscribe_1689@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.364 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq from='bOb_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' id='push1b1429506cf9004f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_1689@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.364 ***
bOb_subscribe_1689@domain.example.com/res1 out
<iq to='bOb_subscribe_1689@domain.example.com' id='push1b1429506cf9004f' type='result'/>



*** User 2022-01-27 12:36:17.364 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq from='bOb_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' id='71ee845bd863c1e9a1a4e9c18ff022a5' type='result'/>



*** User 2022-01-27 12:36:17.365 ***
bOb_subscribe_1689@domain.example.com/res1 out
<presence type='subscribed' to='alicE_subscribe_1689@domain.example.com'/>



*** User 2022-01-27 12:36:17.394 ***
alicE_subscribe_1689@domain.example.com/res1 in
<iq from='alicE_subscribe_1689@domain.example.com' to='alicE_subscribe_1689@domain.example.com/res1' id='push32f302ed9fe58e8d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_1689@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.394 ***
alicE_subscribe_1689@domain.example.com/res1 in
<presence from='bOb_subscribe_1689@domain.example.com' to='alicE_subscribe_1689@domain.example.com/res1' xml:lang='en' type='subscribed'/>



*** User 2022-01-27 12:36:17.394 ***
alicE_subscribe_1689@domain.example.com/res1 in
<presence from='bOb_subscribe_1689@domain.example.com/res1' to='alice_subscribe_1689@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:17.394 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq from='bOb_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' id='push0de70756bb3f56ff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1689@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.395 ***
bOb_subscribe_1689@domain.example.com/res1 out
<iq type='get' id='7ee2dce2c3a0c79bca978b265b568cea'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-27 12:36:17.410 ***
bOb_subscribe_1689@domain.example.com/res1 in
<iq from='bOb_subscribe_1689@domain.example.com' to='bOb_subscribe_1689@domain.example.com/res1' id='7ee2dce2c3a0c79bca978b265b568cea' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1689@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:17.410 ***
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bOb_subscribe_1689@domain.example.com">>},
             {<<"to">>,<<"bOb_subscribe_1689@domain.example.com/res1">>},
             {<<"id">>,<<"7ee2dce2c3a0c79bca978b265b568cea">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_1689@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2022-01-27 12:36:17.410 ***
bOb_subscribe_1689@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:17.411 ***
alicE_subscribe_1689@domain.example.com/res1 in
<presence from='bOb_subscribe_1689@domain.example.com/res1' to='alice_subscribe_1689@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:17.411 ***
bOb_subscribe_1689@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2022-01-27 12:36:17.434 ***
alicE_subscribe_1689@domain.example.com/res1 in
<presence from='bOb_subscribe_1689@domain.example.com/res1' to='alice_subscribe_1689@domain.example.com/res1' xml:lang='en' type='unavailable'/>



*** User 2022-01-27 12:36:17.434 ***
bOb_subscribe_1689@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:17.435 ***
bOb_subscribe_1689@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:36:17.435 ***
alicE_subscribe_1689@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:17.435 ***
alicE_subscribe_1689@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:36:17.456 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_655.html
*** CT 2022-01-27 12:36:17.458 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2352.html



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