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

=== Config value:

    [{watchdog,<0.63950.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.presence_SUITE.logs/run.2024-04-16_10.27.57/presence_suite.subscribe.110851.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.presence_SUITE.logs/run.2024-04-16_10.27.57/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@6b87bb397ec6.2024-04-16_10.12.53"

=== Started at 2024-04-16 10:27:59


*** CT 2024-04-16 10:27:59.313 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4235.html

*** User 2024-04-16 10:27:59.326 ***🔗
alicE_subscribe_2173@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-16 10:27:59.326 ***🔗
alicE_subscribe_2173@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fba5c824cbfdcc7f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:27:59.326 ***🔗
alicE_subscribe_2173@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-16 10:27:59.327 ***🔗
alicE_subscribe_2173@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yMTczAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:27:59.327 ***🔗
alicE_subscribe_2173@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:27:59.328 ***🔗
alicE_subscribe_2173@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-16 10:27:59.328 ***🔗
alicE_subscribe_2173@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='29a08283447608a8' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2173@localhost'>

*** User 2024-04-16 10:27:59.328 ***🔗
alicE_subscribe_2173@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-16 10:27:59.328 ***🔗
alicE_subscribe_2173@localhost/res1 out
<iq type='set' id='da00729aa0354fb601a8798eb855f20f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:27:59.329 ***🔗
alicE_subscribe_2173@localhost/res1 in
<iq id='da00729aa0354fb601a8798eb855f20f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2173@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:27:59.329 ***🔗
alice_subscribe_2173@localhost/res1 out
<iq type='set' id='7ddc3ffe4cf6259e12427913384f4ce0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:27:59.330 ***🔗
alice_subscribe_2173@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2173@localhost/res1' id='7ddc3ffe4cf6259e12427913384f4ce0' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:27:59.330 ***🔗
alice_subscribe_2173@localhost/res1 out
<presence/>



*** User 2024-04-16 10:27:59.331 ***🔗
alice_subscribe_2173@localhost/res1 in
<presence from='alice_subscribe_2173@localhost/res1' to='alice_subscribe_2173@localhost/res1'/>



*** User 2024-04-16 10:27:59.332 ***🔗
bOb_subscribe_2173@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-16 10:27:59.353 ***🔗
bOb_subscribe_2173@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='67ce1b0c0c180eef' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:27:59.353 ***🔗
bOb_subscribe_2173@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-16 10:27:59.353 ***🔗
bOb_subscribe_2173@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjE3MwBtYWtyb2xpa2E=</auth>



*** User 2024-04-16 10:27:59.354 ***🔗
bOb_subscribe_2173@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:27:59.354 ***🔗
bOb_subscribe_2173@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-16 10:27:59.354 ***🔗
bOb_subscribe_2173@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb6009277878ea98' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2173@localhost'>

*** User 2024-04-16 10:27:59.354 ***🔗
bOb_subscribe_2173@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-16 10:27:59.354 ***🔗
bOb_subscribe_2173@localhost/res1 out
<iq type='set' id='97cb4cdf6dfb9f1eaaf6de95aee8a2f4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:27:59.355 ***🔗
bOb_subscribe_2173@localhost/res1 in
<iq id='97cb4cdf6dfb9f1eaaf6de95aee8a2f4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2173@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:27:59.356 ***🔗
bob_subscribe_2173@localhost/res1 out
<iq type='set' id='d4cc45a11e7763a66ddadd672effc1d2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:27:59.357 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2173@localhost/res1' id='d4cc45a11e7763a66ddadd672effc1d2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:27:59.357 ***🔗
bob_subscribe_2173@localhost/res1 out
<presence/>



*** User 2024-04-16 10:27:59.358 ***🔗
bob_subscribe_2173@localhost/res1 in
<presence from='bob_subscribe_2173@localhost/res1' to='bob_subscribe_2173@localhost/res1'/>



*** User 2024-04-16 10:27:59.358 ***🔗
alice_subscribe_2173@localhost/res1 out
<iq type='set' id='3753a7dbea31b52a5ad66ff90c57c219'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2173@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.361 ***🔗
alice_subscribe_2173@localhost/res1 in
<iq from='alice_subscribe_2173@localhost' to='alice_subscribe_2173@localhost/res1' id='push12dfe407485c545a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2173@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.361 ***🔗
alice_subscribe_2173@localhost/res1 in
<iq from='alice_subscribe_2173@localhost' to='alice_subscribe_2173@localhost/res1' id='3753a7dbea31b52a5ad66ff90c57c219' type='result'/>



*** User 2024-04-16 10:27:59.361 ***🔗
alice_subscribe_2173@localhost/res1 out
<iq to='alice_subscribe_2173@localhost' id='push12dfe407485c545a' type='result'/>



*** User 2024-04-16 10:27:59.361 ***🔗
alice_subscribe_2173@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2173@localhost'/>



*** User 2024-04-16 10:27:59.363 ***🔗
alice_subscribe_2173@localhost/res1 in
<iq from='alice_subscribe_2173@localhost' to='alice_subscribe_2173@localhost/res1' id='pushb06fcf2a14b40a4b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2173@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.364 ***🔗
alice_subscribe_2173@localhost/res1 out
<iq to='alice_subscribe_2173@localhost' id='pushb06fcf2a14b40a4b' type='result'/>



*** User 2024-04-16 10:27:59.364 ***🔗
bob_subscribe_2173@localhost/res1 in
<presence from='alice_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' type='subscribe'/>



*** User 2024-04-16 10:27:59.364 ***🔗
bob_subscribe_2173@localhost/res1 out
<iq type='get' id='a5ce2172463ab5e7c37faffadd4329ba'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-16 10:27:59.365 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='bob_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' id='a5ce2172463ab5e7c37faffadd4329ba' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-16 10:27:59.365 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2173@localhost">>},
                {<<"to">>,<<"bob_subscribe_2173@localhost/res1">>},
                {<<"id">>,<<"a5ce2172463ab5e7c37faffadd4329ba">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-16 10:27:59.365 ***🔗
bob_subscribe_2173@localhost/res1 out
<iq type='set' id='ef85ead27a9109926dca999fb32b76b0'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2173@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.366 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='bob_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' id='pushb1b057356707c342' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2173@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.366 ***🔗
bob_subscribe_2173@localhost/res1 out
<iq to='bob_subscribe_2173@localhost' id='pushb1b057356707c342' type='result'/>



*** User 2024-04-16 10:27:59.366 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='bob_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' id='ef85ead27a9109926dca999fb32b76b0' type='result'/>



*** User 2024-04-16 10:27:59.366 ***🔗
bob_subscribe_2173@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2173@localhost'/>



*** User 2024-04-16 10:27:59.369 ***🔗
alice_subscribe_2173@localhost/res1 in
<iq from='alice_subscribe_2173@localhost' to='alice_subscribe_2173@localhost/res1' id='pushfcdc1a2d39e10fa6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2173@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.369 ***🔗
alice_subscribe_2173@localhost/res1 in
<presence from='bob_subscribe_2173@localhost' to='alice_subscribe_2173@localhost/res1' type='subscribed'/>



*** User 2024-04-16 10:27:59.369 ***🔗
alice_subscribe_2173@localhost/res1 in
<presence from='bob_subscribe_2173@localhost/res1' to='alice_subscribe_2173@localhost/res1'/>



*** User 2024-04-16 10:27:59.369 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='bob_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' id='pushda18371e0a06b68a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2173@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.370 ***🔗
bob_subscribe_2173@localhost/res1 out
<iq type='get' id='a58091f525e95e72cb7a5e29d5a5a3af'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-16 10:27:59.371 ***🔗
bob_subscribe_2173@localhost/res1 in
<iq from='bob_subscribe_2173@localhost' to='bob_subscribe_2173@localhost/res1' id='a58091f525e95e72cb7a5e29d5a5a3af' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2173@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-16 10:27:59.371 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2173@localhost">>},
             {<<"to">>,<<"bob_subscribe_2173@localhost/res1">>},
             {<<"id">>,<<"a58091f525e95e72cb7a5e29d5a5a3af">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2173@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-16 10:27:59.371 ***🔗
bob_subscribe_2173@localhost/res1 out
<presence/>



*** User 2024-04-16 10:27:59.372 ***🔗
alice_subscribe_2173@localhost/res1 in
<presence from='bob_subscribe_2173@localhost/res1' to='alice_subscribe_2173@localhost/res1'/>



*** User 2024-04-16 10:27:59.372 ***🔗
bob_subscribe_2173@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-16 10:27:59.373 ***🔗
alice_subscribe_2173@localhost/res1 in
<presence from='bob_subscribe_2173@localhost/res1' to='alice_subscribe_2173@localhost/res1' type='unavailable'/>



*** User 2024-04-16 10:27:59.374 ***🔗
bob_subscribe_2173@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:27:59.374 ***🔗
bob_subscribe_2173@localhost/res1 in
</stream:stream>

*** User 2024-04-16 10:27:59.374 ***🔗
alice_subscribe_2173@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:27:59.374 ***🔗
alice_subscribe_2173@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 10:27:59.384 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4235.html



=== Ended at 2024-04-16 10:27:59
=== successfully completed test case
=== === Returned value: ok