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

=== Config value:

    [{watchdog,<0.80030.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@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.presence_SUITE.logs/run.2024-04-22_17.43.03/presence_suite.subscribe.119812.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@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.presence_SUITE.logs/run.2024-04-22_17.43.03/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@cec807ac1e64.2024-04-22_17.28.38"

=== Started at 2024-04-22 17:43:05


*** CT 2024-04-22 17:43:05.670 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5624.html

*** User 2024-04-22 17:43:05.688 ***🔗
alicE_subscribe_2883@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-22 17:43:05.688 ***🔗
alicE_subscribe_2883@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b43bf07a7b308990' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:43:05.688 ***🔗
alicE_subscribe_2883@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-22 17:43:05.688 ***🔗
alicE_subscribe_2883@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODgzAG1hdHlncnlzYQ==</auth>



*** User 2024-04-22 17:43:05.689 ***🔗
alicE_subscribe_2883@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:43:05.689 ***🔗
alicE_subscribe_2883@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-22 17:43:05.689 ***🔗
alicE_subscribe_2883@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6a161833f12ea0f' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2883@localhost'>

*** User 2024-04-22 17:43:05.689 ***🔗
alicE_subscribe_2883@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-22 17:43:05.689 ***🔗
alicE_subscribe_2883@localhost/res1 out
<iq type='set' id='d100e3e8c4e7a73eb443d56829678022'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:43:05.690 ***🔗
alicE_subscribe_2883@localhost/res1 in
<iq id='d100e3e8c4e7a73eb443d56829678022' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2883@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:43:05.690 ***🔗
alice_subscribe_2883@localhost/res1 out
<iq type='set' id='8ac28eeaf75c296126c1f32b8e3db58f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:05.691 ***🔗
alice_subscribe_2883@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2883@localhost/res1' id='8ac28eeaf75c296126c1f32b8e3db58f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:05.691 ***🔗
alice_subscribe_2883@localhost/res1 out
<presence/>



*** User 2024-04-22 17:43:05.692 ***🔗
alice_subscribe_2883@localhost/res1 in
<presence from='alice_subscribe_2883@localhost/res1' to='alice_subscribe_2883@localhost/res1'/>



*** User 2024-04-22 17:43:05.692 ***🔗
bOb_subscribe_2883@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-22 17:43:05.693 ***🔗
bOb_subscribe_2883@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c37038bd4760f9af' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:43:05.693 ***🔗
bOb_subscribe_2883@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-22 17:43:05.693 ***🔗
bOb_subscribe_2883@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg4MwBtYWtyb2xpa2E=</auth>



*** User 2024-04-22 17:43:05.694 ***🔗
bOb_subscribe_2883@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:43:05.694 ***🔗
bOb_subscribe_2883@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-22 17:43:05.694 ***🔗
bOb_subscribe_2883@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='426051cbc5465fee' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2883@localhost'>

*** User 2024-04-22 17:43:05.694 ***🔗
bOb_subscribe_2883@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-22 17:43:05.694 ***🔗
bOb_subscribe_2883@localhost/res1 out
<iq type='set' id='88687eed6c7f115734f43c132c9dc113'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:43:05.695 ***🔗
bOb_subscribe_2883@localhost/res1 in
<iq id='88687eed6c7f115734f43c132c9dc113' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2883@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:43:05.695 ***🔗
bob_subscribe_2883@localhost/res1 out
<iq type='set' id='944daa2d194b630a356117565a8c9452'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:05.695 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2883@localhost/res1' id='944daa2d194b630a356117565a8c9452' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:05.696 ***🔗
bob_subscribe_2883@localhost/res1 out
<presence/>



*** User 2024-04-22 17:43:05.697 ***🔗
bob_subscribe_2883@localhost/res1 in
<presence from='bob_subscribe_2883@localhost/res1' to='bob_subscribe_2883@localhost/res1'/>



*** User 2024-04-22 17:43:05.697 ***🔗
alice_subscribe_2883@localhost/res1 out
<iq type='set' id='af2e7e7c8c009c77af8b4265f55582d1'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2883@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.702 ***🔗
alice_subscribe_2883@localhost/res1 in
<iq from='alice_subscribe_2883@localhost' to='alice_subscribe_2883@localhost/res1' id='push23ae54c896e57b74' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2883@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.702 ***🔗
alice_subscribe_2883@localhost/res1 in
<iq from='alice_subscribe_2883@localhost' to='alice_subscribe_2883@localhost/res1' id='af2e7e7c8c009c77af8b4265f55582d1' type='result'/>



*** User 2024-04-22 17:43:05.703 ***🔗
alice_subscribe_2883@localhost/res1 out
<iq to='alice_subscribe_2883@localhost' id='push23ae54c896e57b74' type='result'/>



*** User 2024-04-22 17:43:05.703 ***🔗
alice_subscribe_2883@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2883@localhost'/>



*** User 2024-04-22 17:43:05.713 ***🔗
alice_subscribe_2883@localhost/res1 in
<iq from='alice_subscribe_2883@localhost' to='alice_subscribe_2883@localhost/res1' id='push3c0b11cd27e8ddf5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2883@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.713 ***🔗
alice_subscribe_2883@localhost/res1 out
<iq to='alice_subscribe_2883@localhost' id='push3c0b11cd27e8ddf5' type='result'/>



*** User 2024-04-22 17:43:05.713 ***🔗
bob_subscribe_2883@localhost/res1 in
<presence from='alice_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' type='subscribe'/>



*** User 2024-04-22 17:43:05.713 ***🔗
bob_subscribe_2883@localhost/res1 out
<iq type='get' id='3a9e5967193467d1e156a3540ca2cf33'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 17:43:05.720 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='bob_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' id='3a9e5967193467d1e156a3540ca2cf33' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 17:43:05.720 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2883@localhost">>},
                {<<"to">>,<<"bob_subscribe_2883@localhost/res1">>},
                {<<"id">>,<<"3a9e5967193467d1e156a3540ca2cf33">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-22 17:43:05.720 ***🔗
bob_subscribe_2883@localhost/res1 out
<iq type='set' id='002a2ba1599ec3ed47a4d25c6f8d3889'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2883@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.749 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='bob_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' id='pushf82bd29f4c05273f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2883@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.749 ***🔗
bob_subscribe_2883@localhost/res1 out
<iq to='bob_subscribe_2883@localhost' id='pushf82bd29f4c05273f' type='result'/>



*** User 2024-04-22 17:43:05.749 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='bob_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' id='002a2ba1599ec3ed47a4d25c6f8d3889' type='result'/>



*** User 2024-04-22 17:43:05.749 ***🔗
bob_subscribe_2883@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2883@localhost'/>



*** User 2024-04-22 17:43:05.755 ***🔗
alice_subscribe_2883@localhost/res1 in
<iq from='alice_subscribe_2883@localhost' to='alice_subscribe_2883@localhost/res1' id='push3dee7ba65bd90f78' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2883@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.755 ***🔗
alice_subscribe_2883@localhost/res1 in
<presence from='bob_subscribe_2883@localhost' to='alice_subscribe_2883@localhost/res1' type='subscribed'/>



*** User 2024-04-22 17:43:05.755 ***🔗
alice_subscribe_2883@localhost/res1 in
<presence from='bob_subscribe_2883@localhost/res1' to='alice_subscribe_2883@localhost/res1'/>



*** User 2024-04-22 17:43:05.755 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='bob_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' id='push6e4f3bca3ffa3848' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2883@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.755 ***🔗
bob_subscribe_2883@localhost/res1 out
<iq type='get' id='b837462dfa6b8313d3e91e58c4066700'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 17:43:05.759 ***🔗
bob_subscribe_2883@localhost/res1 in
<iq from='bob_subscribe_2883@localhost' to='bob_subscribe_2883@localhost/res1' id='b837462dfa6b8313d3e91e58c4066700' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2883@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 17:43:05.759 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2883@localhost">>},
             {<<"to">>,<<"bob_subscribe_2883@localhost/res1">>},
             {<<"id">>,<<"b837462dfa6b8313d3e91e58c4066700">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2883@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-22 17:43:05.759 ***🔗
bob_subscribe_2883@localhost/res1 out
<presence/>



*** User 2024-04-22 17:43:05.761 ***🔗
alice_subscribe_2883@localhost/res1 in
<presence from='bob_subscribe_2883@localhost/res1' to='alice_subscribe_2883@localhost/res1'/>



*** User 2024-04-22 17:43:05.761 ***🔗
bob_subscribe_2883@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-22 17:43:05.762 ***🔗
alice_subscribe_2883@localhost/res1 in
<presence from='bob_subscribe_2883@localhost/res1' to='alice_subscribe_2883@localhost/res1' type='unavailable'/>



*** User 2024-04-22 17:43:05.762 ***🔗
bob_subscribe_2883@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:43:05.762 ***🔗
bob_subscribe_2883@localhost/res1 in
</stream:stream>

*** User 2024-04-22 17:43:05.762 ***🔗
alice_subscribe_2883@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:43:05.763 ***🔗
alice_subscribe_2883@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 17:43:05.771 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5624.html



=== Ended at 2024-04-22 17:43:05
=== successfully completed test case
=== === Returned value: ok