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

=== Config value:

    [{watchdog,<0.77923.0>},
     {preset,"odbc_mssql_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@04325015025b.2024-04-25_14.32.38/big_tests.tests.presence_SUITE.logs/run.2024-04-25_14.48.31/presence_suite.subscribe.211330.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@04325015025b.2024-04-25_14.32.38/big_tests.tests.presence_SUITE.logs/run.2024-04-25_14.48.31/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@04325015025b.2024-04-25_14.32.38"

=== Started at 2024-04-25 14:48:33


*** CT 2024-04-25 14:48:33.385 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4729.html

*** User 2024-04-25 14:48:33.400 ***🔗
alicE_subscribe_3026@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-25 14:48:33.400 ***🔗
alicE_subscribe_3026@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e58a2d469c301669' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:48:33.401 ***🔗
alicE_subscribe_3026@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-25 14:48:33.401 ***🔗
alicE_subscribe_3026@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8zMDI2AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 14:48:33.401 ***🔗
alicE_subscribe_3026@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:48:33.401 ***🔗
alicE_subscribe_3026@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-25 14:48:33.402 ***🔗
alicE_subscribe_3026@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='894f9b3e2e3bb6a6' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_3026@localhost'>

*** User 2024-04-25 14:48:33.402 ***🔗
alicE_subscribe_3026@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-25 14:48:33.402 ***🔗
alicE_subscribe_3026@localhost/res1 out
<iq type='set' id='e10e5adb60b3bceff585f91bbd0105d9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:48:33.402 ***🔗
alicE_subscribe_3026@localhost/res1 in
<iq id='e10e5adb60b3bceff585f91bbd0105d9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_3026@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:48:33.402 ***🔗
alice_subscribe_3026@localhost/res1 out
<iq type='set' id='f0d8e7d92e6f3a4f457d1c845511b5af'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:48:33.403 ***🔗
alice_subscribe_3026@localhost/res1 in
<iq from='localhost' to='alice_subscribe_3026@localhost/res1' id='f0d8e7d92e6f3a4f457d1c845511b5af' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:48:33.403 ***🔗
alice_subscribe_3026@localhost/res1 out
<presence/>



*** User 2024-04-25 14:48:33.404 ***🔗
alice_subscribe_3026@localhost/res1 in
<presence from='alice_subscribe_3026@localhost/res1' to='alice_subscribe_3026@localhost/res1'/>



*** User 2024-04-25 14:48:33.404 ***🔗
bOb_subscribe_3026@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-25 14:48:33.404 ***🔗
bOb_subscribe_3026@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='935d74267aae5a4c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:48:33.404 ***🔗
bOb_subscribe_3026@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-25 14:48:33.405 ***🔗
bOb_subscribe_3026@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMzAyNgBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 14:48:33.405 ***🔗
bOb_subscribe_3026@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:48:33.405 ***🔗
bOb_subscribe_3026@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-25 14:48:33.405 ***🔗
bOb_subscribe_3026@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56de23da54556e6b' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_3026@localhost'>

*** User 2024-04-25 14:48:33.406 ***🔗
bOb_subscribe_3026@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-25 14:48:33.406 ***🔗
bOb_subscribe_3026@localhost/res1 out
<iq type='set' id='6efb7d374b04a39e429051ec087e61c1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:48:33.406 ***🔗
bOb_subscribe_3026@localhost/res1 in
<iq id='6efb7d374b04a39e429051ec087e61c1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_3026@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:48:33.406 ***🔗
bob_subscribe_3026@localhost/res1 out
<iq type='set' id='d0ad94d3cc7843df170be59f2a206a8c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:48:33.406 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='localhost' to='bob_subscribe_3026@localhost/res1' id='d0ad94d3cc7843df170be59f2a206a8c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:48:33.407 ***🔗
bob_subscribe_3026@localhost/res1 out
<presence/>



*** User 2024-04-25 14:48:33.407 ***🔗
bob_subscribe_3026@localhost/res1 in
<presence from='bob_subscribe_3026@localhost/res1' to='bob_subscribe_3026@localhost/res1'/>



*** User 2024-04-25 14:48:33.407 ***🔗
alice_subscribe_3026@localhost/res1 out
<iq type='set' id='011c1203669aa623257d4236226eddda'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_3026@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.415 ***🔗
alice_subscribe_3026@localhost/res1 in
<iq from='alice_subscribe_3026@localhost' to='alice_subscribe_3026@localhost/res1' id='push73398e8319f715bb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3026@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.415 ***🔗
alice_subscribe_3026@localhost/res1 in
<iq from='alice_subscribe_3026@localhost' to='alice_subscribe_3026@localhost/res1' id='011c1203669aa623257d4236226eddda' type='result'/>



*** User 2024-04-25 14:48:33.415 ***🔗
alice_subscribe_3026@localhost/res1 out
<iq to='alice_subscribe_3026@localhost' id='push73398e8319f715bb' type='result'/>



*** User 2024-04-25 14:48:33.415 ***🔗
alice_subscribe_3026@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_3026@localhost'/>



*** User 2024-04-25 14:48:33.420 ***🔗
alice_subscribe_3026@localhost/res1 in
<iq from='alice_subscribe_3026@localhost' to='alice_subscribe_3026@localhost/res1' id='push8ed7b17fdfa7ff51' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_3026@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.420 ***🔗
alice_subscribe_3026@localhost/res1 out
<iq to='alice_subscribe_3026@localhost' id='push8ed7b17fdfa7ff51' type='result'/>



*** User 2024-04-25 14:48:33.420 ***🔗
bob_subscribe_3026@localhost/res1 in
<presence from='alice_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' type='subscribe'/>



*** User 2024-04-25 14:48:33.420 ***🔗
bob_subscribe_3026@localhost/res1 out
<iq type='get' id='7e8aa394e5eb6ff1e0b9b4afd38c5bc2'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 14:48:33.430 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='bob_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' id='7e8aa394e5eb6ff1e0b9b4afd38c5bc2' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 14:48:33.434 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_3026@localhost">>},
                {<<"to">>,<<"bob_subscribe_3026@localhost/res1">>},
                {<<"id">>,<<"7e8aa394e5eb6ff1e0b9b4afd38c5bc2">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-25 14:48:33.434 ***🔗
bob_subscribe_3026@localhost/res1 out
<iq type='set' id='a74398273baa3880f930c0186b30ec01'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_3026@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.458 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='bob_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' id='push7dffd35e184c5a0e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3026@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.458 ***🔗
bob_subscribe_3026@localhost/res1 out
<iq to='bob_subscribe_3026@localhost' id='push7dffd35e184c5a0e' type='result'/>



*** User 2024-04-25 14:48:33.458 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='bob_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' id='a74398273baa3880f930c0186b30ec01' type='result'/>



*** User 2024-04-25 14:48:33.458 ***🔗
bob_subscribe_3026@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_3026@localhost'/>



*** User 2024-04-25 14:48:33.465 ***🔗
alice_subscribe_3026@localhost/res1 in
<iq from='alice_subscribe_3026@localhost' to='alice_subscribe_3026@localhost/res1' id='push5af99daf011df79e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3026@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.465 ***🔗
alice_subscribe_3026@localhost/res1 in
<presence from='bob_subscribe_3026@localhost' to='alice_subscribe_3026@localhost/res1' type='subscribed'/>



*** User 2024-04-25 14:48:33.465 ***🔗
alice_subscribe_3026@localhost/res1 in
<presence from='bob_subscribe_3026@localhost/res1' to='alice_subscribe_3026@localhost/res1'/>



*** User 2024-04-25 14:48:33.465 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='bob_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' id='pushe0ab078145dcdc6c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3026@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.465 ***🔗
bob_subscribe_3026@localhost/res1 out
<iq type='get' id='91973d500e98eddbb25049a7add32ba0'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 14:48:33.467 ***🔗
bob_subscribe_3026@localhost/res1 in
<iq from='bob_subscribe_3026@localhost' to='bob_subscribe_3026@localhost/res1' id='91973d500e98eddbb25049a7add32ba0' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3026@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 14:48:33.468 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_3026@localhost">>},
             {<<"to">>,<<"bob_subscribe_3026@localhost/res1">>},
             {<<"id">>,<<"91973d500e98eddbb25049a7add32ba0">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_3026@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-25 14:48:33.468 ***🔗
bob_subscribe_3026@localhost/res1 out
<presence/>



*** User 2024-04-25 14:48:33.468 ***🔗
alice_subscribe_3026@localhost/res1 in
<presence from='bob_subscribe_3026@localhost/res1' to='alice_subscribe_3026@localhost/res1'/>



*** User 2024-04-25 14:48:33.469 ***🔗
bob_subscribe_3026@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-25 14:48:33.469 ***🔗
alice_subscribe_3026@localhost/res1 in
<presence from='bob_subscribe_3026@localhost/res1' to='alice_subscribe_3026@localhost/res1' type='unavailable'/>



*** User 2024-04-25 14:48:33.469 ***🔗
bob_subscribe_3026@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:48:33.469 ***🔗
bob_subscribe_3026@localhost/res1 in
</stream:stream>

*** User 2024-04-25 14:48:33.469 ***🔗
alice_subscribe_3026@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:48:33.470 ***🔗
alice_subscribe_3026@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 14:48:33.481 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4729.html



=== Ended at 2024-04-25 14:48:33
=== successfully completed test case
=== === Returned value: ok