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

=== Config value:

    [{watchdog,<0.74705.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@e84896a28784.2023-12-20_12.31.47/big_tests.tests.presence_SUITE.logs/run.2023-12-20_12.46.56/presence_suite.subscribe.207618.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@e84896a28784.2023-12-20_12.31.47/big_tests.tests.presence_SUITE.logs/run.2023-12-20_12.46.56/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@e84896a28784.2023-12-20_12.31.47"

=== Started at 2023-12-20 12:46:58


*** CT 2023-12-20 12:46:58.211 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4766.html

*** User 2023-12-20 12:46:58.223 ***🔗
alicE_subscribe_2730@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-12-20 12:46:58.223 ***🔗
alicE_subscribe_2730@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85509686f1e26ce6' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-20 12:46:58.223 ***🔗
alicE_subscribe_2730@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-12-20 12:46:58.223 ***🔗
alicE_subscribe_2730@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNzMwAG1hdHlncnlzYQ==</auth>



*** User 2023-12-20 12:46:58.224 ***🔗
alicE_subscribe_2730@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-20 12:46:58.224 ***🔗
alicE_subscribe_2730@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-12-20 12:46:58.225 ***🔗
alicE_subscribe_2730@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4253289b2914398e' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2730@localhost'>

*** User 2023-12-20 12:46:58.225 ***🔗
alicE_subscribe_2730@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-12-20 12:46:58.225 ***🔗
alicE_subscribe_2730@localhost/res1 out
<iq type='set' id='4f4fb50a93d7f49f146847be54ff37e9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-20 12:46:58.225 ***🔗
alicE_subscribe_2730@localhost/res1 in
<iq id='4f4fb50a93d7f49f146847be54ff37e9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2730@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-12-20 12:46:58.225 ***🔗
alice_subscribe_2730@localhost/res1 out
<iq type='set' id='1dd3ffe03bdc0ac389ea8b11cf3b51fd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-20 12:46:58.226 ***🔗
alice_subscribe_2730@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2730@localhost/res1' id='1dd3ffe03bdc0ac389ea8b11cf3b51fd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-20 12:46:58.226 ***🔗
alice_subscribe_2730@localhost/res1 out
<presence/>



*** User 2023-12-20 12:46:58.227 ***🔗
alice_subscribe_2730@localhost/res1 in
<presence from='alice_subscribe_2730@localhost/res1' to='alice_subscribe_2730@localhost/res1'/>



*** User 2023-12-20 12:46:58.227 ***🔗
bOb_subscribe_2730@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-12-20 12:46:58.228 ***🔗
bOb_subscribe_2730@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='24912a802994d866' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-20 12:46:58.228 ***🔗
bOb_subscribe_2730@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-12-20 12:46:58.228 ***🔗
bOb_subscribe_2730@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjczMABtYWtyb2xpa2E=</auth>



*** User 2023-12-20 12:46:58.230 ***🔗
bOb_subscribe_2730@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-20 12:46:58.230 ***🔗
bOb_subscribe_2730@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-12-20 12:46:58.230 ***🔗
bOb_subscribe_2730@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de075c8211d7df1c' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2730@localhost'>

*** User 2023-12-20 12:46:58.230 ***🔗
bOb_subscribe_2730@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-12-20 12:46:58.230 ***🔗
bOb_subscribe_2730@localhost/res1 out
<iq type='set' id='b7a1dd199f602a3b45ab751b15cd4964'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-20 12:46:58.231 ***🔗
bOb_subscribe_2730@localhost/res1 in
<iq id='b7a1dd199f602a3b45ab751b15cd4964' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2730@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-12-20 12:46:58.231 ***🔗
bob_subscribe_2730@localhost/res1 out
<iq type='set' id='39ac3d14ce50aa44264926a309efbe02'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-20 12:46:58.231 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2730@localhost/res1' id='39ac3d14ce50aa44264926a309efbe02' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-20 12:46:58.231 ***🔗
bob_subscribe_2730@localhost/res1 out
<presence/>



*** User 2023-12-20 12:46:58.232 ***🔗
bob_subscribe_2730@localhost/res1 in
<presence from='bob_subscribe_2730@localhost/res1' to='bob_subscribe_2730@localhost/res1'/>



*** User 2023-12-20 12:46:58.232 ***🔗
alice_subscribe_2730@localhost/res1 out
<iq type='set' id='dd399891d11735c37292b0542bfae196'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2730@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.238 ***🔗
alice_subscribe_2730@localhost/res1 in
<iq from='alice_subscribe_2730@localhost' to='alice_subscribe_2730@localhost/res1' id='push2f7dc5b2b3398913' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2730@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.238 ***🔗
alice_subscribe_2730@localhost/res1 in
<iq from='alice_subscribe_2730@localhost' to='alice_subscribe_2730@localhost/res1' id='dd399891d11735c37292b0542bfae196' type='result'/>



*** User 2023-12-20 12:46:58.238 ***🔗
alice_subscribe_2730@localhost/res1 out
<iq to='alice_subscribe_2730@localhost' id='push2f7dc5b2b3398913' type='result'/>



*** User 2023-12-20 12:46:58.238 ***🔗
alice_subscribe_2730@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2730@localhost'/>



*** User 2023-12-20 12:46:58.246 ***🔗
alice_subscribe_2730@localhost/res1 in
<iq from='alice_subscribe_2730@localhost' to='alice_subscribe_2730@localhost/res1' id='pushf08128765cc1f214' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2730@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.246 ***🔗
alice_subscribe_2730@localhost/res1 out
<iq to='alice_subscribe_2730@localhost' id='pushf08128765cc1f214' type='result'/>



*** User 2023-12-20 12:46:58.246 ***🔗
bob_subscribe_2730@localhost/res1 in
<presence from='alice_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' type='subscribe'/>



*** User 2023-12-20 12:46:58.246 ***🔗
bob_subscribe_2730@localhost/res1 out
<iq type='get' id='1d7b6b71515e9ecbbb9075945f77edaf'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-12-20 12:46:58.248 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='bob_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' id='1d7b6b71515e9ecbbb9075945f77edaf' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-12-20 12:46:58.248 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2730@localhost">>},
                {<<"to">>,<<"bob_subscribe_2730@localhost/res1">>},
                {<<"id">>,<<"1d7b6b71515e9ecbbb9075945f77edaf">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-12-20 12:46:58.248 ***🔗
bob_subscribe_2730@localhost/res1 out
<iq type='set' id='97e14b2489f6802a131b57243e662f0e'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2730@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.253 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='bob_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' id='pushb0d3111bd439e301' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2730@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.253 ***🔗
bob_subscribe_2730@localhost/res1 out
<iq to='bob_subscribe_2730@localhost' id='pushb0d3111bd439e301' type='result'/>



*** User 2023-12-20 12:46:58.253 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='bob_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' id='97e14b2489f6802a131b57243e662f0e' type='result'/>



*** User 2023-12-20 12:46:58.253 ***🔗
bob_subscribe_2730@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2730@localhost'/>



*** User 2023-12-20 12:46:58.306 ***🔗
alice_subscribe_2730@localhost/res1 in
<iq from='alice_subscribe_2730@localhost' to='alice_subscribe_2730@localhost/res1' id='push7d1e4856f9d591ad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2730@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.306 ***🔗
alice_subscribe_2730@localhost/res1 in
<presence from='bob_subscribe_2730@localhost' to='alice_subscribe_2730@localhost/res1' type='subscribed'/>



*** User 2023-12-20 12:46:58.306 ***🔗
alice_subscribe_2730@localhost/res1 in
<presence from='bob_subscribe_2730@localhost/res1' to='alice_subscribe_2730@localhost/res1'/>



*** User 2023-12-20 12:46:58.306 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='bob_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' id='pushd65eaa902b909844' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2730@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.307 ***🔗
bob_subscribe_2730@localhost/res1 out
<iq type='get' id='78b7b113867abbbe1a5a5dfcebe81f87'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-12-20 12:46:58.308 ***🔗
bob_subscribe_2730@localhost/res1 in
<iq from='bob_subscribe_2730@localhost' to='bob_subscribe_2730@localhost/res1' id='78b7b113867abbbe1a5a5dfcebe81f87' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2730@localhost'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-12-20 12:46:58.308 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2730@localhost">>},
             {<<"to">>,<<"bob_subscribe_2730@localhost/res1">>},
             {<<"id">>,<<"78b7b113867abbbe1a5a5dfcebe81f87">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2730@localhost">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-12-20 12:46:58.308 ***🔗
bob_subscribe_2730@localhost/res1 out
<presence/>



*** User 2023-12-20 12:46:58.309 ***🔗
alice_subscribe_2730@localhost/res1 in
<presence from='bob_subscribe_2730@localhost/res1' to='alice_subscribe_2730@localhost/res1'/>



*** User 2023-12-20 12:46:58.309 ***🔗
bob_subscribe_2730@localhost/res1 out
<presence type='unavailable'/>



*** User 2023-12-20 12:46:58.310 ***🔗
alice_subscribe_2730@localhost/res1 in
<presence from='bob_subscribe_2730@localhost/res1' to='alice_subscribe_2730@localhost/res1' type='unavailable'/>



*** User 2023-12-20 12:46:58.310 ***🔗
bob_subscribe_2730@localhost/res1 out
</stream:stream>

*** User 2023-12-20 12:46:58.310 ***🔗
bob_subscribe_2730@localhost/res1 in
</stream:stream>

*** User 2023-12-20 12:46:58.310 ***🔗
alice_subscribe_2730@localhost/res1 out
</stream:stream>

*** User 2023-12-20 12:46:58.310 ***🔗
alice_subscribe_2730@localhost/res1 in
</stream:stream>
*** CT 2023-12-20 12:46:58.319 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4766.html



=== Ended at 2023-12-20 12:46:58
=== successfully completed test case
=== === Returned value: ok