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

=== Config value:

    [{watchdog,<0.71812.0>},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e5991d55cb5f.2024-04-10_07.52.47/big_tests.tests.presence_SUITE.logs/run.2024-04-10_08.05.29/presence_suite.subscribe.177282.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@e5991d55cb5f.2024-04-10_07.52.47/big_tests.tests.presence_SUITE.logs/run.2024-04-10_08.05.29/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@e5991d55cb5f.2024-04-10_07.52.47"

=== Started at 2024-04-10 08:05:31


*** CT 2024-04-10 08:05:31.305 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4426.html

*** User 2024-04-10 08:05:31.321 ***🔗
alicE_subscribe_2619@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-04-10 08:05:31.321 ***🔗
alicE_subscribe_2619@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3379bf22043bb89d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:05:31.322 ***🔗
alicE_subscribe_2619@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-04-10 08:05:31.322 ***🔗
alicE_subscribe_2619@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjE5AG1hdHlncnlzYQ==</auth>



*** User 2024-04-10 08:05:31.323 ***🔗
alicE_subscribe_2619@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:05:31.323 ***🔗
alicE_subscribe_2619@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-04-10 08:05:31.340 ***🔗
alicE_subscribe_2619@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80e57989531de52a' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2619@localhost'>

*** User 2024-04-10 08:05:31.340 ***🔗
alicE_subscribe_2619@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-04-10 08:05:31.340 ***🔗
alicE_subscribe_2619@localhost/res1 out
<iq type='set' id='f01eadd28425c148db86c30d6fd1378f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:05:31.340 ***🔗
alicE_subscribe_2619@localhost/res1 in
<iq id='f01eadd28425c148db86c30d6fd1378f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2619@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:05:31.340 ***🔗
alice_subscribe_2619@localhost/res1 out
<iq type='set' id='6649af645e9c74a5886fd5dea0aae294'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:05:31.341 ***🔗
alice_subscribe_2619@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2619@localhost/res1' id='6649af645e9c74a5886fd5dea0aae294' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:05:31.342 ***🔗
alice_subscribe_2619@localhost/res1 out
<presence/>



*** User 2024-04-10 08:05:31.343 ***🔗
alice_subscribe_2619@localhost/res1 in
<presence from='alice_subscribe_2619@localhost/res1' to='alice_subscribe_2619@localhost/res1'/>



*** User 2024-04-10 08:05:31.343 ***🔗
bOb_subscribe_2619@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-04-10 08:05:31.344 ***🔗
bOb_subscribe_2619@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5fae6b58e204db9' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:05:31.344 ***🔗
bOb_subscribe_2619@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-04-10 08:05:31.344 ***🔗
bOb_subscribe_2619@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjYxOQBtYWtyb2xpa2E=</auth>



*** User 2024-04-10 08:05:31.345 ***🔗
bOb_subscribe_2619@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:05:31.345 ***🔗
bOb_subscribe_2619@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-04-10 08:05:31.345 ***🔗
bOb_subscribe_2619@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0810c7551f9ad28b' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2619@localhost'>

*** User 2024-04-10 08:05:31.346 ***🔗
bOb_subscribe_2619@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-04-10 08:05:31.346 ***🔗
bOb_subscribe_2619@localhost/res1 out
<iq type='set' id='b342c4dcd7ce8dc8b2d08b6595fb20ce'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:05:31.346 ***🔗
bOb_subscribe_2619@localhost/res1 in
<iq id='b342c4dcd7ce8dc8b2d08b6595fb20ce' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2619@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:05:31.346 ***🔗
bob_subscribe_2619@localhost/res1 out
<iq type='set' id='0c7df257c83261b7b478a5b520e917ce'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:05:31.347 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2619@localhost/res1' id='0c7df257c83261b7b478a5b520e917ce' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:05:31.347 ***🔗
bob_subscribe_2619@localhost/res1 out
<presence/>



*** User 2024-04-10 08:05:31.348 ***🔗
bob_subscribe_2619@localhost/res1 in
<presence from='bob_subscribe_2619@localhost/res1' to='bob_subscribe_2619@localhost/res1'/>



*** User 2024-04-10 08:05:31.348 ***🔗
alice_subscribe_2619@localhost/res1 out
<iq type='set' id='3f8e4f19657f0cf93c147bc8f432d143'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2619@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.355 ***🔗
alice_subscribe_2619@localhost/res1 in
<iq from='alice_subscribe_2619@localhost' to='alice_subscribe_2619@localhost/res1' id='push78b35c3f4a93631f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2619@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.355 ***🔗
alice_subscribe_2619@localhost/res1 in
<iq from='alice_subscribe_2619@localhost' to='alice_subscribe_2619@localhost/res1' id='3f8e4f19657f0cf93c147bc8f432d143' type='result'/>



*** User 2024-04-10 08:05:31.355 ***🔗
alice_subscribe_2619@localhost/res1 out
<iq to='alice_subscribe_2619@localhost' id='push78b35c3f4a93631f' type='result'/>



*** User 2024-04-10 08:05:31.355 ***🔗
alice_subscribe_2619@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2619@localhost'/>



*** User 2024-04-10 08:05:31.362 ***🔗
alice_subscribe_2619@localhost/res1 in
<iq from='alice_subscribe_2619@localhost' to='alice_subscribe_2619@localhost/res1' id='pushdaaf61482cb78beb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2619@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.362 ***🔗
alice_subscribe_2619@localhost/res1 out
<iq to='alice_subscribe_2619@localhost' id='pushdaaf61482cb78beb' type='result'/>



*** User 2024-04-10 08:05:31.363 ***🔗
bob_subscribe_2619@localhost/res1 in
<presence from='alice_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' type='subscribe'/>



*** User 2024-04-10 08:05:31.363 ***🔗
bob_subscribe_2619@localhost/res1 out
<iq type='get' id='9fa767f374be7ec9448cb13ea975ba53'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 08:05:31.365 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='bob_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' id='9fa767f374be7ec9448cb13ea975ba53' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 08:05:31.365 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2619@localhost">>},
                {<<"to">>,<<"bob_subscribe_2619@localhost/res1">>},
                {<<"id">>,<<"9fa767f374be7ec9448cb13ea975ba53">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-10 08:05:31.365 ***🔗
bob_subscribe_2619@localhost/res1 out
<iq type='set' id='dd31d4070c64b7a6ed1ad612c608ac6c'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2619@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.370 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='bob_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' id='pushe6f7309813998b5a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2619@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.371 ***🔗
bob_subscribe_2619@localhost/res1 out
<iq to='bob_subscribe_2619@localhost' id='pushe6f7309813998b5a' type='result'/>



*** User 2024-04-10 08:05:31.371 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='bob_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' id='dd31d4070c64b7a6ed1ad612c608ac6c' type='result'/>



*** User 2024-04-10 08:05:31.371 ***🔗
bob_subscribe_2619@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2619@localhost'/>



*** User 2024-04-10 08:05:31.374 ***🔗
alice_subscribe_2619@localhost/res1 in
<iq from='alice_subscribe_2619@localhost' to='alice_subscribe_2619@localhost/res1' id='pushb1d36261428d48a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2619@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.374 ***🔗
alice_subscribe_2619@localhost/res1 in
<presence from='bob_subscribe_2619@localhost' to='alice_subscribe_2619@localhost/res1' type='subscribed'/>



*** User 2024-04-10 08:05:31.374 ***🔗
alice_subscribe_2619@localhost/res1 in
<presence from='bob_subscribe_2619@localhost/res1' to='alice_subscribe_2619@localhost/res1'/>



*** User 2024-04-10 08:05:31.374 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='bob_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' id='push3289991a40d12ecc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2619@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.375 ***🔗
bob_subscribe_2619@localhost/res1 out
<iq type='get' id='bbef56303296a62b3cb17d2e380c1c36'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 08:05:31.380 ***🔗
bob_subscribe_2619@localhost/res1 in
<iq from='bob_subscribe_2619@localhost' to='bob_subscribe_2619@localhost/res1' id='bbef56303296a62b3cb17d2e380c1c36' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2619@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 08:05:31.380 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2619@localhost">>},
             {<<"to">>,<<"bob_subscribe_2619@localhost/res1">>},
             {<<"id">>,<<"bbef56303296a62b3cb17d2e380c1c36">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2619@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-10 08:05:31.380 ***🔗
bob_subscribe_2619@localhost/res1 out
<presence/>



*** User 2024-04-10 08:05:31.381 ***🔗
alice_subscribe_2619@localhost/res1 in
<presence from='bob_subscribe_2619@localhost/res1' to='alice_subscribe_2619@localhost/res1'/>



*** User 2024-04-10 08:05:31.381 ***🔗
bob_subscribe_2619@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-10 08:05:31.382 ***🔗
alice_subscribe_2619@localhost/res1 in
<presence from='bob_subscribe_2619@localhost/res1' to='alice_subscribe_2619@localhost/res1' type='unavailable'/>



*** User 2024-04-10 08:05:31.382 ***🔗
bob_subscribe_2619@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:05:31.382 ***🔗
bob_subscribe_2619@localhost/res1 in
</stream:stream>

*** User 2024-04-10 08:05:31.382 ***🔗
alice_subscribe_2619@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:05:31.383 ***🔗
alice_subscribe_2619@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 08:05:31.440 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4426.html



=== Ended at 2024-04-10 08:05:31
=== successfully completed test case
=== === Returned value: ok