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

=== Config value:

    [{watchdog,<0.77581.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.presence_SUITE.logs/run.2024-03-11_11.42.17/presence_suite.subscribe.220290.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.presence_SUITE.logs/run.2024-03-11_11.42.17/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@38467046e2a2.2024-03-11_11.25.28"

=== Started at 2024-03-11 11:42:19


*** CT 2024-03-11 11:42:19.187 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4738.html

*** User 2024-03-11 11:42:19.203 ***🔗
alicE_subscribe_2952@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-03-11 11:42:19.203 ***🔗
alicE_subscribe_2952@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36dc82bbca36e435' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:42:19.204 ***🔗
alicE_subscribe_2952@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-03-11 11:42:19.204 ***🔗
alicE_subscribe_2952@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTUyAG1hdHlncnlzYQ==</auth>



*** User 2024-03-11 11:42:19.205 ***🔗
alicE_subscribe_2952@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:42:19.205 ***🔗
alicE_subscribe_2952@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-03-11 11:42:19.205 ***🔗
alicE_subscribe_2952@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a755274c24866ee4' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2952@localhost'>

*** User 2024-03-11 11:42:19.205 ***🔗
alicE_subscribe_2952@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-03-11 11:42:19.206 ***🔗
alicE_subscribe_2952@localhost/res1 out
<iq type='set' id='c7c69a68c6bdbc4597edc31e017249c9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:42:19.206 ***🔗
alicE_subscribe_2952@localhost/res1 in
<iq id='c7c69a68c6bdbc4597edc31e017249c9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2952@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:42:19.206 ***🔗
alice_subscribe_2952@localhost/res1 out
<iq type='set' id='d76648119377366fc2affbd3447f59af'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:42:19.206 ***🔗
alice_subscribe_2952@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2952@localhost/res1' id='d76648119377366fc2affbd3447f59af' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:42:19.206 ***🔗
alice_subscribe_2952@localhost/res1 out
<presence/>



*** User 2024-03-11 11:42:19.208 ***🔗
alice_subscribe_2952@localhost/res1 in
<presence from='alice_subscribe_2952@localhost/res1' to='alice_subscribe_2952@localhost/res1'/>



*** User 2024-03-11 11:42:19.208 ***🔗
bOb_subscribe_2952@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-03-11 11:42:19.208 ***🔗
bOb_subscribe_2952@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5587405eafd613be' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:42:19.209 ***🔗
bOb_subscribe_2952@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-03-11 11:42:19.209 ***🔗
bOb_subscribe_2952@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjk1MgBtYWtyb2xpa2E=</auth>



*** User 2024-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@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-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f783b3db7d1e1aa' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2952@localhost'>

*** User 2024-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@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-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@localhost/res1 out
<iq type='set' id='2c98a708473e2be03b0a5321a2d1043f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:42:19.210 ***🔗
bOb_subscribe_2952@localhost/res1 in
<iq id='2c98a708473e2be03b0a5321a2d1043f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2952@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:42:19.210 ***🔗
bob_subscribe_2952@localhost/res1 out
<iq type='set' id='f60d2c62c5db3859a9f2b2896871bf2f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:42:19.211 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2952@localhost/res1' id='f60d2c62c5db3859a9f2b2896871bf2f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:42:19.211 ***🔗
bob_subscribe_2952@localhost/res1 out
<presence/>



*** User 2024-03-11 11:42:19.212 ***🔗
bob_subscribe_2952@localhost/res1 in
<presence from='bob_subscribe_2952@localhost/res1' to='bob_subscribe_2952@localhost/res1'/>



*** User 2024-03-11 11:42:19.212 ***🔗
alice_subscribe_2952@localhost/res1 out
<iq type='set' id='618a8c9fe8159d803369ee4c1a1b194a'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2952@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.218 ***🔗
alice_subscribe_2952@localhost/res1 in
<iq from='alice_subscribe_2952@localhost' to='alice_subscribe_2952@localhost/res1' id='pushff8a74b9d5f84212' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2952@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.218 ***🔗
alice_subscribe_2952@localhost/res1 in
<iq from='alice_subscribe_2952@localhost' to='alice_subscribe_2952@localhost/res1' id='618a8c9fe8159d803369ee4c1a1b194a' type='result'/>



*** User 2024-03-11 11:42:19.218 ***🔗
alice_subscribe_2952@localhost/res1 out
<iq to='alice_subscribe_2952@localhost' id='pushff8a74b9d5f84212' type='result'/>



*** User 2024-03-11 11:42:19.218 ***🔗
alice_subscribe_2952@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2952@localhost'/>



*** User 2024-03-11 11:42:19.273 ***🔗
alice_subscribe_2952@localhost/res1 in
<iq from='alice_subscribe_2952@localhost' to='alice_subscribe_2952@localhost/res1' id='push3bf2e1383ebe42a9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2952@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.273 ***🔗
alice_subscribe_2952@localhost/res1 out
<iq to='alice_subscribe_2952@localhost' id='push3bf2e1383ebe42a9' type='result'/>



*** User 2024-03-11 11:42:19.273 ***🔗
bob_subscribe_2952@localhost/res1 in
<presence from='alice_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' type='subscribe'/>



*** User 2024-03-11 11:42:19.273 ***🔗
bob_subscribe_2952@localhost/res1 out
<iq type='get' id='5c3661d52a6157f2799849c657a24a07'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-11 11:42:19.329 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='bob_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' id='5c3661d52a6157f2799849c657a24a07' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-11 11:42:19.330 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2952@localhost">>},
                {<<"to">>,<<"bob_subscribe_2952@localhost/res1">>},
                {<<"id">>,<<"5c3661d52a6157f2799849c657a24a07">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-03-11 11:42:19.330 ***🔗
bob_subscribe_2952@localhost/res1 out
<iq type='set' id='57530e50e60c8284bccce83c80809e16'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2952@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.437 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='bob_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' id='push06398c180f0a8cef' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2952@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.437 ***🔗
bob_subscribe_2952@localhost/res1 out
<iq to='bob_subscribe_2952@localhost' id='push06398c180f0a8cef' type='result'/>



*** User 2024-03-11 11:42:19.437 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='bob_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' id='57530e50e60c8284bccce83c80809e16' type='result'/>



*** User 2024-03-11 11:42:19.437 ***🔗
bob_subscribe_2952@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2952@localhost'/>



*** User 2024-03-11 11:42:19.507 ***🔗
alice_subscribe_2952@localhost/res1 in
<iq from='alice_subscribe_2952@localhost' to='alice_subscribe_2952@localhost/res1' id='push89c541384800e22d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2952@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.507 ***🔗
alice_subscribe_2952@localhost/res1 in
<presence from='bob_subscribe_2952@localhost' to='alice_subscribe_2952@localhost/res1' type='subscribed'/>



*** User 2024-03-11 11:42:19.507 ***🔗
alice_subscribe_2952@localhost/res1 in
<presence from='bob_subscribe_2952@localhost/res1' to='alice_subscribe_2952@localhost/res1'/>



*** User 2024-03-11 11:42:19.508 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='bob_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' id='pusha2abe21c27f90471' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2952@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.508 ***🔗
bob_subscribe_2952@localhost/res1 out
<iq type='get' id='629a6d2217da0873f7f4080060999a58'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-11 11:42:19.511 ***🔗
bob_subscribe_2952@localhost/res1 in
<iq from='bob_subscribe_2952@localhost' to='bob_subscribe_2952@localhost/res1' id='629a6d2217da0873f7f4080060999a58' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2952@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-11 11:42:19.511 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2952@localhost">>},
             {<<"to">>,<<"bob_subscribe_2952@localhost/res1">>},
             {<<"id">>,<<"629a6d2217da0873f7f4080060999a58">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2952@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-03-11 11:42:19.511 ***🔗
bob_subscribe_2952@localhost/res1 out
<presence/>



*** User 2024-03-11 11:42:19.512 ***🔗
alice_subscribe_2952@localhost/res1 in
<presence from='bob_subscribe_2952@localhost/res1' to='alice_subscribe_2952@localhost/res1'/>



*** User 2024-03-11 11:42:19.512 ***🔗
bob_subscribe_2952@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-03-11 11:42:19.513 ***🔗
alice_subscribe_2952@localhost/res1 in
<presence from='bob_subscribe_2952@localhost/res1' to='alice_subscribe_2952@localhost/res1' type='unavailable'/>



*** User 2024-03-11 11:42:19.513 ***🔗
bob_subscribe_2952@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:42:19.513 ***🔗
bob_subscribe_2952@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:42:19.513 ***🔗
alice_subscribe_2952@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:42:19.513 ***🔗
alice_subscribe_2952@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:42:19.523 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4738.html



=== Ended at 2024-03-11 11:42:19
=== successfully completed test case
=== === Returned value: ok