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

=== Config value:

    [{watchdog,<0.46696.0>},
     {preset,"internal_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2cc1cb2b4b9c.2024-02-27_12.00.42/big_tests.tests.presence_SUITE.logs/run.2024-02-27_12.13.13/presence_suite.subscribe.86530.html"},
     {tc_group_properties,[{name,subscribe_group},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@2cc1cb2b4b9c.2024-02-27_12.00.42/big_tests.tests.presence_SUITE.logs/run.2024-02-27_12.13.13/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@2cc1cb2b4b9c.2024-02-27_12.00.42"

=== Started at 2024-02-27 12:13:15


*** CT 2024-02-27 12:13:15.287 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4353.html

*** User 2024-02-27 12:13:15.295 ***🔗
alicE_subscribe_1511@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-27 12:13:15.296 ***🔗
alicE_subscribe_1511@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3f9c7e6a863381d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:13:15.296 ***🔗
alicE_subscribe_1511@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-27 12:13:15.296 ***🔗
alicE_subscribe_1511@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNTExAG1hdHlncnlzYQ==</auth>



*** User 2024-02-27 12:13:15.297 ***🔗
alicE_subscribe_1511@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:13:15.297 ***🔗
alicE_subscribe_1511@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-27 12:13:15.297 ***🔗
alicE_subscribe_1511@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c39656dc2bbd4dc' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1511@localhost'>

*** User 2024-02-27 12:13:15.297 ***🔗
alicE_subscribe_1511@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-27 12:13:15.297 ***🔗
alicE_subscribe_1511@localhost/res1 out
<iq type='set' id='635387916dfe7dfe1bf10e6fd46f2509'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:13:15.298 ***🔗
alicE_subscribe_1511@localhost/res1 in
<iq id='635387916dfe7dfe1bf10e6fd46f2509' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_1511@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:13:15.298 ***🔗
alice_subscribe_1511@localhost/res1 out
<iq type='set' id='a1a2d3ecae9fe45b854bad4b6c2f3606'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:13:15.298 ***🔗
alice_subscribe_1511@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1511@localhost/res1' id='a1a2d3ecae9fe45b854bad4b6c2f3606' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:13:15.298 ***🔗
alice_subscribe_1511@localhost/res1 out
<presence/>



*** User 2024-02-27 12:13:15.300 ***🔗
alice_subscribe_1511@localhost/res1 in
<presence from='alice_subscribe_1511@localhost/res1' to='alice_subscribe_1511@localhost/res1'/>



*** User 2024-02-27 12:13:15.300 ***🔗
bOb_subscribe_1511@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-27 12:13:15.301 ***🔗
bOb_subscribe_1511@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b06e8d0602104e4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:13:15.301 ***🔗
bOb_subscribe_1511@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-27 12:13:15.301 ***🔗
bOb_subscribe_1511@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTUxMQBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:13:15.302 ***🔗
bOb_subscribe_1511@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:13:15.302 ***🔗
bOb_subscribe_1511@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-27 12:13:15.302 ***🔗
bOb_subscribe_1511@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f08e7422e7f4716' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1511@localhost'>

*** User 2024-02-27 12:13:15.302 ***🔗
bOb_subscribe_1511@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-27 12:13:15.302 ***🔗
bOb_subscribe_1511@localhost/res1 out
<iq type='set' id='fb34ebfa877b06b7a43718030e68cac9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:13:15.303 ***🔗
bOb_subscribe_1511@localhost/res1 in
<iq id='fb34ebfa877b06b7a43718030e68cac9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_1511@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:13:15.303 ***🔗
bob_subscribe_1511@localhost/res1 out
<iq type='set' id='b430c7eb671dc409bcc251ccfd6062af'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:13:15.304 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1511@localhost/res1' id='b430c7eb671dc409bcc251ccfd6062af' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:13:15.304 ***🔗
bob_subscribe_1511@localhost/res1 out
<presence/>



*** User 2024-02-27 12:13:15.304 ***🔗
bob_subscribe_1511@localhost/res1 in
<presence from='bob_subscribe_1511@localhost/res1' to='bob_subscribe_1511@localhost/res1'/>



*** User 2024-02-27 12:13:15.304 ***🔗
alice_subscribe_1511@localhost/res1 out
<iq type='set' id='3f40a569a2da19191ecc53c8205bf6d5'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_1511@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.308 ***🔗
alice_subscribe_1511@localhost/res1 in
<iq from='alice_subscribe_1511@localhost' to='alice_subscribe_1511@localhost/res1' id='pushe52d62f6dd85d9f9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_1511@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.308 ***🔗
alice_subscribe_1511@localhost/res1 in
<iq from='alice_subscribe_1511@localhost' to='alice_subscribe_1511@localhost/res1' id='3f40a569a2da19191ecc53c8205bf6d5' type='result'/>



*** User 2024-02-27 12:13:15.308 ***🔗
alice_subscribe_1511@localhost/res1 out
<iq to='alice_subscribe_1511@localhost' id='pushe52d62f6dd85d9f9' type='result'/>



*** User 2024-02-27 12:13:15.308 ***🔗
alice_subscribe_1511@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1511@localhost'/>



*** User 2024-02-27 12:13:15.311 ***🔗
alice_subscribe_1511@localhost/res1 in
<iq from='alice_subscribe_1511@localhost' to='alice_subscribe_1511@localhost/res1' id='push38ef39864909c011' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1511@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.311 ***🔗
alice_subscribe_1511@localhost/res1 out
<iq to='alice_subscribe_1511@localhost' id='push38ef39864909c011' type='result'/>



*** User 2024-02-27 12:13:15.311 ***🔗
bob_subscribe_1511@localhost/res1 in
<presence from='alice_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' type='subscribe'/>



*** User 2024-02-27 12:13:15.311 ***🔗
bob_subscribe_1511@localhost/res1 out
<iq type='get' id='4c5042b83c0849cda178f25c2ed515af'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-27 12:13:15.312 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='bob_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' id='4c5042b83c0849cda178f25c2ed515af' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-27 12:13:15.312 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_1511@localhost">>},
                {<<"to">>,<<"bob_subscribe_1511@localhost/res1">>},
                {<<"id">>,<<"4c5042b83c0849cda178f25c2ed515af">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-02-27 12:13:15.313 ***🔗
bob_subscribe_1511@localhost/res1 out
<iq type='set' id='39342e84c9a3490f4392449f6ce166fb'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_1511@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.314 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='bob_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' id='push8e00df3548df01f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_1511@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.314 ***🔗
bob_subscribe_1511@localhost/res1 out
<iq to='bob_subscribe_1511@localhost' id='push8e00df3548df01f4' type='result'/>



*** User 2024-02-27 12:13:15.314 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='bob_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' id='39342e84c9a3490f4392449f6ce166fb' type='result'/>



*** User 2024-02-27 12:13:15.314 ***🔗
bob_subscribe_1511@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1511@localhost'/>



*** User 2024-02-27 12:13:15.316 ***🔗
alice_subscribe_1511@localhost/res1 in
<iq from='alice_subscribe_1511@localhost' to='alice_subscribe_1511@localhost/res1' id='pushe3b84caefadcb7a0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_1511@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.316 ***🔗
alice_subscribe_1511@localhost/res1 in
<presence from='bob_subscribe_1511@localhost' to='alice_subscribe_1511@localhost/res1' type='subscribed'/>



*** User 2024-02-27 12:13:15.316 ***🔗
alice_subscribe_1511@localhost/res1 in
<presence from='bob_subscribe_1511@localhost/res1' to='alice_subscribe_1511@localhost/res1'/>



*** User 2024-02-27 12:13:15.316 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='bob_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' id='push89b994b5a7398069' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1511@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.316 ***🔗
bob_subscribe_1511@localhost/res1 out
<iq type='get' id='60d6810a93fe112e2a1d0c2ed27b77b3'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-27 12:13:15.317 ***🔗
bob_subscribe_1511@localhost/res1 in
<iq from='bob_subscribe_1511@localhost' to='bob_subscribe_1511@localhost/res1' id='60d6810a93fe112e2a1d0c2ed27b77b3' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1511@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-27 12:13:15.317 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_1511@localhost">>},
             {<<"to">>,<<"bob_subscribe_1511@localhost/res1">>},
             {<<"id">>,<<"60d6810a93fe112e2a1d0c2ed27b77b3">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1511@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-02-27 12:13:15.317 ***🔗
bob_subscribe_1511@localhost/res1 out
<presence/>



*** User 2024-02-27 12:13:15.318 ***🔗
alice_subscribe_1511@localhost/res1 in
<presence from='bob_subscribe_1511@localhost/res1' to='alice_subscribe_1511@localhost/res1'/>



*** User 2024-02-27 12:13:15.318 ***🔗
bob_subscribe_1511@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-02-27 12:13:15.319 ***🔗
alice_subscribe_1511@localhost/res1 in
<presence from='bob_subscribe_1511@localhost/res1' to='alice_subscribe_1511@localhost/res1' type='unavailable'/>



*** User 2024-02-27 12:13:15.319 ***🔗
bob_subscribe_1511@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:13:15.320 ***🔗
bob_subscribe_1511@localhost/res1 in
</stream:stream>

*** User 2024-02-27 12:13:15.320 ***🔗
alice_subscribe_1511@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:13:15.320 ***🔗
alice_subscribe_1511@localhost/res1 in
</stream:stream>
*** CT 2024-02-27 12:13:15.327 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4353.html



=== Ended at 2024-02-27 12:13:15
=== successfully completed test case
=== === Returned value: ok