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

=== Config value:

    [{watchdog,<0.78517.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f53478984827.2024-04-24_13.07.56/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.21.31/presence_suite.subscribe.224130.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@f53478984827.2024-04-24_13.07.56/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.21.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@f53478984827.2024-04-24_13.07.56"

=== Started at 2024-04-24 13:21:33


*** CT 2024-04-24 13:21:33.324 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4578.html

*** User 2024-04-24 13:21:33.340 ***🔗
alicE_subscribe_2857@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-24 13:21:33.340 ***🔗
alicE_subscribe_2857@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71062cca92a6b14b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:21:33.341 ***🔗
alicE_subscribe_2857@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-24 13:21:33.341 ***🔗
alicE_subscribe_2857@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODU3AG1hdHlncnlzYQ==</auth>



*** User 2024-04-24 13:21:33.342 ***🔗
alicE_subscribe_2857@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:21:33.342 ***🔗
alicE_subscribe_2857@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-24 13:21:33.342 ***🔗
alicE_subscribe_2857@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='052c77e6fc63a48d' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2857@localhost'>

*** User 2024-04-24 13:21:33.342 ***🔗
alicE_subscribe_2857@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-24 13:21:33.343 ***🔗
alicE_subscribe_2857@localhost/res1 out
<iq type='set' id='992abd92a38ec1bf8bc70f441ff49b0d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:21:33.343 ***🔗
alicE_subscribe_2857@localhost/res1 in
<iq id='992abd92a38ec1bf8bc70f441ff49b0d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2857@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:21:33.343 ***🔗
alice_subscribe_2857@localhost/res1 out
<iq type='set' id='15d95090a141b75f8bd3be00280344be'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:21:33.348 ***🔗
alice_subscribe_2857@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2857@localhost/res1' id='15d95090a141b75f8bd3be00280344be' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:21:33.348 ***🔗
alice_subscribe_2857@localhost/res1 out
<presence/>



*** User 2024-04-24 13:21:33.364 ***🔗
alice_subscribe_2857@localhost/res1 in
<presence from='alice_subscribe_2857@localhost/res1' to='alice_subscribe_2857@localhost/res1'/>



*** User 2024-04-24 13:21:33.367 ***🔗
bOb_subscribe_2857@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-24 13:21:33.367 ***🔗
bOb_subscribe_2857@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='46177458703616b7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:21:33.367 ***🔗
bOb_subscribe_2857@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-24 13:21:33.368 ***🔗
bOb_subscribe_2857@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg1NwBtYWtyb2xpa2E=</auth>



*** User 2024-04-24 13:21:33.368 ***🔗
bOb_subscribe_2857@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:21:33.369 ***🔗
bOb_subscribe_2857@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-24 13:21:33.369 ***🔗
bOb_subscribe_2857@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e0cfb04803b94e7' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2857@localhost'>

*** User 2024-04-24 13:21:33.369 ***🔗
bOb_subscribe_2857@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-24 13:21:33.369 ***🔗
bOb_subscribe_2857@localhost/res1 out
<iq type='set' id='d7731d258e29a5caea319e2432709ea5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:21:33.369 ***🔗
bOb_subscribe_2857@localhost/res1 in
<iq id='d7731d258e29a5caea319e2432709ea5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2857@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:21:33.370 ***🔗
bob_subscribe_2857@localhost/res1 out
<iq type='set' id='766fe3f38f93e12c3a79308aaa67df7c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:21:33.370 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2857@localhost/res1' id='766fe3f38f93e12c3a79308aaa67df7c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:21:33.370 ***🔗
bob_subscribe_2857@localhost/res1 out
<presence/>



*** User 2024-04-24 13:21:33.372 ***🔗
bob_subscribe_2857@localhost/res1 in
<presence from='bob_subscribe_2857@localhost/res1' to='bob_subscribe_2857@localhost/res1'/>



*** User 2024-04-24 13:21:33.372 ***🔗
alice_subscribe_2857@localhost/res1 out
<iq type='set' id='acfa9b9e54da0fb2d3fa46db8d2c8c28'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2857@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.377 ***🔗
alice_subscribe_2857@localhost/res1 in
<iq from='alice_subscribe_2857@localhost' to='alice_subscribe_2857@localhost/res1' id='pushe9cb9cf0e6033cf1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2857@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.377 ***🔗
alice_subscribe_2857@localhost/res1 in
<iq from='alice_subscribe_2857@localhost' to='alice_subscribe_2857@localhost/res1' id='acfa9b9e54da0fb2d3fa46db8d2c8c28' type='result'/>



*** User 2024-04-24 13:21:33.377 ***🔗
alice_subscribe_2857@localhost/res1 out
<iq to='alice_subscribe_2857@localhost' id='pushe9cb9cf0e6033cf1' type='result'/>



*** User 2024-04-24 13:21:33.377 ***🔗
alice_subscribe_2857@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2857@localhost'/>



*** User 2024-04-24 13:21:33.384 ***🔗
alice_subscribe_2857@localhost/res1 in
<iq from='alice_subscribe_2857@localhost' to='alice_subscribe_2857@localhost/res1' id='pushd8c6fafa1e0ef4de' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2857@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.384 ***🔗
alice_subscribe_2857@localhost/res1 out
<iq to='alice_subscribe_2857@localhost' id='pushd8c6fafa1e0ef4de' type='result'/>



*** User 2024-04-24 13:21:33.385 ***🔗
bob_subscribe_2857@localhost/res1 in
<presence from='alice_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' type='subscribe'/>



*** User 2024-04-24 13:21:33.385 ***🔗
bob_subscribe_2857@localhost/res1 out
<iq type='get' id='f4d0f92c8486f3af78b635aaa62ac314'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-24 13:21:33.391 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='bob_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' id='f4d0f92c8486f3af78b635aaa62ac314' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-24 13:21:33.391 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2857@localhost">>},
                {<<"to">>,<<"bob_subscribe_2857@localhost/res1">>},
                {<<"id">>,<<"f4d0f92c8486f3af78b635aaa62ac314">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-24 13:21:33.391 ***🔗
bob_subscribe_2857@localhost/res1 out
<iq type='set' id='0a3e068a99b987b5ef3bf9cbaed58e60'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2857@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.400 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='bob_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' id='push302bbf4d2ae4e935' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2857@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.400 ***🔗
bob_subscribe_2857@localhost/res1 out
<iq to='bob_subscribe_2857@localhost' id='push302bbf4d2ae4e935' type='result'/>



*** User 2024-04-24 13:21:33.401 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='bob_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' id='0a3e068a99b987b5ef3bf9cbaed58e60' type='result'/>



*** User 2024-04-24 13:21:33.401 ***🔗
bob_subscribe_2857@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2857@localhost'/>



*** User 2024-04-24 13:21:33.408 ***🔗
alice_subscribe_2857@localhost/res1 in
<iq from='alice_subscribe_2857@localhost' to='alice_subscribe_2857@localhost/res1' id='push1ecc5d62ae316e37' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2857@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.408 ***🔗
alice_subscribe_2857@localhost/res1 in
<presence from='bob_subscribe_2857@localhost' to='alice_subscribe_2857@localhost/res1' type='subscribed'/>



*** User 2024-04-24 13:21:33.408 ***🔗
alice_subscribe_2857@localhost/res1 in
<presence from='bob_subscribe_2857@localhost/res1' to='alice_subscribe_2857@localhost/res1'/>



*** User 2024-04-24 13:21:33.408 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='bob_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' id='pushd4d5897b2b6a5ddb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2857@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.408 ***🔗
bob_subscribe_2857@localhost/res1 out
<iq type='get' id='75d12581c839e8be1930f202a5308f1e'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-24 13:21:33.410 ***🔗
bob_subscribe_2857@localhost/res1 in
<iq from='bob_subscribe_2857@localhost' to='bob_subscribe_2857@localhost/res1' id='75d12581c839e8be1930f202a5308f1e' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2857@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-24 13:21:33.410 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2857@localhost">>},
             {<<"to">>,<<"bob_subscribe_2857@localhost/res1">>},
             {<<"id">>,<<"75d12581c839e8be1930f202a5308f1e">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2857@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-24 13:21:33.410 ***🔗
bob_subscribe_2857@localhost/res1 out
<presence/>



*** User 2024-04-24 13:21:33.412 ***🔗
alice_subscribe_2857@localhost/res1 in
<presence from='bob_subscribe_2857@localhost/res1' to='alice_subscribe_2857@localhost/res1'/>



*** User 2024-04-24 13:21:33.412 ***🔗
bob_subscribe_2857@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-24 13:21:33.413 ***🔗
alice_subscribe_2857@localhost/res1 in
<presence from='bob_subscribe_2857@localhost/res1' to='alice_subscribe_2857@localhost/res1' type='unavailable'/>



*** User 2024-04-24 13:21:33.413 ***🔗
bob_subscribe_2857@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:21:33.413 ***🔗
bob_subscribe_2857@localhost/res1 in
</stream:stream>

*** User 2024-04-24 13:21:33.413 ***🔗
alice_subscribe_2857@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:21:33.414 ***🔗
alice_subscribe_2857@localhost/res1 in
</stream:stream>
*** CT 2024-04-24 13:21:33.469 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4578.html



=== Ended at 2024-04-24 13:21:33
=== successfully completed test case
=== === Returned value: ok