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

=== Config value:

    [{watchdog,<0.31584.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.presence_SUITE.logs/run.2022-01-25_16.32.27/presence_suite.subscribe.126466.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.presence_SUITE.logs/run.2022-01-25_16.32.27/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@ebe8a8f9fc53.2022-01-25_16.21.59"

=== Started at 2022-01-25 16:32:29


*** CT 2022-01-25 16:32:29.008 *** View log from node mongooseim@localhost when started mongooseim@localhost_5461.html
*** CT 2022-01-25 16:32:29.009 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2377.html

*** User 2022-01-25 16:32:29.065 ***
alicE_subscribe_1910@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-01-25 16:32:29.066 ***
alicE_subscribe_1910@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b212e5bd67b8e2f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:32:29.066 ***
alicE_subscribe_1910@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-01-25 16:32:29.066 ***
alicE_subscribe_1910@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xOTEwAG1hdHlncnlzYQ==</auth>



*** User 2022-01-25 16:32:29.068 ***
alicE_subscribe_1910@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:32:29.068 ***
alicE_subscribe_1910@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-01-25 16:32:29.068 ***
alicE_subscribe_1910@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f301b3833eac20a7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:32:29.068 ***
alicE_subscribe_1910@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-01-25 16:32:29.069 ***
alicE_subscribe_1910@localhost/res1 out
<iq type='set' id='5ff53d13173119ba06c56dcfc08f9390'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:32:29.069 ***
alicE_subscribe_1910@localhost/res1 in
<iq id='5ff53d13173119ba06c56dcfc08f9390' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_subscribe_1910@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:32:29.069 ***
alicE_subscribe_1910@localhost/res1 out
<iq type='set' id='fe97861f4c7800af83ce771b9abb25d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:32:29.069 ***
alicE_subscribe_1910@localhost/res1 in
<iq type='result' id='fe97861f4c7800af83ce771b9abb25d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:32:29.069 ***
alicE_subscribe_1910@localhost/res1 out
<presence/>



*** User 2022-01-25 16:32:29.071 ***
alicE_subscribe_1910@localhost/res1 in
<presence from='alicE_subscribe_1910@localhost/res1' to='alice_subscribe_1910@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:32:29.071 ***
bOb_subscribe_1910@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-01-25 16:32:29.072 ***
bOb_subscribe_1910@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9b60f92a04d341b' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:32:29.072 ***
bOb_subscribe_1910@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-01-25 16:32:29.072 ***
bOb_subscribe_1910@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTkxMABtYWtyb2xpa2E=</auth>



*** User 2022-01-25 16:32:29.073 ***
bOb_subscribe_1910@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-25 16:32:29.073 ***
bOb_subscribe_1910@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-01-25 16:32:29.073 ***
bOb_subscribe_1910@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f03484eb61e508d2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-25 16:32:29.074 ***
bOb_subscribe_1910@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-01-25 16:32:29.074 ***
bOb_subscribe_1910@localhost/res1 out
<iq type='set' id='56b4caa958759c18c4e3a26683048c45'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-25 16:32:29.074 ***
bOb_subscribe_1910@localhost/res1 in
<iq id='56b4caa958759c18c4e3a26683048c45' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_subscribe_1910@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-25 16:32:29.074 ***
bOb_subscribe_1910@localhost/res1 out
<iq type='set' id='53ba71d664bcfb3cbaf92de47c14d1b5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:32:29.074 ***
bOb_subscribe_1910@localhost/res1 in
<iq type='result' id='53ba71d664bcfb3cbaf92de47c14d1b5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-25 16:32:29.074 ***
bOb_subscribe_1910@localhost/res1 out
<presence/>



*** User 2022-01-25 16:32:29.076 ***
bOb_subscribe_1910@localhost/res1 in
<presence from='bOb_subscribe_1910@localhost/res1' to='bob_subscribe_1910@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:32:29.076 ***
alicE_subscribe_1910@localhost/res1 out
<iq type='set' id='d33e64e938b91e34389ca52efc03e1a3'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bOb_subscribe_1910@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.172 ***
alicE_subscribe_1910@localhost/res1 in
<iq from='alicE_subscribe_1910@localhost' to='alicE_subscribe_1910@localhost/res1' id='push50507ff301fdf85e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_1910@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.172 ***
alicE_subscribe_1910@localhost/res1 in
<iq from='alicE_subscribe_1910@localhost' to='alicE_subscribe_1910@localhost/res1' id='d33e64e938b91e34389ca52efc03e1a3' type='result'/>



*** User 2022-01-25 16:32:29.172 ***
alicE_subscribe_1910@localhost/res1 out
<iq to='alicE_subscribe_1910@localhost' id='push50507ff301fdf85e' type='result'/>



*** User 2022-01-25 16:32:29.172 ***
alicE_subscribe_1910@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_1910@localhost'/>



*** User 2022-01-25 16:32:29.214 ***
alicE_subscribe_1910@localhost/res1 in
<iq from='alicE_subscribe_1910@localhost' to='alicE_subscribe_1910@localhost/res1' id='pusha8779e6eb7204a24' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1910@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.214 ***
alicE_subscribe_1910@localhost/res1 out
<iq to='alicE_subscribe_1910@localhost' id='pusha8779e6eb7204a24' type='result'/>



*** User 2022-01-25 16:32:29.214 ***
bOb_subscribe_1910@localhost/res1 in
<presence from='alicE_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' xml:lang='en' type='subscribe'/>



*** User 2022-01-25 16:32:29.214 ***
bOb_subscribe_1910@localhost/res1 out
<iq type='get' id='a0cfcbd4e247c96ec671b2ec43f22b72'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-25 16:32:29.227 ***
bOb_subscribe_1910@localhost/res1 in
<iq from='bOb_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' id='a0cfcbd4e247c96ec671b2ec43f22b72' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-25 16:32:29.227 ***
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bOb_subscribe_1910@localhost">>},
                {<<"to">>,<<"bOb_subscribe_1910@localhost/res1">>},
                {<<"id">>,<<"a0cfcbd4e247c96ec671b2ec43f22b72">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2022-01-25 16:32:29.228 ***
bOb_subscribe_1910@localhost/res1 out
<iq type='set' id='20e081cabdd0511f490f370bcc2c9b7f'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_subscribe_1910@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.245 ***
bOb_subscribe_1910@localhost/res1 in
<iq from='bOb_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' id='push1218ab621a5911f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_1910@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.245 ***
bOb_subscribe_1910@localhost/res1 out
<iq to='bOb_subscribe_1910@localhost' id='push1218ab621a5911f8' type='result'/>



*** User 2022-01-25 16:32:29.245 ***
bOb_subscribe_1910@localhost/res1 in
<iq from='bOb_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' id='20e081cabdd0511f490f370bcc2c9b7f' type='result'/>



*** User 2022-01-25 16:32:29.245 ***
bOb_subscribe_1910@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_1910@localhost'/>



*** User 2022-01-25 16:32:29.252 ***
alicE_subscribe_1910@localhost/res1 in
<iq from='alicE_subscribe_1910@localhost' to='alicE_subscribe_1910@localhost/res1' id='push1d3a43a45253dfe5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_1910@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.252 ***
alicE_subscribe_1910@localhost/res1 in
<presence from='bOb_subscribe_1910@localhost' to='alicE_subscribe_1910@localhost/res1' xml:lang='en' type='subscribed'/>



*** User 2022-01-25 16:32:29.252 ***
alicE_subscribe_1910@localhost/res1 in
<presence from='bOb_subscribe_1910@localhost/res1' to='alice_subscribe_1910@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:32:29.252 ***
bOb_subscribe_1910@localhost/res1 in
<iq from='bOb_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' id='pushce5334757fa4b604' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1910@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.252 ***
bOb_subscribe_1910@localhost/res1 out
<iq type='get' id='6626a205bccf8b15b0e4d2072c8d39e7'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2022-01-25 16:32:29.260 ***
bOb_subscribe_1910@localhost/res1 in
<iq from='bOb_subscribe_1910@localhost' to='bOb_subscribe_1910@localhost/res1' id='6626a205bccf8b15b0e4d2072c8d39e7' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1910@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2022-01-25 16:32:29.260 ***
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bOb_subscribe_1910@localhost">>},
             {<<"to">>,<<"bOb_subscribe_1910@localhost/res1">>},
             {<<"id">>,<<"6626a205bccf8b15b0e4d2072c8d39e7">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1910@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2022-01-25 16:32:29.260 ***
bOb_subscribe_1910@localhost/res1 out
<presence/>



*** User 2022-01-25 16:32:29.261 ***
alicE_subscribe_1910@localhost/res1 in
<presence from='bOb_subscribe_1910@localhost/res1' to='alice_subscribe_1910@localhost/res1' xml:lang='en'/>



*** User 2022-01-25 16:32:29.261 ***
bOb_subscribe_1910@localhost/res1 out
<presence type='unavailable'/>



*** User 2022-01-25 16:32:29.262 ***
alicE_subscribe_1910@localhost/res1 in
<presence from='bOb_subscribe_1910@localhost/res1' to='alice_subscribe_1910@localhost/res1' xml:lang='en' type='unavailable'/>



*** User 2022-01-25 16:32:29.262 ***
bOb_subscribe_1910@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:32:29.262 ***
bOb_subscribe_1910@localhost/res1 in
</stream:stream>

*** User 2022-01-25 16:32:29.262 ***
alicE_subscribe_1910@localhost/res1 out
</stream:stream>

*** User 2022-01-25 16:32:29.262 ***
alicE_subscribe_1910@localhost/res1 in
</stream:stream>
*** CT 2022-01-25 16:32:29.272 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2377.html
*** CT 2022-01-25 16:32:29.273 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5461.html



=== Ended at 2022-01-25 16:32:29
=== successfully completed test case
=== === Returned value: ok