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

=== Config value:

    [{watchdog,<0.72419.0>},
     {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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.presence_SUITE.logs/run.2024-04-09_11.49.20/presence_suite.subscribe.138499.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.presence_SUITE.logs/run.2024-04-09_11.49.20/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@528a5a4ce401.2024-04-09_11.36.09"

=== Started at 2024-04-09 11:49:22


*** CT 2024-04-09 11:49:22.415 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2566.html

*** User 2024-04-09 11:49:22.433 ***🔗
alicE_subscribe_3036@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-09 11:49:22.433 ***🔗
alicE_subscribe_3036@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86403cd5b86169b2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:49:22.433 ***🔗
alicE_subscribe_3036@domain.example.com/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:49:22.433 ***🔗
alicE_subscribe_3036@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8zMDM2AG1hdHlncnlzYQ==</auth>



*** User 2024-04-09 11:49:22.434 ***🔗
alicE_subscribe_3036@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:49:22.435 ***🔗
alicE_subscribe_3036@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-09 11:49:22.437 ***🔗
alicE_subscribe_3036@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='862aa58eb79b38f6' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_3036@domain.example.com'>

*** User 2024-04-09 11:49:22.437 ***🔗
alicE_subscribe_3036@domain.example.com/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:49:22.437 ***🔗
alicE_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='28fa01bdea86128d2b5167b3654852bc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:49:22.441 ***🔗
alicE_subscribe_3036@domain.example.com/res1 in
<iq id='28fa01bdea86128d2b5167b3654852bc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_3036@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:49:22.441 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='8dfb2936f3c934cd7146bb0758a70965'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:22.442 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' id='8dfb2936f3c934cd7146bb0758a70965' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:22.442 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<presence/>



*** User 2024-04-09 11:49:22.443 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<presence from='alice_subscribe_3036@domain.example.com/res1' to='alice_subscribe_3036@domain.example.com/res1'/>



*** User 2024-04-09 11:49:22.444 ***🔗
bOb_subscribe_3036@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-09 11:49:22.445 ***🔗
bOb_subscribe_3036@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c27fbf1305c4d1c7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:49:22.445 ***🔗
bOb_subscribe_3036@domain.example.com/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:49:22.445 ***🔗
bOb_subscribe_3036@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMzAzNgBtYWtyb2xpa2E=</auth>



*** User 2024-04-09 11:49:22.446 ***🔗
bOb_subscribe_3036@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:49:22.446 ***🔗
bOb_subscribe_3036@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-09 11:49:22.447 ***🔗
bOb_subscribe_3036@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5c28ea4dc342785' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_3036@domain.example.com'>

*** User 2024-04-09 11:49:22.447 ***🔗
bOb_subscribe_3036@domain.example.com/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:49:22.447 ***🔗
bOb_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='077acfb9b8259bd9404ac87c8883e30a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:49:22.448 ***🔗
bOb_subscribe_3036@domain.example.com/res1 in
<iq id='077acfb9b8259bd9404ac87c8883e30a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_3036@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:49:22.448 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='90425a64db06ea2d39f8a1f17e579a19'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:22.448 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='90425a64db06ea2d39f8a1f17e579a19' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:22.449 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<presence/>



*** User 2024-04-09 11:49:22.450 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<presence from='bob_subscribe_3036@domain.example.com/res1' to='bob_subscribe_3036@domain.example.com/res1'/>



*** User 2024-04-09 11:49:22.450 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='6564bcade0a5201d4daf0b7d835d896a'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_3036@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.453 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<iq from='alice_subscribe_3036@domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' id='pushe6e0a6d765162bd0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3036@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.453 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<iq from='alice_subscribe_3036@domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' id='6564bcade0a5201d4daf0b7d835d896a' type='result'/>



*** User 2024-04-09 11:49:22.453 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<iq to='alice_subscribe_3036@domain.example.com' id='pushe6e0a6d765162bd0' type='result'/>



*** User 2024-04-09 11:49:22.453 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_3036@domain.example.com'/>



*** User 2024-04-09 11:49:22.458 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<iq from='alice_subscribe_3036@domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' id='push0a8f95dfaecef701' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_3036@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.458 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
<iq to='alice_subscribe_3036@domain.example.com' id='push0a8f95dfaecef701' type='result'/>



*** User 2024-04-09 11:49:22.458 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<presence from='alice_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-09 11:49:22.459 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<iq type='get' id='fcd2a037f1cc28faa62a10765facdfd0'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:49:22.475 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='bob_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='fcd2a037f1cc28faa62a10765facdfd0' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:49:22.475 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_3036@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_3036@domain.example.com/res1">>},
                {<<"id">>,<<"fcd2a037f1cc28faa62a10765facdfd0">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-09 11:49:22.475 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<iq type='set' id='bd55231f98b9dd90d3b0a7480f33d70e'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_3036@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.479 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='bob_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='push021a56fdf03de4b9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3036@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.479 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<iq to='bob_subscribe_3036@domain.example.com' id='push021a56fdf03de4b9' type='result'/>



*** User 2024-04-09 11:49:22.480 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='bob_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='bd55231f98b9dd90d3b0a7480f33d70e' type='result'/>



*** User 2024-04-09 11:49:22.480 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_3036@domain.example.com'/>



*** User 2024-04-09 11:49:22.486 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<iq from='alice_subscribe_3036@domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' id='push7a693c859b9046da' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3036@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.486 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<presence from='bob_subscribe_3036@domain.example.com' to='alice_subscribe_3036@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-09 11:49:22.487 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<presence from='bob_subscribe_3036@domain.example.com/res1' to='alice_subscribe_3036@domain.example.com/res1'/>



*** User 2024-04-09 11:49:22.487 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='bob_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='pushd7a7b0d931f0817f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3036@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.487 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<iq type='get' id='aa400fe6bc840efa7702fbe37eb5a8c1'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-09 11:49:22.496 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
<iq from='bob_subscribe_3036@domain.example.com' to='bob_subscribe_3036@domain.example.com/res1' id='aa400fe6bc840efa7702fbe37eb5a8c1' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3036@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-09 11:49:22.497 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_3036@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_3036@domain.example.com/res1">>},
             {<<"id">>,<<"aa400fe6bc840efa7702fbe37eb5a8c1">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_3036@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-09 11:49:22.497 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<presence/>



*** User 2024-04-09 11:49:22.498 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<presence from='bob_subscribe_3036@domain.example.com/res1' to='alice_subscribe_3036@domain.example.com/res1'/>



*** User 2024-04-09 11:49:22.498 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-09 11:49:22.499 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
<presence from='bob_subscribe_3036@domain.example.com/res1' to='alice_subscribe_3036@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-09 11:49:22.499 ***🔗
bob_subscribe_3036@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-09 11:49:22.499 ***🔗
bob_subscribe_3036@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-09 11:49:22.500 ***🔗
alice_subscribe_3036@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-09 11:49:22.500 ***🔗
alice_subscribe_3036@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-09 11:49:22.514 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2566.html



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