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

=== Config value:

    [{watchdog,<0.13358.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@05d1adc98102.2024-03-21_07.34.41/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.49.02/presence_suite.subscribe.214146.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@05d1adc98102.2024-03-21_07.34.41/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.49.02/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@05d1adc98102.2024-03-21_07.34.41"

=== Started at 2024-03-21 07:49:03


*** CT 2024-03-21 07:49:03.984 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5630.html

*** User 2024-03-21 07:49:03.997 ***🔗
alicE_subscribe_2970@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-03-21 07:49:03.997 ***🔗
alicE_subscribe_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a366783736ef92ae' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:03.997 ***🔗
alicE_subscribe_2970@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-03-21 07:49:03.997 ***🔗
alicE_subscribe_2970@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTcwAG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 07:49:03.998 ***🔗
alicE_subscribe_2970@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:03.998 ***🔗
alicE_subscribe_2970@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-03-21 07:49:03.999 ***🔗
alicE_subscribe_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e067caec235bc8fb' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2970@localhost'>

*** User 2024-03-21 07:49:03.999 ***🔗
alicE_subscribe_2970@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-03-21 07:49:03.999 ***🔗
alicE_subscribe_2970@localhost/res1 out
<iq type='set' id='f7dbd429fd450d9d6050e60440206904'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:03.999 ***🔗
alicE_subscribe_2970@localhost/res1 in
<iq id='f7dbd429fd450d9d6050e60440206904' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2970@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:03.999 ***🔗
alice_subscribe_2970@localhost/res1 out
<iq type='set' id='d350a075e550d8c7e6d8aa56d0c5b848'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:03.999 ***🔗
alice_subscribe_2970@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2970@localhost/res1' id='d350a075e550d8c7e6d8aa56d0c5b848' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:04.000 ***🔗
alice_subscribe_2970@localhost/res1 out
<presence/>



*** User 2024-03-21 07:49:04.000 ***🔗
alice_subscribe_2970@localhost/res1 in
<presence from='alice_subscribe_2970@localhost/res1' to='alice_subscribe_2970@localhost/res1'/>



*** User 2024-03-21 07:49:04.001 ***🔗
bOb_subscribe_2970@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-03-21 07:49:04.001 ***🔗
bOb_subscribe_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c794cfc179ba121' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:04.001 ***🔗
bOb_subscribe_2970@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-03-21 07:49:04.001 ***🔗
bOb_subscribe_2970@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjk3MABtYWtyb2xpa2E=</auth>



*** User 2024-03-21 07:49:04.002 ***🔗
bOb_subscribe_2970@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:04.002 ***🔗
bOb_subscribe_2970@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-03-21 07:49:04.002 ***🔗
bOb_subscribe_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2fa645edab74b7f' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2970@localhost'>

*** User 2024-03-21 07:49:04.002 ***🔗
bOb_subscribe_2970@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-03-21 07:49:04.002 ***🔗
bOb_subscribe_2970@localhost/res1 out
<iq type='set' id='95a07af3290b8992e3eb89cb5fc6c44e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:04.003 ***🔗
bOb_subscribe_2970@localhost/res1 in
<iq id='95a07af3290b8992e3eb89cb5fc6c44e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2970@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:04.003 ***🔗
bob_subscribe_2970@localhost/res1 out
<iq type='set' id='6b75593712c7e9e2ca17d701a6879eb4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:04.003 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2970@localhost/res1' id='6b75593712c7e9e2ca17d701a6879eb4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:04.003 ***🔗
bob_subscribe_2970@localhost/res1 out
<presence/>



*** User 2024-03-21 07:49:04.004 ***🔗
bob_subscribe_2970@localhost/res1 in
<presence from='bob_subscribe_2970@localhost/res1' to='bob_subscribe_2970@localhost/res1'/>



*** User 2024-03-21 07:49:04.004 ***🔗
alice_subscribe_2970@localhost/res1 out
<iq type='set' id='9c31492827497f97993da2214d42bada'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2970@localhost' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.006 ***🔗
alice_subscribe_2970@localhost/res1 in
<iq from='alice_subscribe_2970@localhost' to='alice_subscribe_2970@localhost/res1' id='push611e1593a6cc73fa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2970@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.007 ***🔗
alice_subscribe_2970@localhost/res1 in
<iq from='alice_subscribe_2970@localhost' to='alice_subscribe_2970@localhost/res1' id='9c31492827497f97993da2214d42bada' type='result'/>



*** User 2024-03-21 07:49:04.007 ***🔗
alice_subscribe_2970@localhost/res1 out
<iq to='alice_subscribe_2970@localhost' id='push611e1593a6cc73fa' type='result'/>



*** User 2024-03-21 07:49:04.007 ***🔗
alice_subscribe_2970@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2970@localhost'/>



*** User 2024-03-21 07:49:04.016 ***🔗
alice_subscribe_2970@localhost/res1 in
<iq from='alice_subscribe_2970@localhost' to='alice_subscribe_2970@localhost/res1' id='pushcc60527845ccb284' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2970@localhost' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.016 ***🔗
alice_subscribe_2970@localhost/res1 out
<iq to='alice_subscribe_2970@localhost' id='pushcc60527845ccb284' type='result'/>



*** User 2024-03-21 07:49:04.016 ***🔗
bob_subscribe_2970@localhost/res1 in
<presence from='alice_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' type='subscribe'/>



*** User 2024-03-21 07:49:04.016 ***🔗
bob_subscribe_2970@localhost/res1 out
<iq type='get' id='88cc0a89b50f850da2151ef050d3c2e9'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-21 07:49:04.020 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='bob_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' id='88cc0a89b50f850da2151ef050d3c2e9' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-21 07:49:04.020 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2970@localhost">>},
                {<<"to">>,<<"bob_subscribe_2970@localhost/res1">>},
                {<<"id">>,<<"88cc0a89b50f850da2151ef050d3c2e9">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-03-21 07:49:04.020 ***🔗
bob_subscribe_2970@localhost/res1 out
<iq type='set' id='b433b9a2e2a7a5f035aa20097d9b0b9a'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2970@localhost' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.025 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='bob_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' id='pushc9f26d1c6d013d52' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2970@localhost' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.025 ***🔗
bob_subscribe_2970@localhost/res1 out
<iq to='bob_subscribe_2970@localhost' id='pushc9f26d1c6d013d52' type='result'/>



*** User 2024-03-21 07:49:04.025 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='bob_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' id='b433b9a2e2a7a5f035aa20097d9b0b9a' type='result'/>



*** User 2024-03-21 07:49:04.025 ***🔗
bob_subscribe_2970@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2970@localhost'/>



*** User 2024-03-21 07:49:04.051 ***🔗
alice_subscribe_2970@localhost/res1 in
<iq from='alice_subscribe_2970@localhost' to='alice_subscribe_2970@localhost/res1' id='push5711ef368c99e12b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2970@localhost' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.051 ***🔗
alice_subscribe_2970@localhost/res1 in
<presence from='bob_subscribe_2970@localhost' to='alice_subscribe_2970@localhost/res1' type='subscribed'/>



*** User 2024-03-21 07:49:04.051 ***🔗
alice_subscribe_2970@localhost/res1 in
<presence from='bob_subscribe_2970@localhost/res1' to='alice_subscribe_2970@localhost/res1'/>



*** User 2024-03-21 07:49:04.051 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='bob_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' id='pusha09f5d50d99042f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2970@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.051 ***🔗
bob_subscribe_2970@localhost/res1 out
<iq type='get' id='22eeaed33c50053be4f6a51c0e5f86d9'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-03-21 07:49:04.054 ***🔗
bob_subscribe_2970@localhost/res1 in
<iq from='bob_subscribe_2970@localhost' to='bob_subscribe_2970@localhost/res1' id='22eeaed33c50053be4f6a51c0e5f86d9' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2970@localhost' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-03-21 07:49:04.054 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2970@localhost">>},
             {<<"to">>,<<"bob_subscribe_2970@localhost/res1">>},
             {<<"id">>,<<"22eeaed33c50053be4f6a51c0e5f86d9">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,<<"alice_subscribe_2970@localhost">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-03-21 07:49:04.054 ***🔗
bob_subscribe_2970@localhost/res1 out
<presence/>



*** User 2024-03-21 07:49:04.055 ***🔗
alice_subscribe_2970@localhost/res1 in
<presence from='bob_subscribe_2970@localhost/res1' to='alice_subscribe_2970@localhost/res1'/>



*** User 2024-03-21 07:49:04.055 ***🔗
bob_subscribe_2970@localhost/res1 out
<presence type='unavailable'/>



*** User 2024-03-21 07:49:04.056 ***🔗
alice_subscribe_2970@localhost/res1 in
<presence from='bob_subscribe_2970@localhost/res1' to='alice_subscribe_2970@localhost/res1' type='unavailable'/>



*** User 2024-03-21 07:49:04.056 ***🔗
bob_subscribe_2970@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:49:04.056 ***🔗
bob_subscribe_2970@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:49:04.057 ***🔗
alice_subscribe_2970@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:49:04.057 ***🔗
alice_subscribe_2970@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:49:04.064 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5630.html



=== Ended at 2024-03-21 07:49:04
=== successfully completed test case
=== === Returned value: ok