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

=== Config value:

    [{watchdog,<0.71755.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@204f21db9bdd.2024-04-10_16.27.55/big_tests.tests.presence_SUITE.logs/run.2024-04-10_16.39.13/presence_suite.subscribe.132355.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@204f21db9bdd.2024-04-10_16.27.55/big_tests.tests.presence_SUITE.logs/run.2024-04-10_16.39.13/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@204f21db9bdd.2024-04-10_16.27.55"

=== Started at 2024-04-10 16:39:15


*** CT 2024-04-10 16:39:15.365 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2291.html

*** User 2024-04-10 16:39:15.379 ***🔗
alicE_subscribe_2721@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-10 16:39:15.380 ***🔗
alicE_subscribe_2721@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b24255d30f0af26' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-10 16:39:15.380 ***🔗
alicE_subscribe_2721@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-10 16:39:15.380 ***🔗
alicE_subscribe_2721@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNzIxAG1hdHlncnlzYQ==</auth>



*** User 2024-04-10 16:39:15.381 ***🔗
alicE_subscribe_2721@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 16:39:15.381 ***🔗
alicE_subscribe_2721@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-10 16:39:15.382 ***🔗
alicE_subscribe_2721@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b3458c3b8adc115e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2721@domain.example.com'>

*** User 2024-04-10 16:39:15.382 ***🔗
alicE_subscribe_2721@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-10 16:39:15.382 ***🔗
alicE_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='624c3158e1c8e162db01b0e9c4b14654'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 16:39:15.382 ***🔗
alicE_subscribe_2721@domain.example.com/res1 in
<iq id='624c3158e1c8e162db01b0e9c4b14654' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2721@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 16:39:15.382 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='f89dd59ec2ff5ec1eb2dbc7ec204b202'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 16:39:15.383 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' id='f89dd59ec2ff5ec1eb2dbc7ec204b202' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 16:39:15.383 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<presence/>



*** User 2024-04-10 16:39:15.384 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<presence from='alice_subscribe_2721@domain.example.com/res1' to='alice_subscribe_2721@domain.example.com/res1'/>



*** User 2024-04-10 16:39:15.385 ***🔗
bOb_subscribe_2721@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-10 16:39:15.385 ***🔗
bOb_subscribe_2721@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2af135411bf92490' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-10 16:39:15.385 ***🔗
bOb_subscribe_2721@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-10 16:39:15.386 ***🔗
bOb_subscribe_2721@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjcyMQBtYWtyb2xpa2E=</auth>



*** User 2024-04-10 16:39:15.387 ***🔗
bOb_subscribe_2721@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 16:39:15.387 ***🔗
bOb_subscribe_2721@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-10 16:39:15.387 ***🔗
bOb_subscribe_2721@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25970747e414536b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2721@domain.example.com'>

*** User 2024-04-10 16:39:15.387 ***🔗
bOb_subscribe_2721@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-10 16:39:15.387 ***🔗
bOb_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='954f2a41a7a84f249cc62198ddbddf3f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 16:39:15.387 ***🔗
bOb_subscribe_2721@domain.example.com/res1 in
<iq id='954f2a41a7a84f249cc62198ddbddf3f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2721@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 16:39:15.387 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='331b5e0f90779b6b9aa52a07f4a52e87'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 16:39:15.388 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='331b5e0f90779b6b9aa52a07f4a52e87' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 16:39:15.388 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<presence/>



*** User 2024-04-10 16:39:15.390 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<presence from='bob_subscribe_2721@domain.example.com/res1' to='bob_subscribe_2721@domain.example.com/res1'/>



*** User 2024-04-10 16:39:15.390 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='87b979ae5c8341ac6643de11ece42e07'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2721@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.397 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<iq from='alice_subscribe_2721@domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' id='push15babca0e6399c50' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2721@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.398 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<iq from='alice_subscribe_2721@domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' id='87b979ae5c8341ac6643de11ece42e07' type='result'/>



*** User 2024-04-10 16:39:15.398 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<iq to='alice_subscribe_2721@domain.example.com' id='push15babca0e6399c50' type='result'/>



*** User 2024-04-10 16:39:15.398 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2721@domain.example.com'/>



*** User 2024-04-10 16:39:15.403 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<iq from='alice_subscribe_2721@domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' id='push6fbef2b28f1b480e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2721@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.403 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
<iq to='alice_subscribe_2721@domain.example.com' id='push6fbef2b28f1b480e' type='result'/>



*** User 2024-04-10 16:39:15.403 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<presence from='alice_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-10 16:39:15.403 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<iq type='get' id='60568d2e528230533d7c530c511e2aae'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 16:39:15.424 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='bob_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='60568d2e528230533d7c530c511e2aae' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 16:39:15.424 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2721@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2721@domain.example.com/res1">>},
                {<<"id">>,<<"60568d2e528230533d7c530c511e2aae">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-10 16:39:15.424 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<iq type='set' id='b63bc489f5bf22acc0c8941859a613a8'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2721@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.432 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='bob_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='pushd0f83007f029634d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2721@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.432 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<iq to='bob_subscribe_2721@domain.example.com' id='pushd0f83007f029634d' type='result'/>



*** User 2024-04-10 16:39:15.432 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='bob_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='b63bc489f5bf22acc0c8941859a613a8' type='result'/>



*** User 2024-04-10 16:39:15.432 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2721@domain.example.com'/>



*** User 2024-04-10 16:39:15.437 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<iq from='alice_subscribe_2721@domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' id='push5aae9b0992fe3973' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2721@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.438 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<presence from='bob_subscribe_2721@domain.example.com' to='alice_subscribe_2721@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-10 16:39:15.438 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<presence from='bob_subscribe_2721@domain.example.com/res1' to='alice_subscribe_2721@domain.example.com/res1'/>



*** User 2024-04-10 16:39:15.438 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='bob_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='push15172506a22cfa6e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2721@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.438 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<iq type='get' id='8839f277522cc22d52bc71b1f3bc3a64'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-10 16:39:15.446 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
<iq from='bob_subscribe_2721@domain.example.com' to='bob_subscribe_2721@domain.example.com/res1' id='8839f277522cc22d52bc71b1f3bc3a64' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2721@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-10 16:39:15.447 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2721@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2721@domain.example.com/res1">>},
             {<<"id">>,<<"8839f277522cc22d52bc71b1f3bc3a64">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2721@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-10 16:39:15.447 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<presence/>



*** User 2024-04-10 16:39:15.448 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<presence from='bob_subscribe_2721@domain.example.com/res1' to='alice_subscribe_2721@domain.example.com/res1'/>



*** User 2024-04-10 16:39:15.448 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-10 16:39:15.448 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
<presence from='bob_subscribe_2721@domain.example.com/res1' to='alice_subscribe_2721@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-10 16:39:15.449 ***🔗
bob_subscribe_2721@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-10 16:39:15.449 ***🔗
bob_subscribe_2721@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-10 16:39:15.449 ***🔗
alice_subscribe_2721@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-10 16:39:15.449 ***🔗
alice_subscribe_2721@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-10 16:39:15.457 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2291.html



=== Ended at 2024-04-10 16:39:15
=== successfully completed test case
=== === Returned value: ok