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

=== Config value:

    [{watchdog,<0.45021.0>},
     {preset,"ldap_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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.presence_SUITE.logs/run.2024-04-12_09.40.00/presence_suite.subscribe.98050.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@36479f279a1b.2024-04-12_09.30.15/big_tests.tests.presence_SUITE.logs/run.2024-04-12_09.40.00/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@36479f279a1b.2024-04-12_09.30.15"

=== Started at 2024-04-12 09:40:01


*** CT 2024-04-12 09:40:01.942 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4102.html

*** User 2024-04-12 09:40:01.959 ***🔗
alicE_subscribe_1461@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-12 09:40:01.959 ***🔗
alicE_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7cb4e20d1f9284a1' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:40:01.960 ***🔗
alicE_subscribe_1461@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-12 09:40:01.960 ***🔗
alicE_subscribe_1461@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDYxAG1hdHlncnlzYQ==</auth>



*** User 2024-04-12 09:40:01.963 ***🔗
alicE_subscribe_1461@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:40:01.963 ***🔗
alicE_subscribe_1461@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-12 09:40:01.963 ***🔗
alicE_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='188c739384205069' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1461@localhost'>

*** User 2024-04-12 09:40:01.963 ***🔗
alicE_subscribe_1461@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-12 09:40:01.963 ***🔗
alicE_subscribe_1461@localhost/res1 out
<iq type='set' id='143436819070aa1787e5bd3793411be3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:40:01.963 ***🔗
alicE_subscribe_1461@localhost/res1 in
<iq id='143436819070aa1787e5bd3793411be3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_1461@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:40:01.963 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq type='set' id='7cc39b3a05857b94949ab240a7f4a171'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:40:01.964 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1461@localhost/res1' id='7cc39b3a05857b94949ab240a7f4a171' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:40:01.964 ***🔗
alice_subscribe_1461@localhost/res1 out
<presence/>



*** User 2024-04-12 09:40:01.964 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='alice_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>



*** User 2024-04-12 09:40:01.965 ***🔗
bOb_subscribe_1461@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-12 09:40:01.965 ***🔗
bOb_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a409b76f8f47e5ee' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:40:01.965 ***🔗
bOb_subscribe_1461@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-12 09:40:01.965 ***🔗
bOb_subscribe_1461@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQ2MQBtYWtyb2xpa2E=</auth>



*** User 2024-04-12 09:40:01.966 ***🔗
bOb_subscribe_1461@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:40:01.966 ***🔗
bOb_subscribe_1461@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-12 09:40:01.966 ***🔗
bOb_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6effe3e0e6c1817b' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1461@localhost'>

*** User 2024-04-12 09:40:01.966 ***🔗
bOb_subscribe_1461@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-12 09:40:01.967 ***🔗
bOb_subscribe_1461@localhost/res1 out
<iq type='set' id='48f302189bee06f7fcf2c1ae572696ca'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:40:01.967 ***🔗
bOb_subscribe_1461@localhost/res1 in
<iq id='48f302189bee06f7fcf2c1ae572696ca' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_1461@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:40:01.967 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='set' id='78171b49fb052ff1c052bc6375741b11'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:40:01.967 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1461@localhost/res1' id='78171b49fb052ff1c052bc6375741b11' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:40:01.967 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence/>



*** User 2024-04-12 09:40:01.968 ***🔗
bob_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='bob_subscribe_1461@localhost/res1'/>



*** User 2024-04-12 09:40:01.968 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq type='set' id='21c27c45419982705405c446742008fa'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_1461@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.969 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='push43bdf4e0c35fc0ca' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1461@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.969 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='21c27c45419982705405c446742008fa' type='result'/>



*** User 2024-04-12 09:40:01.969 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq to='alice_subscribe_1461@localhost' id='push43bdf4e0c35fc0ca' type='result'/>



*** User 2024-04-12 09:40:01.969 ***🔗
alice_subscribe_1461@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1461@localhost'/>



*** User 2024-04-12 09:40:01.971 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='push5a7ec4605377ac27' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_1461@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.971 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq to='alice_subscribe_1461@localhost' id='push5a7ec4605377ac27' type='result'/>



*** User 2024-04-12 09:40:01.971 ***🔗
bob_subscribe_1461@localhost/res1 in
<presence from='alice_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' type='subscribe'/>



*** User 2024-04-12 09:40:01.971 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='get' id='300a4eee8d93042368f1a04c36134ea9'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 09:40:01.971 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='300a4eee8d93042368f1a04c36134ea9' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 09:40:01.971 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_1461@localhost">>},
                {<<"to">>,<<"bob_subscribe_1461@localhost/res1">>},
                {<<"id">>,<<"300a4eee8d93042368f1a04c36134ea9">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-12 09:40:01.971 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='set' id='0b4e1e98fa3b6e6bf4945dbada01a408'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_1461@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.972 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='push5f873c878f16352e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.972 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq to='bob_subscribe_1461@localhost' id='push5f873c878f16352e' type='result'/>



*** User 2024-04-12 09:40:01.972 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='0b4e1e98fa3b6e6bf4945dbada01a408' type='result'/>



*** User 2024-04-12 09:40:01.972 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1461@localhost'/>



*** User 2024-04-12 09:40:01.974 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='pushe29b7a69dc6b0ae1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1461@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.974 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' type='subscribed'/>



*** User 2024-04-12 09:40:01.974 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>



*** User 2024-04-12 09:40:01.974 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='push82adf23405b0816c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.974 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='get' id='24414fc48b478c9255680729c508dea1'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-12 09:40:01.975 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='24414fc48b478c9255680729c508dea1' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-12 09:40:01.975 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_1461@localhost">>},
             {<<"to">>,<<"bob_subscribe_1461@localhost/res1">>},
             {<<"id">>,<<"24414fc48b478c9255680729c508dea1">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1461@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-12 09:40:01.975 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence/>



*** User 2024-04-12 09:40:01.975 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>



*** User 2024-04-12 09:40:01.975 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-12 09:40:01.976 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1' type='unavailable'/>



*** User 2024-04-12 09:40:01.976 ***🔗
bob_subscribe_1461@localhost/res1 out
</stream:stream>

*** User 2024-04-12 09:40:01.976 ***🔗
bob_subscribe_1461@localhost/res1 in
</stream:stream>

*** User 2024-04-12 09:40:01.976 ***🔗
alice_subscribe_1461@localhost/res1 out
</stream:stream>

*** User 2024-04-12 09:40:01.976 ***🔗
alice_subscribe_1461@localhost/res1 in
</stream:stream>
*** CT 2024-04-12 09:40:01.980 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4102.html



=== Ended at 2024-04-12 09:40:01
=== successfully completed test case
=== === Returned value: ok