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

=== Config value:

    [{watchdog,<0.69642.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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.presence_SUITE.logs/run.2024-01-14_19.53.15/presence_suite.subscribe.103428.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@d081adacb998.2024-01-14_19.39.56/big_tests.tests.presence_SUITE.logs/run.2024-01-14_19.53.15/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@d081adacb998.2024-01-14_19.39.56"

=== Started at 2024-01-14 19:53:17


*** CT 2024-01-14 19:53:17.268 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2631.html

*** User 2024-01-14 19:53:17.283 ***🔗
alicE_subscribe_2697@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-01-14 19:53:17.283 ***🔗
alicE_subscribe_2697@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20d6193eb2ac082a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-01-14 19:53:17.283 ***🔗
alicE_subscribe_2697@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-01-14 19:53:17.283 ***🔗
alicE_subscribe_2697@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjk3AG1hdHlncnlzYQ==</auth>



*** User 2024-01-14 19:53:17.284 ***🔗
alicE_subscribe_2697@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-14 19:53:17.285 ***🔗
alicE_subscribe_2697@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-01-14 19:53:17.285 ***🔗
alicE_subscribe_2697@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f820ac0afa5b00ef' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2697@domain.example.com'>

*** User 2024-01-14 19:53:17.285 ***🔗
alicE_subscribe_2697@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-01-14 19:53:17.285 ***🔗
alicE_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='1d683e5fa660569f8f9b450e8bbbc6d8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-14 19:53:17.285 ***🔗
alicE_subscribe_2697@domain.example.com/res1 in
<iq id='1d683e5fa660569f8f9b450e8bbbc6d8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2697@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-01-14 19:53:17.286 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='5aecfd694ac88a6d684ece702a9cee4d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:53:17.286 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' id='5aecfd694ac88a6d684ece702a9cee4d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:53:17.286 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<presence/>



*** User 2024-01-14 19:53:17.287 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<presence from='alice_subscribe_2697@domain.example.com/res1' to='alice_subscribe_2697@domain.example.com/res1'/>



*** User 2024-01-14 19:53:17.288 ***🔗
bOb_subscribe_2697@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-01-14 19:53:17.288 ***🔗
bOb_subscribe_2697@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4cfbb7c4b7d4102e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-01-14 19:53:17.289 ***🔗
bOb_subscribe_2697@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-01-14 19:53:17.289 ***🔗
bOb_subscribe_2697@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjY5NwBtYWtyb2xpa2E=</auth>



*** User 2024-01-14 19:53:17.295 ***🔗
bOb_subscribe_2697@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-14 19:53:17.295 ***🔗
bOb_subscribe_2697@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-01-14 19:53:17.295 ***🔗
bOb_subscribe_2697@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c96dc8344186d845' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2697@domain.example.com'>

*** User 2024-01-14 19:53:17.295 ***🔗
bOb_subscribe_2697@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-01-14 19:53:17.295 ***🔗
bOb_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='38c805e0a28218a7e9fd45ce365d7498'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-14 19:53:17.296 ***🔗
bOb_subscribe_2697@domain.example.com/res1 in
<iq id='38c805e0a28218a7e9fd45ce365d7498' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2697@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-01-14 19:53:17.296 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='320392c798dc16e5e1926fb2731c6bea'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:53:17.296 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='320392c798dc16e5e1926fb2731c6bea' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-14 19:53:17.296 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<presence/>



*** User 2024-01-14 19:53:17.298 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<presence from='bob_subscribe_2697@domain.example.com/res1' to='bob_subscribe_2697@domain.example.com/res1'/>



*** User 2024-01-14 19:53:17.298 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='e748db87d30a806ebbfbe14b63312b88'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2697@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.304 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<iq from='alice_subscribe_2697@domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' id='pusha308f9e9e5985055' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_2697@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.304 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<iq from='alice_subscribe_2697@domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' id='e748db87d30a806ebbfbe14b63312b88' type='result'/>



*** User 2024-01-14 19:53:17.304 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<iq to='alice_subscribe_2697@domain.example.com' id='pusha308f9e9e5985055' type='result'/>



*** User 2024-01-14 19:53:17.304 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2697@domain.example.com'/>



*** User 2024-01-14 19:53:17.321 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<iq from='alice_subscribe_2697@domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' id='push929562002c01920e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2697@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.321 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
<iq to='alice_subscribe_2697@domain.example.com' id='push929562002c01920e' type='result'/>



*** User 2024-01-14 19:53:17.321 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<presence from='alice_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' type='subscribe'/>



*** User 2024-01-14 19:53:17.321 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<iq type='get' id='200b247fd00c2c7709584e0ada405d4c'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-01-14 19:53:17.338 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='bob_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='200b247fd00c2c7709584e0ada405d4c' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-01-14 19:53:17.338 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2697@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2697@domain.example.com/res1">>},
                {<<"id">>,<<"200b247fd00c2c7709584e0ada405d4c">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-01-14 19:53:17.338 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<iq type='set' id='bf48a6bbe29b09639563dffb9f713fc5'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2697@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.343 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='bob_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='push261382c9e018845e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_2697@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.343 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<iq to='bob_subscribe_2697@domain.example.com' id='push261382c9e018845e' type='result'/>



*** User 2024-01-14 19:53:17.343 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='bob_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='bf48a6bbe29b09639563dffb9f713fc5' type='result'/>



*** User 2024-01-14 19:53:17.343 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2697@domain.example.com'/>



*** User 2024-01-14 19:53:17.353 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<iq from='alice_subscribe_2697@domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' id='push7081840bfdeec7fc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_2697@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.353 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<presence from='bob_subscribe_2697@domain.example.com' to='alice_subscribe_2697@domain.example.com/res1' type='subscribed'/>



*** User 2024-01-14 19:53:17.353 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<presence from='bob_subscribe_2697@domain.example.com/res1' to='alice_subscribe_2697@domain.example.com/res1'/>



*** User 2024-01-14 19:53:17.354 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='bob_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='pushc7bc5164fe27dc87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2697@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.354 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<iq type='get' id='a0684335f8b329059153ffb938123000'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-01-14 19:53:17.355 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
<iq from='bob_subscribe_2697@domain.example.com' to='bob_subscribe_2697@domain.example.com/res1' id='a0684335f8b329059153ffb938123000' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_2697@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-01-14 19:53:17.356 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2697@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2697@domain.example.com/res1">>},
             {<<"id">>,<<"a0684335f8b329059153ffb938123000">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2697@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-01-14 19:53:17.356 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<presence/>



*** User 2024-01-14 19:53:17.357 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<presence from='bob_subscribe_2697@domain.example.com/res1' to='alice_subscribe_2697@domain.example.com/res1'/>



*** User 2024-01-14 19:53:17.357 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-01-14 19:53:17.357 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
<presence from='bob_subscribe_2697@domain.example.com/res1' to='alice_subscribe_2697@domain.example.com/res1' type='unavailable'/>



*** User 2024-01-14 19:53:17.357 ***🔗
bob_subscribe_2697@domain.example.com/res1 out
</stream:stream>

*** User 2024-01-14 19:53:17.358 ***🔗
bob_subscribe_2697@domain.example.com/res1 in
</stream:stream>

*** User 2024-01-14 19:53:17.358 ***🔗
alice_subscribe_2697@domain.example.com/res1 out
</stream:stream>

*** User 2024-01-14 19:53:17.358 ***🔗
alice_subscribe_2697@domain.example.com/res1 in
</stream:stream>
*** CT 2024-01-14 19:53:17.369 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2631.html



=== Ended at 2024-01-14 19:53:17
=== successfully completed test case
=== === Returned value: ok