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

=== Config value:

    [{watchdog,<0.12971.2>},
     {preset,"pgsql_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@a3455d6f2f61.2024-04-09_11.34.59/big_tests.tests.presence_SUITE.logs/run.2024-04-09_11.48.29/presence_suite.subscribe.239234.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@a3455d6f2f61.2024-04-09_11.34.59/big_tests.tests.presence_SUITE.logs/run.2024-04-09_11.48.29/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@a3455d6f2f61.2024-04-09_11.34.59"

=== Started at 2024-04-09 11:48:31


*** CT 2024-04-09 11:48:31.354 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4720.html

*** User 2024-04-09 11:48:31.363 ***🔗
alicE_subscribe_2991@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-09 11:48:31.363 ***🔗
alicE_subscribe_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2966f66d79442b56' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:48:31.363 ***🔗
alicE_subscribe_2991@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-09 11:48:31.363 ***🔗
alicE_subscribe_2991@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTkxAG1hdHlncnlzYQ==</auth>



*** User 2024-04-09 11:48:31.364 ***🔗
alicE_subscribe_2991@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:48:31.364 ***🔗
alicE_subscribe_2991@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-09 11:48:31.364 ***🔗
alicE_subscribe_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8e285c7cdd26a36f' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2991@localhost'>

*** User 2024-04-09 11:48:31.364 ***🔗
alicE_subscribe_2991@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-09 11:48:31.365 ***🔗
alicE_subscribe_2991@localhost/res1 out
<iq type='set' id='55ad62c1f277f7a2ea20106a62583f6e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:48:31.365 ***🔗
alicE_subscribe_2991@localhost/res1 in
<iq id='55ad62c1f277f7a2ea20106a62583f6e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2991@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:48:31.365 ***🔗
alice_subscribe_2991@localhost/res1 out
<iq type='set' id='df4ef506e9dff35a2ca7d155c2441a9c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:48:31.365 ***🔗
alice_subscribe_2991@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2991@localhost/res1' id='df4ef506e9dff35a2ca7d155c2441a9c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:48:31.365 ***🔗
alice_subscribe_2991@localhost/res1 out
<presence/>



*** User 2024-04-09 11:48:31.366 ***🔗
alice_subscribe_2991@localhost/res1 in
<presence from='alice_subscribe_2991@localhost/res1' to='alice_subscribe_2991@localhost/res1'/>



*** User 2024-04-09 11:48:31.367 ***🔗
bOb_subscribe_2991@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-09 11:48:31.367 ***🔗
bOb_subscribe_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e6a1de831f7b7adc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:48:31.368 ***🔗
bOb_subscribe_2991@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-09 11:48:31.368 ***🔗
bOb_subscribe_2991@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjk5MQBtYWtyb2xpa2E=</auth>



*** User 2024-04-09 11:48:31.368 ***🔗
bOb_subscribe_2991@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:48:31.368 ***🔗
bOb_subscribe_2991@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-09 11:48:31.369 ***🔗
bOb_subscribe_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80739ad8df26bbbc' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2991@localhost'>

*** User 2024-04-09 11:48:31.369 ***🔗
bOb_subscribe_2991@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-09 11:48:31.369 ***🔗
bOb_subscribe_2991@localhost/res1 out
<iq type='set' id='46608b2e496e0c908b7f215d8cc347aa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:48:31.369 ***🔗
bOb_subscribe_2991@localhost/res1 in
<iq id='46608b2e496e0c908b7f215d8cc347aa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2991@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:48:31.369 ***🔗
bob_subscribe_2991@localhost/res1 out
<iq type='set' id='75ced63a715e46c45280a9c9eca38cfe'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:48:31.369 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2991@localhost/res1' id='75ced63a715e46c45280a9c9eca38cfe' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:48:31.369 ***🔗
bob_subscribe_2991@localhost/res1 out
<presence/>



*** User 2024-04-09 11:48:31.370 ***🔗
bob_subscribe_2991@localhost/res1 in
<presence from='bob_subscribe_2991@localhost/res1' to='bob_subscribe_2991@localhost/res1'/>



*** User 2024-04-09 11:48:31.370 ***🔗
alice_subscribe_2991@localhost/res1 out
<iq type='set' id='ef2e4b8fcbb46939f6c9cca3b4cdc994'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2991@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.377 ***🔗
alice_subscribe_2991@localhost/res1 in
<iq from='alice_subscribe_2991@localhost' to='alice_subscribe_2991@localhost/res1' id='push5ff7d698846f16af' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2991@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.377 ***🔗
alice_subscribe_2991@localhost/res1 in
<iq from='alice_subscribe_2991@localhost' to='alice_subscribe_2991@localhost/res1' id='ef2e4b8fcbb46939f6c9cca3b4cdc994' type='result'/>



*** User 2024-04-09 11:48:31.377 ***🔗
alice_subscribe_2991@localhost/res1 out
<iq to='alice_subscribe_2991@localhost' id='push5ff7d698846f16af' type='result'/>



*** User 2024-04-09 11:48:31.377 ***🔗
alice_subscribe_2991@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2991@localhost'/>



*** User 2024-04-09 11:48:31.381 ***🔗
alice_subscribe_2991@localhost/res1 in
<iq from='alice_subscribe_2991@localhost' to='alice_subscribe_2991@localhost/res1' id='push724d7dcd9bacddbf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2991@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.381 ***🔗
alice_subscribe_2991@localhost/res1 out
<iq to='alice_subscribe_2991@localhost' id='push724d7dcd9bacddbf' type='result'/>



*** User 2024-04-09 11:48:31.381 ***🔗
bob_subscribe_2991@localhost/res1 in
<presence from='alice_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' type='subscribe'/>



*** User 2024-04-09 11:48:31.381 ***🔗
bob_subscribe_2991@localhost/res1 out
<iq type='get' id='0f52c5e3d72982fc7dca5475dcbb8151'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:48:31.384 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='bob_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' id='0f52c5e3d72982fc7dca5475dcbb8151' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:48:31.384 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2991@localhost">>},
                {<<"to">>,<<"bob_subscribe_2991@localhost/res1">>},
                {<<"id">>,<<"0f52c5e3d72982fc7dca5475dcbb8151">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-09 11:48:31.384 ***🔗
bob_subscribe_2991@localhost/res1 out
<iq type='set' id='90d83b7a2e5034313aeb9fe23274912b'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2991@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.386 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='bob_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' id='push1d6a587b32595311' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2991@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.386 ***🔗
bob_subscribe_2991@localhost/res1 out
<iq to='bob_subscribe_2991@localhost' id='push1d6a587b32595311' type='result'/>



*** User 2024-04-09 11:48:31.386 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='bob_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' id='90d83b7a2e5034313aeb9fe23274912b' type='result'/>



*** User 2024-04-09 11:48:31.386 ***🔗
bob_subscribe_2991@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2991@localhost'/>



*** User 2024-04-09 11:48:31.417 ***🔗
alice_subscribe_2991@localhost/res1 in
<iq from='alice_subscribe_2991@localhost' to='alice_subscribe_2991@localhost/res1' id='pushc2b070c659e467cf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2991@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.417 ***🔗
alice_subscribe_2991@localhost/res1 in
<presence from='bob_subscribe_2991@localhost' to='alice_subscribe_2991@localhost/res1' type='subscribed'/>



*** User 2024-04-09 11:48:31.417 ***🔗
alice_subscribe_2991@localhost/res1 in
<presence from='bob_subscribe_2991@localhost/res1' to='alice_subscribe_2991@localhost/res1'/>



*** User 2024-04-09 11:48:31.417 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='bob_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' id='push398b924cee5bef72' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2991@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.417 ***🔗
bob_subscribe_2991@localhost/res1 out
<iq type='get' id='e86a2e9de75aa09d631c85d986940bdd'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:48:31.419 ***🔗
bob_subscribe_2991@localhost/res1 in
<iq from='bob_subscribe_2991@localhost' to='bob_subscribe_2991@localhost/res1' id='e86a2e9de75aa09d631c85d986940bdd' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2991@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:48:31.419 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2991@localhost">>},
             {<<"to">>,<<"bob_subscribe_2991@localhost/res1">>},
             {<<"id">>,<<"e86a2e9de75aa09d631c85d986940bdd">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2991@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-09 11:48:31.419 ***🔗
bob_subscribe_2991@localhost/res1 out
<presence/>



*** User 2024-04-09 11:48:31.420 ***🔗
alice_subscribe_2991@localhost/res1 in
<presence from='bob_subscribe_2991@localhost/res1' to='alice_subscribe_2991@localhost/res1'/>



*** User 2024-04-09 11:48:31.420 ***🔗
bob_subscribe_2991@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-04-09 11:48:31.421 ***🔗
alice_subscribe_2991@localhost/res1 in
<presence from='bob_subscribe_2991@localhost/res1' to='alice_subscribe_2991@localhost/res1' type='unavailable'/>



*** User 2024-04-09 11:48:31.421 ***🔗
bob_subscribe_2991@localhost/res1 out
</stream:stream>

*** User 2024-04-09 11:48:31.421 ***🔗
bob_subscribe_2991@localhost/res1 in
</stream:stream>

*** User 2024-04-09 11:48:31.421 ***🔗
alice_subscribe_2991@localhost/res1 out
</stream:stream>

*** User 2024-04-09 11:48:31.421 ***🔗
alice_subscribe_2991@localhost/res1 in
</stream:stream>
*** CT 2024-04-09 11:48:31.431 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4720.html



=== Ended at 2024-04-09 11:48:31
=== successfully completed test case
=== === Returned value: ok