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

=== Config value:

    [{watchdog,<0.69012.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.presence_SUITE.logs/run.2023-11-23_14.27.01/presence_suite.subscribe.186882.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.presence_SUITE.logs/run.2023-11-23_14.27.01/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@7465fd1d5a64.2023-11-23_14.13.58"

=== Started at 2023-11-23 14:27:03


*** CT 2023-11-23 14:27:03.379 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2628.html

*** User 2023-11-23 14:27:03.404 ***🔗
alicE_subscribe_2649@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 2023-11-23 14:27:03.404 ***🔗
alicE_subscribe_2649@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8e49e098dab861e5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:03.404 ***🔗
alicE_subscribe_2649@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 2023-11-23 14:27:03.404 ***🔗
alicE_subscribe_2649@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjQ5AG1hdHlncnlzYQ==</auth>



*** User 2023-11-23 14:27:03.405 ***🔗
alicE_subscribe_2649@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:03.405 ***🔗
alicE_subscribe_2649@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 2023-11-23 14:27:03.405 ***🔗
alicE_subscribe_2649@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00a08fb07ebe5156' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2649@domain.example.com'>

*** User 2023-11-23 14:27:03.405 ***🔗
alicE_subscribe_2649@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 2023-11-23 14:27:03.405 ***🔗
alicE_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='79059b4d9e54cdb3f99b8843b24d922f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:03.406 ***🔗
alicE_subscribe_2649@domain.example.com/res1 in
<iq id='79059b4d9e54cdb3f99b8843b24d922f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2649@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:03.406 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='73495e84598dae1e01bc8b92e873e549'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:03.406 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' id='73495e84598dae1e01bc8b92e873e549' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:03.407 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:03.408 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<presence from='alice_subscribe_2649@domain.example.com/res1' to='alice_subscribe_2649@domain.example.com/res1'/>



*** User 2023-11-23 14:27:03.408 ***🔗
bOb_subscribe_2649@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 2023-11-23 14:27:03.408 ***🔗
bOb_subscribe_2649@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d1ec45313cb077e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:03.409 ***🔗
bOb_subscribe_2649@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 2023-11-23 14:27:03.409 ***🔗
bOb_subscribe_2649@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjY0OQBtYWtyb2xpa2E=</auth>



*** User 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@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 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b25a9bebf25dec41' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2649@domain.example.com'>

*** User 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@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 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='75f264bfdddee64f6e38ff29ced7ace1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:03.410 ***🔗
bOb_subscribe_2649@domain.example.com/res1 in
<iq id='75f264bfdddee64f6e38ff29ced7ace1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2649@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:03.410 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='7eac48bd1e88d5a19b093e304e8735ed'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:03.411 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='7eac48bd1e88d5a19b093e304e8735ed' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:03.411 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:03.412 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<presence from='bob_subscribe_2649@domain.example.com/res1' to='bob_subscribe_2649@domain.example.com/res1'/>



*** User 2023-11-23 14:27:03.412 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='3ab7f3c89deb3ba68765775ee9499306'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2649@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.422 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<iq from='alice_subscribe_2649@domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' id='push360eb5b8fb9163c8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2649@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.422 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<iq from='alice_subscribe_2649@domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' id='3ab7f3c89deb3ba68765775ee9499306' type='result'/>



*** User 2023-11-23 14:27:03.422 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<iq to='alice_subscribe_2649@domain.example.com' id='push360eb5b8fb9163c8' type='result'/>



*** User 2023-11-23 14:27:03.422 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2649@domain.example.com'/>



*** User 2023-11-23 14:27:03.426 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<iq from='alice_subscribe_2649@domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' id='push520f8e90876484bf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2649@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.426 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
<iq to='alice_subscribe_2649@domain.example.com' id='push520f8e90876484bf' type='result'/>



*** User 2023-11-23 14:27:03.426 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<presence from='alice_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-23 14:27:03.426 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<iq type='get' id='5f0e054d160fac720ae1296c346793f9'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-23 14:27:03.431 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='bob_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='5f0e054d160fac720ae1296c346793f9' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-23 14:27:03.431 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2649@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2649@domain.example.com/res1">>},
                {<<"id">>,<<"5f0e054d160fac720ae1296c346793f9">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-23 14:27:03.431 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<iq type='set' id='e618b839d06929155b68385225d9950b'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2649@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.434 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='bob_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='push4ab3f8ea95f6a02b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2649@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.434 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<iq to='bob_subscribe_2649@domain.example.com' id='push4ab3f8ea95f6a02b' type='result'/>



*** User 2023-11-23 14:27:03.434 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='bob_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='e618b839d06929155b68385225d9950b' type='result'/>



*** User 2023-11-23 14:27:03.434 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2649@domain.example.com'/>



*** User 2023-11-23 14:27:03.439 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<iq from='alice_subscribe_2649@domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' id='pushecb9ad11538b7762' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2649@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.439 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<presence from='bob_subscribe_2649@domain.example.com' to='alice_subscribe_2649@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-23 14:27:03.439 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<presence from='bob_subscribe_2649@domain.example.com/res1' to='alice_subscribe_2649@domain.example.com/res1'/>



*** User 2023-11-23 14:27:03.439 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='bob_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='push3ffc82eb071ac8c6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2649@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.439 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<iq type='get' id='63f1f5fd44fcce56fe1ba9e57af10a55'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-23 14:27:03.467 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
<iq from='bob_subscribe_2649@domain.example.com' to='bob_subscribe_2649@domain.example.com/res1' id='63f1f5fd44fcce56fe1ba9e57af10a55' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2649@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-23 14:27:03.467 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2649@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2649@domain.example.com/res1">>},
             {<<"id">>,<<"63f1f5fd44fcce56fe1ba9e57af10a55">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2649@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-23 14:27:03.467 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:03.469 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<presence from='bob_subscribe_2649@domain.example.com/res1' to='alice_subscribe_2649@domain.example.com/res1'/>



*** User 2023-11-23 14:27:03.470 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2023-11-23 14:27:03.470 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
<presence from='bob_subscribe_2649@domain.example.com/res1' to='alice_subscribe_2649@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-23 14:27:03.470 ***🔗
bob_subscribe_2649@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:03.470 ***🔗
bob_subscribe_2649@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-23 14:27:03.470 ***🔗
alice_subscribe_2649@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:03.471 ***🔗
alice_subscribe_2649@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-23 14:27:03.477 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2628.html



=== Ended at 2023-11-23 14:27:03
=== successfully completed test case
=== === Returned value: ok