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

=== Config value:

    [{watchdog,<0.6774.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@64fc573c30dd.2024-04-25_16.15.31/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.29.04/presence_suite.subscribe.92548.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@64fc573c30dd.2024-04-25_16.15.31/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.29.04/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@64fc573c30dd.2024-04-25_16.15.31"

=== Started at 2024-04-25 16:29:06


*** CT 2024-04-25 16:29:06.225 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2563.html

*** User 2024-04-25 16:29:06.241 ***🔗
alicE_subscribe_2914@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-25 16:29:06.241 ***🔗
alicE_subscribe_2914@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec25a24e706f64b9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:06.241 ***🔗
alicE_subscribe_2914@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-25 16:29:06.242 ***🔗
alicE_subscribe_2914@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTE0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 16:29:06.242 ***🔗
alicE_subscribe_2914@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:06.243 ***🔗
alicE_subscribe_2914@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-25 16:29:06.243 ***🔗
alicE_subscribe_2914@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='63ad1176212be5f1' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2914@domain.example.com'>

*** User 2024-04-25 16:29:06.243 ***🔗
alicE_subscribe_2914@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-25 16:29:06.243 ***🔗
alicE_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='b5d5eb119c4945d13c54d5cd91f85d76'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:06.244 ***🔗
alicE_subscribe_2914@domain.example.com/res1 in
<iq id='b5d5eb119c4945d13c54d5cd91f85d76' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2914@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:06.244 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='6993ed305136d03cc5b9ffe86b40be1c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:06.244 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' id='6993ed305136d03cc5b9ffe86b40be1c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:06.244 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:06.246 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<presence from='alice_subscribe_2914@domain.example.com/res1' to='alice_subscribe_2914@domain.example.com/res1'/>



*** User 2024-04-25 16:29:06.246 ***🔗
bOb_subscribe_2914@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-25 16:29:06.247 ***🔗
bOb_subscribe_2914@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='85912564f90637dc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:06.247 ***🔗
bOb_subscribe_2914@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-25 16:29:06.247 ***🔗
bOb_subscribe_2914@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkxNABtYWtyb2xpa2E=</auth>



*** User 2024-04-25 16:29:06.248 ***🔗
bOb_subscribe_2914@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:06.248 ***🔗
bOb_subscribe_2914@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-25 16:29:06.248 ***🔗
bOb_subscribe_2914@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8d9e6c8d0da8cee' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2914@domain.example.com'>

*** User 2024-04-25 16:29:06.248 ***🔗
bOb_subscribe_2914@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-25 16:29:06.248 ***🔗
bOb_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='a884f994fc03590c89fcabab528f229e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:06.249 ***🔗
bOb_subscribe_2914@domain.example.com/res1 in
<iq id='a884f994fc03590c89fcabab528f229e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2914@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:06.249 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='8d507023c98dc8157bc72bf65f0165b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:06.249 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='8d507023c98dc8157bc72bf65f0165b7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:06.249 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:06.250 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<presence from='bob_subscribe_2914@domain.example.com/res1' to='bob_subscribe_2914@domain.example.com/res1'/>



*** User 2024-04-25 16:29:06.250 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='5ec135763311b64cff526d7816737dab'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2914@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.267 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<iq from='alice_subscribe_2914@domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' id='push40b04f3e079e757e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2914@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.267 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<iq from='alice_subscribe_2914@domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' id='5ec135763311b64cff526d7816737dab' type='result'/>



*** User 2024-04-25 16:29:06.267 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<iq to='alice_subscribe_2914@domain.example.com' id='push40b04f3e079e757e' type='result'/>



*** User 2024-04-25 16:29:06.267 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2914@domain.example.com'/>



*** User 2024-04-25 16:29:06.272 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<iq from='alice_subscribe_2914@domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' id='pushf82ae1006a630853' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2914@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.272 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
<iq to='alice_subscribe_2914@domain.example.com' id='pushf82ae1006a630853' type='result'/>



*** User 2024-04-25 16:29:06.272 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<presence from='alice_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-25 16:29:06.272 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<iq type='get' id='04fde9929813a635a7fe23601eb8a3e3'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:29:06.276 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='bob_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='04fde9929813a635a7fe23601eb8a3e3' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:29:06.276 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2914@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2914@domain.example.com/res1">>},
                {<<"id">>,<<"04fde9929813a635a7fe23601eb8a3e3">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-25 16:29:06.276 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<iq type='set' id='a6b7fa7a512cebde50e9bd67037093c4'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2914@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.280 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='bob_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='push61be2ac7d961a587' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2914@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.280 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<iq to='bob_subscribe_2914@domain.example.com' id='push61be2ac7d961a587' type='result'/>



*** User 2024-04-25 16:29:06.280 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='bob_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='a6b7fa7a512cebde50e9bd67037093c4' type='result'/>



*** User 2024-04-25 16:29:06.280 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2914@domain.example.com'/>



*** User 2024-04-25 16:29:06.284 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<iq from='alice_subscribe_2914@domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' id='push5bba1f1c65f36c2c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2914@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.284 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<presence from='bob_subscribe_2914@domain.example.com' to='alice_subscribe_2914@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-25 16:29:06.284 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<presence from='bob_subscribe_2914@domain.example.com/res1' to='alice_subscribe_2914@domain.example.com/res1'/>



*** User 2024-04-25 16:29:06.284 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='bob_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='pushac30f1ff6786e566' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2914@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.284 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<iq type='get' id='82e980c3b5a5cced808d5095e1cf44b7'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-25 16:29:06.286 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
<iq from='bob_subscribe_2914@domain.example.com' to='bob_subscribe_2914@domain.example.com/res1' id='82e980c3b5a5cced808d5095e1cf44b7' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2914@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-25 16:29:06.287 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2914@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2914@domain.example.com/res1">>},
             {<<"id">>,<<"82e980c3b5a5cced808d5095e1cf44b7">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2914@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-25 16:29:06.287 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:06.288 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<presence from='bob_subscribe_2914@domain.example.com/res1' to='alice_subscribe_2914@domain.example.com/res1'/>



*** User 2024-04-25 16:29:06.288 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-25 16:29:06.288 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
<presence from='bob_subscribe_2914@domain.example.com/res1' to='alice_subscribe_2914@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-25 16:29:06.288 ***🔗
bob_subscribe_2914@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:06.289 ***🔗
bob_subscribe_2914@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 16:29:06.289 ***🔗
alice_subscribe_2914@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:06.289 ***🔗
alice_subscribe_2914@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-25 16:29:06.298 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2563.html



=== Ended at 2024-04-25 16:29:06
=== successfully completed test case
=== === Returned value: ok