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

=== Config value:

    [{watchdog,<0.47041.0>},
     {preset,"internal_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@ef69bcf5409a.2024-04-22_14.41.23/big_tests.tests.presence_SUITE.logs/run.2024-04-22_14.54.57/presence_suite.subscribe.93570.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@ef69bcf5409a.2024-04-22_14.41.23/big_tests.tests.presence_SUITE.logs/run.2024-04-22_14.54.57/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@ef69bcf5409a.2024-04-22_14.41.23"

=== Started at 2024-04-22 14:54:59


*** CT 2024-04-22 14:54:59.344 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4423.html

*** User 2024-04-22 14:54:59.353 ***🔗
alicE_subscribe_1526@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 14:54:59.353 ***🔗
alicE_subscribe_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af5917df052881af' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 14:54:59.353 ***🔗
alicE_subscribe_1526@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 14:54:59.354 ***🔗
alicE_subscribe_1526@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNTI2AG1hdHlncnlzYQ==</auth>



*** User 2024-04-22 14:54:59.354 ***🔗
alicE_subscribe_1526@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 14:54:59.354 ***🔗
alicE_subscribe_1526@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 14:54:59.354 ***🔗
alicE_subscribe_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83da8f03a0e9b1af' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1526@localhost'>

*** User 2024-04-22 14:54:59.355 ***🔗
alicE_subscribe_1526@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 14:54:59.355 ***🔗
alicE_subscribe_1526@localhost/res1 out
<iq type='set' id='bce7e494cedcc9bc89d55929809ad0c5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 14:54:59.355 ***🔗
alicE_subscribe_1526@localhost/res1 in
<iq id='bce7e494cedcc9bc89d55929809ad0c5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_1526@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 14:54:59.355 ***🔗
alice_subscribe_1526@localhost/res1 out
<iq type='set' id='1fda2ab1de3f1d32ac0a4d5f9b999140'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:54:59.356 ***🔗
alice_subscribe_1526@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1526@localhost/res1' id='1fda2ab1de3f1d32ac0a4d5f9b999140' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:54:59.356 ***🔗
alice_subscribe_1526@localhost/res1 out
<presence/>



*** User 2024-04-22 14:54:59.356 ***🔗
alice_subscribe_1526@localhost/res1 in
<presence from='alice_subscribe_1526@localhost/res1' to='alice_subscribe_1526@localhost/res1'/>



*** User 2024-04-22 14:54:59.357 ***🔗
bOb_subscribe_1526@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 14:54:59.358 ***🔗
bOb_subscribe_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54b1e92ee1fc6033' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 14:54:59.358 ***🔗
bOb_subscribe_1526@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 14:54:59.358 ***🔗
bOb_subscribe_1526@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTUyNgBtYWtyb2xpa2E=</auth>



*** User 2024-04-22 14:54:59.358 ***🔗
bOb_subscribe_1526@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 14:54:59.359 ***🔗
bOb_subscribe_1526@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 14:54:59.359 ***🔗
bOb_subscribe_1526@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='775b30469b150066' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1526@localhost'>

*** User 2024-04-22 14:54:59.359 ***🔗
bOb_subscribe_1526@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 14:54:59.359 ***🔗
bOb_subscribe_1526@localhost/res1 out
<iq type='set' id='94b558a6c3df564caf03db139ffee49b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 14:54:59.360 ***🔗
bOb_subscribe_1526@localhost/res1 in
<iq id='94b558a6c3df564caf03db139ffee49b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_1526@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 14:54:59.360 ***🔗
bob_subscribe_1526@localhost/res1 out
<iq type='set' id='c7916cc66a20c094bf405c2435ff0a86'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:54:59.361 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1526@localhost/res1' id='c7916cc66a20c094bf405c2435ff0a86' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 14:54:59.361 ***🔗
bob_subscribe_1526@localhost/res1 out
<presence/>



*** User 2024-04-22 14:54:59.361 ***🔗
bob_subscribe_1526@localhost/res1 in
<presence from='bob_subscribe_1526@localhost/res1' to='bob_subscribe_1526@localhost/res1'/>



*** User 2024-04-22 14:54:59.362 ***🔗
alice_subscribe_1526@localhost/res1 out
<iq type='set' id='f98bb01ebf97f321f24f894f7041a73b'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_1526@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.388 ***🔗
alice_subscribe_1526@localhost/res1 in
<iq from='alice_subscribe_1526@localhost' to='alice_subscribe_1526@localhost/res1' id='push301fea82fcb37ee7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1526@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.388 ***🔗
alice_subscribe_1526@localhost/res1 in
<iq from='alice_subscribe_1526@localhost' to='alice_subscribe_1526@localhost/res1' id='f98bb01ebf97f321f24f894f7041a73b' type='result'/>



*** User 2024-04-22 14:54:59.388 ***🔗
alice_subscribe_1526@localhost/res1 out
<iq to='alice_subscribe_1526@localhost' id='push301fea82fcb37ee7' type='result'/>



*** User 2024-04-22 14:54:59.388 ***🔗
alice_subscribe_1526@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1526@localhost'/>



*** User 2024-04-22 14:54:59.390 ***🔗
alice_subscribe_1526@localhost/res1 in
<iq from='alice_subscribe_1526@localhost' to='alice_subscribe_1526@localhost/res1' id='push4804f00142cc8ee8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_1526@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.390 ***🔗
alice_subscribe_1526@localhost/res1 out
<iq to='alice_subscribe_1526@localhost' id='push4804f00142cc8ee8' type='result'/>



*** User 2024-04-22 14:54:59.390 ***🔗
bob_subscribe_1526@localhost/res1 in
<presence from='alice_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' type='subscribe'/>



*** User 2024-04-22 14:54:59.390 ***🔗
bob_subscribe_1526@localhost/res1 out
<iq type='get' id='5d7ee87cf5ae41548b7d53b3323da071'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:54:59.391 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='bob_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' id='5d7ee87cf5ae41548b7d53b3323da071' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:54:59.391 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_1526@localhost">>},
                {<<"to">>,<<"bob_subscribe_1526@localhost/res1">>},
                {<<"id">>,<<"5d7ee87cf5ae41548b7d53b3323da071">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-22 14:54:59.391 ***🔗
bob_subscribe_1526@localhost/res1 out
<iq type='set' id='b2023885816670560b177d407a30eaba'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_1526@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.392 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='bob_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' id='push4e08ae211053d353' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1526@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.392 ***🔗
bob_subscribe_1526@localhost/res1 out
<iq to='bob_subscribe_1526@localhost' id='push4e08ae211053d353' type='result'/>



*** User 2024-04-22 14:54:59.392 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='bob_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' id='b2023885816670560b177d407a30eaba' type='result'/>



*** User 2024-04-22 14:54:59.392 ***🔗
bob_subscribe_1526@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1526@localhost'/>



*** User 2024-04-22 14:54:59.394 ***🔗
alice_subscribe_1526@localhost/res1 in
<iq from='alice_subscribe_1526@localhost' to='alice_subscribe_1526@localhost/res1' id='pushf32c8b57b63ef683' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_1526@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.395 ***🔗
alice_subscribe_1526@localhost/res1 in
<presence from='bob_subscribe_1526@localhost' to='alice_subscribe_1526@localhost/res1' type='subscribed'/>



*** User 2024-04-22 14:54:59.395 ***🔗
alice_subscribe_1526@localhost/res1 in
<presence from='bob_subscribe_1526@localhost/res1' to='alice_subscribe_1526@localhost/res1'/>



*** User 2024-04-22 14:54:59.395 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='bob_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' id='pushf8a1de94bdee94d5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1526@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.395 ***🔗
bob_subscribe_1526@localhost/res1 out
<iq type='get' id='e7da6b6849ca82b39a15fad5adfcb590'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-22 14:54:59.397 ***🔗
bob_subscribe_1526@localhost/res1 in
<iq from='bob_subscribe_1526@localhost' to='bob_subscribe_1526@localhost/res1' id='e7da6b6849ca82b39a15fad5adfcb590' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_1526@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-22 14:54:59.397 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_1526@localhost">>},
             {<<"to">>,<<"bob_subscribe_1526@localhost/res1">>},
             {<<"id">>,<<"e7da6b6849ca82b39a15fad5adfcb590">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_1526@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-22 14:54:59.397 ***🔗
bob_subscribe_1526@localhost/res1 out
<presence/>



*** User 2024-04-22 14:54:59.398 ***🔗
alice_subscribe_1526@localhost/res1 in
<presence from='bob_subscribe_1526@localhost/res1' to='alice_subscribe_1526@localhost/res1'/>



*** User 2024-04-22 14:54:59.398 ***🔗
bob_subscribe_1526@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-22 14:54:59.398 ***🔗
alice_subscribe_1526@localhost/res1 in
<presence from='bob_subscribe_1526@localhost/res1' to='alice_subscribe_1526@localhost/res1' type='unavailable'/>



*** User 2024-04-22 14:54:59.398 ***🔗
bob_subscribe_1526@localhost/res1 out
</stream:stream>

*** User 2024-04-22 14:54:59.399 ***🔗
bob_subscribe_1526@localhost/res1 in
</stream:stream>

*** User 2024-04-22 14:54:59.399 ***🔗
alice_subscribe_1526@localhost/res1 out
</stream:stream>

*** User 2024-04-22 14:54:59.399 ***🔗
alice_subscribe_1526@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 14:54:59.405 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4423.html



=== Ended at 2024-04-22 14:54:59
=== successfully completed test case
=== === Returned value: ok