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

=== Config value:

    [{watchdog,<0.9214.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.presence_SUITE.logs/run.2023-11-16_09.19.15/presence_suite.subscribe.192258.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.presence_SUITE.logs/run.2023-11-16_09.19.15/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@fca70da71937.2023-11-16_09.05.55"

=== Started at 2023-11-16 09:19:17


*** CT 2023-11-16 09:19:17.523 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4614.html

*** User 2023-11-16 09:19:17.535 ***🔗
alicE_subscribe_2802@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:19:17.535 ***🔗
alicE_subscribe_2802@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01299cfedf9929ad' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:19:17.536 ***🔗
alicE_subscribe_2802@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 2023-11-16 09:19:17.536 ***🔗
alicE_subscribe_2802@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODAyAG1hdHlncnlzYQ==</auth>



*** User 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c14121af9b78272b' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2802@localhost'>

*** User 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@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 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@localhost/res1 out
<iq type='set' id='92884077e146edf2fbfd751ee7dc8297'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:19:17.537 ***🔗
alicE_subscribe_2802@localhost/res1 in
<iq id='92884077e146edf2fbfd751ee7dc8297' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2802@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:19:17.538 ***🔗
alice_subscribe_2802@localhost/res1 out
<iq type='set' id='f020fe1afbeb53feaa86cf087ddc9b43'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:19:17.538 ***🔗
alice_subscribe_2802@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2802@localhost/res1' id='f020fe1afbeb53feaa86cf087ddc9b43' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:19:17.538 ***🔗
alice_subscribe_2802@localhost/res1 out
<presence/>



*** User 2023-11-16 09:19:17.539 ***🔗
alice_subscribe_2802@localhost/res1 in
<presence from='alice_subscribe_2802@localhost/res1' to='alice_subscribe_2802@localhost/res1'/>



*** User 2023-11-16 09:19:17.540 ***🔗
bOb_subscribe_2802@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:19:17.540 ***🔗
bOb_subscribe_2802@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='34fcf782acd3fa3a' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:19:17.540 ***🔗
bOb_subscribe_2802@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 2023-11-16 09:19:17.540 ***🔗
bOb_subscribe_2802@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjgwMgBtYWtyb2xpa2E=</auth>



*** User 2023-11-16 09:19:17.541 ***🔗
bOb_subscribe_2802@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:19:17.541 ***🔗
bOb_subscribe_2802@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:19:17.542 ***🔗
bOb_subscribe_2802@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1c284aba14bbd2b' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2802@localhost'>

*** User 2023-11-16 09:19:17.542 ***🔗
bOb_subscribe_2802@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 2023-11-16 09:19:17.542 ***🔗
bOb_subscribe_2802@localhost/res1 out
<iq type='set' id='302023fde05ccd1b07f0ccd57073957b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:19:17.542 ***🔗
bOb_subscribe_2802@localhost/res1 in
<iq id='302023fde05ccd1b07f0ccd57073957b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2802@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:19:17.542 ***🔗
bob_subscribe_2802@localhost/res1 out
<iq type='set' id='a7350551575e186d55574d37c915834c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:19:17.543 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2802@localhost/res1' id='a7350551575e186d55574d37c915834c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:19:17.543 ***🔗
bob_subscribe_2802@localhost/res1 out
<presence/>



*** User 2023-11-16 09:19:17.544 ***🔗
bob_subscribe_2802@localhost/res1 in
<presence from='bob_subscribe_2802@localhost/res1' to='bob_subscribe_2802@localhost/res1'/>



*** User 2023-11-16 09:19:17.544 ***🔗
alice_subscribe_2802@localhost/res1 out
<iq type='set' id='509f56dd0c8d7d0af4f7c32f3a081311'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2802@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.546 ***🔗
alice_subscribe_2802@localhost/res1 in
<iq from='alice_subscribe_2802@localhost' to='alice_subscribe_2802@localhost/res1' id='push9bce8f0f34e6f730' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2802@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.546 ***🔗
alice_subscribe_2802@localhost/res1 in
<iq from='alice_subscribe_2802@localhost' to='alice_subscribe_2802@localhost/res1' id='509f56dd0c8d7d0af4f7c32f3a081311' type='result'/>



*** User 2023-11-16 09:19:17.546 ***🔗
alice_subscribe_2802@localhost/res1 out
<iq to='alice_subscribe_2802@localhost' id='push9bce8f0f34e6f730' type='result'/>



*** User 2023-11-16 09:19:17.546 ***🔗
alice_subscribe_2802@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2802@localhost'/>



*** User 2023-11-16 09:19:17.550 ***🔗
alice_subscribe_2802@localhost/res1 in
<iq from='alice_subscribe_2802@localhost' to='alice_subscribe_2802@localhost/res1' id='push877c25b0f373fb85' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2802@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.550 ***🔗
alice_subscribe_2802@localhost/res1 out
<iq to='alice_subscribe_2802@localhost' id='push877c25b0f373fb85' type='result'/>



*** User 2023-11-16 09:19:17.550 ***🔗
bob_subscribe_2802@localhost/res1 in
<presence from='alice_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' type='subscribe'/>



*** User 2023-11-16 09:19:17.551 ***🔗
bob_subscribe_2802@localhost/res1 out
<iq type='get' id='2a8fe3701d946c692e3c053ca83cac7a'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:19:17.555 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='bob_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' id='2a8fe3701d946c692e3c053ca83cac7a' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:19:17.555 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2802@localhost">>},
                {<<"to">>,<<"bob_subscribe_2802@localhost/res1">>},
                {<<"id">>,<<"2a8fe3701d946c692e3c053ca83cac7a">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-16 09:19:17.555 ***🔗
bob_subscribe_2802@localhost/res1 out
<iq type='set' id='21e3191f5a23c7899df3ca25ad71061f'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2802@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.560 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='bob_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' id='push96ef3c8323c9b7a0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2802@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.560 ***🔗
bob_subscribe_2802@localhost/res1 out
<iq to='bob_subscribe_2802@localhost' id='push96ef3c8323c9b7a0' type='result'/>



*** User 2023-11-16 09:19:17.560 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='bob_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' id='21e3191f5a23c7899df3ca25ad71061f' type='result'/>



*** User 2023-11-16 09:19:17.560 ***🔗
bob_subscribe_2802@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2802@localhost'/>



*** User 2023-11-16 09:19:17.564 ***🔗
alice_subscribe_2802@localhost/res1 in
<iq from='alice_subscribe_2802@localhost' to='alice_subscribe_2802@localhost/res1' id='pushf8bc549271ac4451' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2802@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.564 ***🔗
alice_subscribe_2802@localhost/res1 in
<presence from='bob_subscribe_2802@localhost' to='alice_subscribe_2802@localhost/res1' type='subscribed'/>



*** User 2023-11-16 09:19:17.564 ***🔗
alice_subscribe_2802@localhost/res1 in
<presence from='bob_subscribe_2802@localhost/res1' to='alice_subscribe_2802@localhost/res1'/>



*** User 2023-11-16 09:19:17.564 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='bob_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' id='pushd6d1a970cc4ba594' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2802@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.564 ***🔗
bob_subscribe_2802@localhost/res1 out
<iq type='get' id='b5e52fbc5869aba790caba94296865f2'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-16 09:19:17.613 ***🔗
bob_subscribe_2802@localhost/res1 in
<iq from='bob_subscribe_2802@localhost' to='bob_subscribe_2802@localhost/res1' id='b5e52fbc5869aba790caba94296865f2' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2802@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-16 09:19:17.613 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2802@localhost">>},
             {<<"to">>,<<"bob_subscribe_2802@localhost/res1">>},
             {<<"id">>,<<"b5e52fbc5869aba790caba94296865f2">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2802@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-16 09:19:17.613 ***🔗
bob_subscribe_2802@localhost/res1 out
<presence/>



*** User 2023-11-16 09:19:17.614 ***🔗
alice_subscribe_2802@localhost/res1 in
<presence from='bob_subscribe_2802@localhost/res1' to='alice_subscribe_2802@localhost/res1'/>



*** User 2023-11-16 09:19:17.614 ***🔗
bob_subscribe_2802@localhost/res1 out
<presence type='unavailable'/>



*** User 2023-11-16 09:19:17.614 ***🔗
alice_subscribe_2802@localhost/res1 in
<presence from='bob_subscribe_2802@localhost/res1' to='alice_subscribe_2802@localhost/res1' type='unavailable'/>



*** User 2023-11-16 09:19:17.614 ***🔗
bob_subscribe_2802@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:19:17.614 ***🔗
bob_subscribe_2802@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:19:17.615 ***🔗
alice_subscribe_2802@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:19:17.615 ***🔗
alice_subscribe_2802@localhost/res1 in
</stream:stream>
*** CT 2023-11-16 09:19:17.620 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4614.html



=== Ended at 2023-11-16 09:19:17
=== successfully completed test case
=== === Returned value: ok