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

=== Config value:

    [{watchdog,<0.76789.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.presence_SUITE.logs/run.2024-02-22_12.54.09/presence_suite.subscribe.212098.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.presence_SUITE.logs/run.2024-02-22_12.54.09/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@fb43d4252d17.2024-02-22_12.37.44"

=== Started at 2024-02-22 12:54:12


*** CT 2024-02-22 12:54:12.254 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4698.html

*** User 2024-02-22 12:54:12.275 ***🔗
alicE_subscribe_2924@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-02-22 12:54:12.275 ***🔗
alicE_subscribe_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7434a6c8d917ca0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:54:12.275 ***🔗
alicE_subscribe_2924@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-02-22 12:54:12.275 ***🔗
alicE_subscribe_2924@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTI0AG1hdHlncnlzYQ==</auth>



*** User 2024-02-22 12:54:12.277 ***🔗
alicE_subscribe_2924@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:54:12.277 ***🔗
alicE_subscribe_2924@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-02-22 12:54:12.277 ***🔗
alicE_subscribe_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20844c80aa0d4527' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2924@localhost'>

*** User 2024-02-22 12:54:12.277 ***🔗
alicE_subscribe_2924@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-02-22 12:54:12.277 ***🔗
alicE_subscribe_2924@localhost/res1 out
<iq type='set' id='7b91e842b51a83a02f8bf3fece9e1fea'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:54:12.278 ***🔗
alicE_subscribe_2924@localhost/res1 in
<iq id='7b91e842b51a83a02f8bf3fece9e1fea' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2924@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:54:12.278 ***🔗
alice_subscribe_2924@localhost/res1 out
<iq type='set' id='a9a40d0b3e13204386c14920501674d0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:54:12.278 ***🔗
alice_subscribe_2924@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2924@localhost/res1' id='a9a40d0b3e13204386c14920501674d0' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:54:12.278 ***🔗
alice_subscribe_2924@localhost/res1 out
<presence/>



*** User 2024-02-22 12:54:12.279 ***🔗
alice_subscribe_2924@localhost/res1 in
<presence from='alice_subscribe_2924@localhost/res1' to='alice_subscribe_2924@localhost/res1'/>



*** User 2024-02-22 12:54:12.280 ***🔗
bOb_subscribe_2924@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-02-22 12:54:12.280 ***🔗
bOb_subscribe_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a220e79d64dd8e9' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:54:12.280 ***🔗
bOb_subscribe_2924@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-02-22 12:54:12.280 ***🔗
bOb_subscribe_2924@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkyNABtYWtyb2xpa2E=</auth>



*** User 2024-02-22 12:54:12.281 ***🔗
bOb_subscribe_2924@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:54:12.281 ***🔗
bOb_subscribe_2924@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-02-22 12:54:12.282 ***🔗
bOb_subscribe_2924@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2bbc8fcdea453dd2' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2924@localhost'>

*** User 2024-02-22 12:54:12.282 ***🔗
bOb_subscribe_2924@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-02-22 12:54:12.282 ***🔗
bOb_subscribe_2924@localhost/res1 out
<iq type='set' id='169fd7b6e664af45f0f50a724f79e878'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:54:12.282 ***🔗
bOb_subscribe_2924@localhost/res1 in
<iq id='169fd7b6e664af45f0f50a724f79e878' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2924@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:54:12.282 ***🔗
bob_subscribe_2924@localhost/res1 out
<iq type='set' id='3c9bc619e7b7a855640b6019986756f4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:54:12.283 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2924@localhost/res1' id='3c9bc619e7b7a855640b6019986756f4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:54:12.283 ***🔗
bob_subscribe_2924@localhost/res1 out
<presence/>



*** User 2024-02-22 12:54:12.284 ***🔗
bob_subscribe_2924@localhost/res1 in
<presence from='bob_subscribe_2924@localhost/res1' to='bob_subscribe_2924@localhost/res1'/>



*** User 2024-02-22 12:54:12.284 ***🔗
alice_subscribe_2924@localhost/res1 out
<iq type='set' id='e9b3374682d7001de99d2623529a43cd'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2924@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.296 ***🔗
alice_subscribe_2924@localhost/res1 in
<iq from='alice_subscribe_2924@localhost' to='alice_subscribe_2924@localhost/res1' id='push5b14161309e10ca4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2924@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.296 ***🔗
alice_subscribe_2924@localhost/res1 in
<iq from='alice_subscribe_2924@localhost' to='alice_subscribe_2924@localhost/res1' id='e9b3374682d7001de99d2623529a43cd' type='result'/>



*** User 2024-02-22 12:54:12.296 ***🔗
alice_subscribe_2924@localhost/res1 out
<iq to='alice_subscribe_2924@localhost' id='push5b14161309e10ca4' type='result'/>



*** User 2024-02-22 12:54:12.296 ***🔗
alice_subscribe_2924@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2924@localhost'/>



*** User 2024-02-22 12:54:12.309 ***🔗
alice_subscribe_2924@localhost/res1 in
<iq from='alice_subscribe_2924@localhost' to='alice_subscribe_2924@localhost/res1' id='push7740630af5f18226' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2924@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.309 ***🔗
alice_subscribe_2924@localhost/res1 out
<iq to='alice_subscribe_2924@localhost' id='push7740630af5f18226' type='result'/>



*** User 2024-02-22 12:54:12.309 ***🔗
bob_subscribe_2924@localhost/res1 in
<presence from='alice_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' type='subscribe'/>



*** User 2024-02-22 12:54:12.309 ***🔗
bob_subscribe_2924@localhost/res1 out
<iq type='get' id='a8c9ec9e70c3c6c6e35b6e988dc07421'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 12:54:12.337 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='bob_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' id='a8c9ec9e70c3c6c6e35b6e988dc07421' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 12:54:12.337 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2924@localhost">>},
                {<<"to">>,<<"bob_subscribe_2924@localhost/res1">>},
                {<<"id">>,<<"a8c9ec9e70c3c6c6e35b6e988dc07421">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-02-22 12:54:12.337 ***🔗
bob_subscribe_2924@localhost/res1 out
<iq type='set' id='27c28be28887586a2a30e644487e948d'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2924@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.363 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='bob_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' id='push147fd4a2c125a002' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2924@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.363 ***🔗
bob_subscribe_2924@localhost/res1 out
<iq to='bob_subscribe_2924@localhost' id='push147fd4a2c125a002' type='result'/>



*** User 2024-02-22 12:54:12.364 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='bob_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' id='27c28be28887586a2a30e644487e948d' type='result'/>



*** User 2024-02-22 12:54:12.364 ***🔗
bob_subscribe_2924@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2924@localhost'/>



*** User 2024-02-22 12:54:12.370 ***🔗
alice_subscribe_2924@localhost/res1 in
<iq from='alice_subscribe_2924@localhost' to='alice_subscribe_2924@localhost/res1' id='push9f0a86334ed93252' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2924@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.370 ***🔗
alice_subscribe_2924@localhost/res1 in
<presence from='bob_subscribe_2924@localhost' to='alice_subscribe_2924@localhost/res1' type='subscribed'/>



*** User 2024-02-22 12:54:12.370 ***🔗
alice_subscribe_2924@localhost/res1 in
<presence from='bob_subscribe_2924@localhost/res1' to='alice_subscribe_2924@localhost/res1'/>



*** User 2024-02-22 12:54:12.370 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='bob_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' id='push8ad97e9ec60decb3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2924@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.370 ***🔗
bob_subscribe_2924@localhost/res1 out
<iq type='get' id='313efa6ea2c33dac2f5bd00ddf190a0b'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-22 12:54:12.372 ***🔗
bob_subscribe_2924@localhost/res1 in
<iq from='bob_subscribe_2924@localhost' to='bob_subscribe_2924@localhost/res1' id='313efa6ea2c33dac2f5bd00ddf190a0b' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2924@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-22 12:54:12.372 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2924@localhost">>},
             {<<"to">>,<<"bob_subscribe_2924@localhost/res1">>},
             {<<"id">>,<<"313efa6ea2c33dac2f5bd00ddf190a0b">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2924@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-02-22 12:54:12.373 ***🔗
bob_subscribe_2924@localhost/res1 out
<presence/>



*** User 2024-02-22 12:54:12.374 ***🔗
alice_subscribe_2924@localhost/res1 in
<presence from='bob_subscribe_2924@localhost/res1' to='alice_subscribe_2924@localhost/res1'/>



*** User 2024-02-22 12:54:12.374 ***🔗
bob_subscribe_2924@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-02-22 12:54:12.374 ***🔗
alice_subscribe_2924@localhost/res1 in
<presence from='bob_subscribe_2924@localhost/res1' to='alice_subscribe_2924@localhost/res1' type='unavailable'/>



*** User 2024-02-22 12:54:12.374 ***🔗
bob_subscribe_2924@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:54:12.375 ***🔗
bob_subscribe_2924@localhost/res1 in
</stream:stream>

*** User 2024-02-22 12:54:12.375 ***🔗
alice_subscribe_2924@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:54:12.375 ***🔗
alice_subscribe_2924@localhost/res1 in
</stream:stream>
*** CT 2024-02-22 12:54:12.384 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4698.html



=== Ended at 2024-02-22 12:54:12
=== successfully completed test case
=== === Returned value: ok