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

=== Config value:

    [{watchdog,<0.14672.2>},
     {preset,"pgsql_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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.presence_SUITE.logs/run.2024-04-22_15.15.00/presence_suite.subscribe.118020.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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.presence_SUITE.logs/run.2024-04-22_15.15.00/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@e19d78a4da91.2024-04-22_14.48.03"

=== Started at 2024-04-22 15:15:03


*** CT 2024-04-22 15:15:03.159 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5583.html

*** User 2024-04-22 15:15:03.202 ***🔗
alicE_subscribe_4959@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-22 15:15:03.205 ***🔗
alicE_subscribe_4959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d0b45c0386d8aec' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 15:15:03.205 ***🔗
alicE_subscribe_4959@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-22 15:15:03.205 ***🔗
alicE_subscribe_4959@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV80OTU5AG1hdHlncnlzYQ==</auth>



*** User 2024-04-22 15:15:03.218 ***🔗
alicE_subscribe_4959@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 15:15:03.218 ***🔗
alicE_subscribe_4959@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-22 15:15:03.219 ***🔗
alicE_subscribe_4959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5cd45560993e4ed' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_4959@localhost'>

*** User 2024-04-22 15:15:03.219 ***🔗
alicE_subscribe_4959@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-22 15:15:03.219 ***🔗
alicE_subscribe_4959@localhost/res1 out
<iq type='set' id='1a4d4d50a378221214788db8b91fba50'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 15:15:03.220 ***🔗
alicE_subscribe_4959@localhost/res1 in
<iq id='1a4d4d50a378221214788db8b91fba50' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_4959@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 15:15:03.221 ***🔗
alice_subscribe_4959@localhost/res1 out
<iq type='set' id='bf1ed19c63cb631f430d5f755b8ff39f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 15:15:03.226 ***🔗
alice_subscribe_4959@localhost/res1 in
<iq from='localhost' to='alice_subscribe_4959@localhost/res1' id='bf1ed19c63cb631f430d5f755b8ff39f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 15:15:03.226 ***🔗
alice_subscribe_4959@localhost/res1 out
<presence/>



*** User 2024-04-22 15:15:03.238 ***🔗
alice_subscribe_4959@localhost/res1 in
<presence from='alice_subscribe_4959@localhost/res1' to='alice_subscribe_4959@localhost/res1'/>



*** User 2024-04-22 15:15:03.249 ***🔗
bOb_subscribe_4959@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-22 15:15:03.252 ***🔗
bOb_subscribe_4959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68f84cfc467107c7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 15:15:03.252 ***🔗
bOb_subscribe_4959@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-22 15:15:03.252 ***🔗
bOb_subscribe_4959@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfNDk1OQBtYWtyb2xpa2E=</auth>



*** User 2024-04-22 15:15:03.255 ***🔗
bOb_subscribe_4959@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 15:15:03.255 ***🔗
bOb_subscribe_4959@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-22 15:15:03.256 ***🔗
bOb_subscribe_4959@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e70c48bc866e470b' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_4959@localhost'>

*** User 2024-04-22 15:15:03.256 ***🔗
bOb_subscribe_4959@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-22 15:15:03.256 ***🔗
bOb_subscribe_4959@localhost/res1 out
<iq type='set' id='cbb35b960c981babb683458c335351b6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 15:15:03.256 ***🔗
bOb_subscribe_4959@localhost/res1 in
<iq id='cbb35b960c981babb683458c335351b6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_4959@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 15:15:03.257 ***🔗
bob_subscribe_4959@localhost/res1 out
<iq type='set' id='eb9e4c8fb8a8515873cbefee3c92e2bd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 15:15:03.278 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='localhost' to='bob_subscribe_4959@localhost/res1' id='eb9e4c8fb8a8515873cbefee3c92e2bd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 15:15:03.278 ***🔗
bob_subscribe_4959@localhost/res1 out
<presence/>



*** User 2024-04-22 15:15:03.285 ***🔗
bob_subscribe_4959@localhost/res1 in
<presence from='bob_subscribe_4959@localhost/res1' to='bob_subscribe_4959@localhost/res1'/>



*** User 2024-04-22 15:15:03.286 ***🔗
alice_subscribe_4959@localhost/res1 out
<iq type='set' id='4e525b671f75897dd65558e99b6ca9f9'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_4959@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.301 ***🔗
alice_subscribe_4959@localhost/res1 in
<iq from='alice_subscribe_4959@localhost' to='alice_subscribe_4959@localhost/res1' id='push187cadcdf2d6fc02' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_4959@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.301 ***🔗
alice_subscribe_4959@localhost/res1 in
<iq from='alice_subscribe_4959@localhost' to='alice_subscribe_4959@localhost/res1' id='4e525b671f75897dd65558e99b6ca9f9' type='result'/>



*** User 2024-04-22 15:15:03.301 ***🔗
alice_subscribe_4959@localhost/res1 out
<iq to='alice_subscribe_4959@localhost' id='push187cadcdf2d6fc02' type='result'/>



*** User 2024-04-22 15:15:03.301 ***🔗
alice_subscribe_4959@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_4959@localhost'/>



*** User 2024-04-22 15:15:03.370 ***🔗
alice_subscribe_4959@localhost/res1 in
<iq from='alice_subscribe_4959@localhost' to='alice_subscribe_4959@localhost/res1' id='push4e1bdba401c9494d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_4959@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.370 ***🔗
alice_subscribe_4959@localhost/res1 out
<iq to='alice_subscribe_4959@localhost' id='push4e1bdba401c9494d' type='result'/>



*** User 2024-04-22 15:15:03.370 ***🔗
bob_subscribe_4959@localhost/res1 in
<presence from='alice_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' type='subscribe'/>



*** User 2024-04-22 15:15:03.370 ***🔗
bob_subscribe_4959@localhost/res1 out
<iq type='get' id='2c668fc941582782026d4c5ae4de920b'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 15:15:03.410 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='bob_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' id='2c668fc941582782026d4c5ae4de920b' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 15:15:03.410 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_4959@localhost">>},
                {<<"to">>,<<"bob_subscribe_4959@localhost/res1">>},
                {<<"id">>,<<"2c668fc941582782026d4c5ae4de920b">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-22 15:15:03.411 ***🔗
bob_subscribe_4959@localhost/res1 out
<iq type='set' id='b5cb59d1118049be6b09e7a95ced8065'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_4959@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.524 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='bob_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' id='pushddf7f3696d838391' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_4959@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.524 ***🔗
bob_subscribe_4959@localhost/res1 out
<iq to='bob_subscribe_4959@localhost' id='pushddf7f3696d838391' type='result'/>



*** User 2024-04-22 15:15:03.524 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='bob_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' id='b5cb59d1118049be6b09e7a95ced8065' type='result'/>



*** User 2024-04-22 15:15:03.524 ***🔗
bob_subscribe_4959@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_4959@localhost'/>



*** User 2024-04-22 15:15:03.554 ***🔗
alice_subscribe_4959@localhost/res1 in
<iq from='alice_subscribe_4959@localhost' to='alice_subscribe_4959@localhost/res1' id='pushfc5ff76dc51c0599' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_4959@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.554 ***🔗
alice_subscribe_4959@localhost/res1 in
<presence from='bob_subscribe_4959@localhost' to='alice_subscribe_4959@localhost/res1' type='subscribed'/>



*** User 2024-04-22 15:15:03.554 ***🔗
alice_subscribe_4959@localhost/res1 in
<presence from='bob_subscribe_4959@localhost/res1' to='alice_subscribe_4959@localhost/res1'/>



*** User 2024-04-22 15:15:03.555 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='bob_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' id='push90c36489043b1a38' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_4959@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.555 ***🔗
bob_subscribe_4959@localhost/res1 out
<iq type='get' id='43cf63085a3f05b1e36adbd2bd2eaec6'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 15:15:03.567 ***🔗
bob_subscribe_4959@localhost/res1 in
<iq from='bob_subscribe_4959@localhost' to='bob_subscribe_4959@localhost/res1' id='43cf63085a3f05b1e36adbd2bd2eaec6' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_4959@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 15:15:03.570 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_4959@localhost">>},
             {<<"to">>,<<"bob_subscribe_4959@localhost/res1">>},
             {<<"id">>,<<"43cf63085a3f05b1e36adbd2bd2eaec6">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_4959@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-22 15:15:03.571 ***🔗
bob_subscribe_4959@localhost/res1 out
<presence/>



*** User 2024-04-22 15:15:03.577 ***🔗
alice_subscribe_4959@localhost/res1 in
<presence from='bob_subscribe_4959@localhost/res1' to='alice_subscribe_4959@localhost/res1'/>



*** User 2024-04-22 15:15:03.577 ***🔗
bob_subscribe_4959@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-22 15:15:03.578 ***🔗
alice_subscribe_4959@localhost/res1 in
<presence from='bob_subscribe_4959@localhost/res1' to='alice_subscribe_4959@localhost/res1' type='unavailable'/>



*** User 2024-04-22 15:15:03.579 ***🔗
bob_subscribe_4959@localhost/res1 out
</stream:stream>

*** User 2024-04-22 15:15:03.582 ***🔗
bob_subscribe_4959@localhost/res1 in
</stream:stream>

*** User 2024-04-22 15:15:03.582 ***🔗
alice_subscribe_4959@localhost/res1 out
</stream:stream>

*** User 2024-04-22 15:15:03.583 ***🔗
alice_subscribe_4959@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 15:15:03.637 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5583.html



=== Ended at 2024-04-22 15:15:03
=== successfully completed test case
=== === Returned value: ok