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

=== Config value:

    [{watchdog,<0.11040.1>},
     {preset,"ldap_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@94ef96fe7e6f.2023-11-13_20.03.17/big_tests.tests.presence_SUITE.logs/run.2023-11-13_20.13.08/presence_suite.subscribe.88706.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@94ef96fe7e6f.2023-11-13_20.03.17/big_tests.tests.presence_SUITE.logs/run.2023-11-13_20.13.08/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@94ef96fe7e6f.2023-11-13_20.03.17"

=== Started at 2023-11-13 20:13:10


*** CT 2023-11-13 20:13:10.610 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4317.html

*** User 2023-11-13 20:13:10.626 ***🔗
alicE_subscribe_1529@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 20:13:10.626 ***🔗
alicE_subscribe_1529@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14f727394098691c' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-13 20:13:10.626 ***🔗
alicE_subscribe_1529@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-13 20:13:10.627 ***🔗
alicE_subscribe_1529@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNTI5AG1hdHlncnlzYQ==</auth>



*** User 2023-11-13 20:13:10.627 ***🔗
alicE_subscribe_1529@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 20:13:10.628 ***🔗
alicE_subscribe_1529@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 20:13:10.628 ***🔗
alicE_subscribe_1529@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6570bb12da3b578b' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1529@localhost'>

*** User 2023-11-13 20:13:10.628 ***🔗
alicE_subscribe_1529@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 2023-11-13 20:13:10.628 ***🔗
alicE_subscribe_1529@localhost/res1 out
<iq type='set' id='b3fce6c0e994084cbc9b4aa3332c6b7e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 20:13:10.628 ***🔗
alicE_subscribe_1529@localhost/res1 in
<iq id='b3fce6c0e994084cbc9b4aa3332c6b7e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_1529@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 20:13:10.628 ***🔗
alice_subscribe_1529@localhost/res1 out
<iq type='set' id='ced7971684d4c5bf615acfa4dde527e2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 20:13:10.629 ***🔗
alice_subscribe_1529@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1529@localhost/res1' id='ced7971684d4c5bf615acfa4dde527e2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 20:13:10.629 ***🔗
alice_subscribe_1529@localhost/res1 out
<presence/>



*** User 2023-11-13 20:13:10.629 ***🔗
alice_subscribe_1529@localhost/res1 in
<presence from='alice_subscribe_1529@localhost/res1' to='alice_subscribe_1529@localhost/res1'/>



*** User 2023-11-13 20:13:10.630 ***🔗
bOb_subscribe_1529@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 20:13:10.630 ***🔗
bOb_subscribe_1529@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d35219f6e44b6b2' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-13 20:13:10.631 ***🔗
bOb_subscribe_1529@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-13 20:13:10.631 ***🔗
bOb_subscribe_1529@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTUyOQBtYWtyb2xpa2E=</auth>



*** User 2023-11-13 20:13:10.632 ***🔗
bOb_subscribe_1529@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 20:13:10.632 ***🔗
bOb_subscribe_1529@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 20:13:10.632 ***🔗
bOb_subscribe_1529@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b9e3441dae5e37b0' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1529@localhost'>

*** User 2023-11-13 20:13:10.632 ***🔗
bOb_subscribe_1529@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 2023-11-13 20:13:10.632 ***🔗
bOb_subscribe_1529@localhost/res1 out
<iq type='set' id='261f42387aa9565aa50e1ff922443fe6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 20:13:10.633 ***🔗
bOb_subscribe_1529@localhost/res1 in
<iq id='261f42387aa9565aa50e1ff922443fe6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_1529@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 20:13:10.633 ***🔗
bob_subscribe_1529@localhost/res1 out
<iq type='set' id='3999a6a7455dd315e447158d7ed8db43'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 20:13:10.633 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1529@localhost/res1' id='3999a6a7455dd315e447158d7ed8db43' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 20:13:10.633 ***🔗
bob_subscribe_1529@localhost/res1 out
<presence/>



*** User 2023-11-13 20:13:10.634 ***🔗
bob_subscribe_1529@localhost/res1 in
<presence from='bob_subscribe_1529@localhost/res1' to='bob_subscribe_1529@localhost/res1'/>



*** User 2023-11-13 20:13:10.634 ***🔗
alice_subscribe_1529@localhost/res1 out
<iq type='set' id='eecbe2a2310435c1dd083c9dcb03b62a'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_1529@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.635 ***🔗
alice_subscribe_1529@localhost/res1 in
<iq from='alice_subscribe_1529@localhost' to='alice_subscribe_1529@localhost/res1' id='push4e5939506f73c636' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_1529@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.635 ***🔗
alice_subscribe_1529@localhost/res1 in
<iq from='alice_subscribe_1529@localhost' to='alice_subscribe_1529@localhost/res1' id='eecbe2a2310435c1dd083c9dcb03b62a' type='result'/>



*** User 2023-11-13 20:13:10.635 ***🔗
alice_subscribe_1529@localhost/res1 out
<iq to='alice_subscribe_1529@localhost' id='push4e5939506f73c636' type='result'/>



*** User 2023-11-13 20:13:10.635 ***🔗
alice_subscribe_1529@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1529@localhost'/>



*** User 2023-11-13 20:13:10.636 ***🔗
alice_subscribe_1529@localhost/res1 in
<iq from='alice_subscribe_1529@localhost' to='alice_subscribe_1529@localhost/res1' id='push3b5360837ab4a924' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1529@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.637 ***🔗
alice_subscribe_1529@localhost/res1 out
<iq to='alice_subscribe_1529@localhost' id='push3b5360837ab4a924' type='result'/>



*** User 2023-11-13 20:13:10.637 ***🔗
bob_subscribe_1529@localhost/res1 in
<presence from='alice_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' type='subscribe'/>



*** User 2023-11-13 20:13:10.637 ***🔗
bob_subscribe_1529@localhost/res1 out
<iq type='get' id='66de1f730a494e334c86ed90a31634b4'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 20:13:10.637 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='bob_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' id='66de1f730a494e334c86ed90a31634b4' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 20:13:10.638 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_1529@localhost">>},
                {<<"to">>,<<"bob_subscribe_1529@localhost/res1">>},
                {<<"id">>,<<"66de1f730a494e334c86ed90a31634b4">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-13 20:13:10.638 ***🔗
bob_subscribe_1529@localhost/res1 out
<iq type='set' id='2e3c6000cb913743717fc629a0bbc687'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_1529@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.638 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='bob_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' id='pushc49e630b06df07eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_1529@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.639 ***🔗
bob_subscribe_1529@localhost/res1 out
<iq to='bob_subscribe_1529@localhost' id='pushc49e630b06df07eb' type='result'/>



*** User 2023-11-13 20:13:10.639 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='bob_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' id='2e3c6000cb913743717fc629a0bbc687' type='result'/>



*** User 2023-11-13 20:13:10.639 ***🔗
bob_subscribe_1529@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1529@localhost'/>



*** User 2023-11-13 20:13:10.671 ***🔗
alice_subscribe_1529@localhost/res1 in
<iq from='alice_subscribe_1529@localhost' to='alice_subscribe_1529@localhost/res1' id='push3125d67cbbc44160' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_1529@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.671 ***🔗
alice_subscribe_1529@localhost/res1 in
<presence from='bob_subscribe_1529@localhost' to='alice_subscribe_1529@localhost/res1' type='subscribed'/>



*** User 2023-11-13 20:13:10.671 ***🔗
alice_subscribe_1529@localhost/res1 in
<presence from='bob_subscribe_1529@localhost/res1' to='alice_subscribe_1529@localhost/res1'/>



*** User 2023-11-13 20:13:10.671 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='bob_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' id='pushff03ff31af4af92f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1529@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.671 ***🔗
bob_subscribe_1529@localhost/res1 out
<iq type='get' id='ba1de05cd94c285cffcc613ae1320338'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-13 20:13:10.672 ***🔗
bob_subscribe_1529@localhost/res1 in
<iq from='bob_subscribe_1529@localhost' to='bob_subscribe_1529@localhost/res1' id='ba1de05cd94c285cffcc613ae1320338' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_1529@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-13 20:13:10.672 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_1529@localhost">>},
             {<<"to">>,<<"bob_subscribe_1529@localhost/res1">>},
             {<<"id">>,<<"ba1de05cd94c285cffcc613ae1320338">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1529@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-13 20:13:10.672 ***🔗
bob_subscribe_1529@localhost/res1 out
<presence/>



*** User 2023-11-13 20:13:10.673 ***🔗
alice_subscribe_1529@localhost/res1 in
<presence from='bob_subscribe_1529@localhost/res1' to='alice_subscribe_1529@localhost/res1'/>



*** User 2023-11-13 20:13:10.673 ***🔗
bob_subscribe_1529@localhost/res1 out
<presence type='unavailable'/>



*** User 2023-11-13 20:13:10.673 ***🔗
alice_subscribe_1529@localhost/res1 in
<presence from='bob_subscribe_1529@localhost/res1' to='alice_subscribe_1529@localhost/res1' type='unavailable'/>



*** User 2023-11-13 20:13:10.673 ***🔗
bob_subscribe_1529@localhost/res1 out
</stream:stream>

*** User 2023-11-13 20:13:10.674 ***🔗
bob_subscribe_1529@localhost/res1 in
</stream:stream>

*** User 2023-11-13 20:13:10.674 ***🔗
alice_subscribe_1529@localhost/res1 out
</stream:stream>

*** User 2023-11-13 20:13:10.674 ***🔗
alice_subscribe_1529@localhost/res1 in
</stream:stream>
*** CT 2023-11-13 20:13:10.680 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4317.html



=== Ended at 2023-11-13 20:13:10
=== successfully completed test case
=== === Returned value: ok