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

=== Config value:

    [{watchdog,<0.70850.0>},
     {preset,"odbc_mssql_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@6cc866ab7272.2024-02-26_21.58.45/big_tests.tests.presence_SUITE.logs/run.2024-02-26_22.13.15/presence_suite.subscribe.209410.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@6cc866ab7272.2024-02-26_21.58.45/big_tests.tests.presence_SUITE.logs/run.2024-02-26_22.13.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@6cc866ab7272.2024-02-26_21.58.45"

=== Started at 2024-02-26 22:13:17


*** CT 2024-02-26 22:13:17.681 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2590.html

*** User 2024-02-26 22:13:17.701 ***🔗
alicE_subscribe_2882@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-02-26 22:13:17.702 ***🔗
alicE_subscribe_2882@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ba8075a6d6d789cb' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 22:13:17.702 ***🔗
alicE_subscribe_2882@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-02-26 22:13:17.702 ***🔗
alicE_subscribe_2882@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODgyAG1hdHlncnlzYQ==</auth>



*** User 2024-02-26 22:13:17.703 ***🔗
alicE_subscribe_2882@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 22:13:17.703 ***🔗
alicE_subscribe_2882@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-02-26 22:13:17.704 ***🔗
alicE_subscribe_2882@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3dd386b9ccb96694' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2882@domain.example.com'>

*** User 2024-02-26 22:13:17.704 ***🔗
alicE_subscribe_2882@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-02-26 22:13:17.704 ***🔗
alicE_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='1bd056e0488627337f677dd54f21de22'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 22:13:17.704 ***🔗
alicE_subscribe_2882@domain.example.com/res1 in
<iq id='1bd056e0488627337f677dd54f21de22' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2882@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 22:13:17.704 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='b7aca01a1678b59d0cb6c7ced972cafb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 22:13:17.705 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' id='b7aca01a1678b59d0cb6c7ced972cafb' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 22:13:17.705 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 22:13:17.708 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<presence from='alice_subscribe_2882@domain.example.com/res1' to='alice_subscribe_2882@domain.example.com/res1'/>



*** User 2024-02-26 22:13:17.709 ***🔗
bOb_subscribe_2882@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-02-26 22:13:17.709 ***🔗
bOb_subscribe_2882@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e367e2ab1d3319b5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 22:13:17.709 ***🔗
bOb_subscribe_2882@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-02-26 22:13:17.709 ***🔗
bOb_subscribe_2882@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg4MgBtYWtyb2xpa2E=</auth>



*** User 2024-02-26 22:13:17.710 ***🔗
bOb_subscribe_2882@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 22:13:17.710 ***🔗
bOb_subscribe_2882@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-02-26 22:13:17.711 ***🔗
bOb_subscribe_2882@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f4e138159eeb70d1' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2882@domain.example.com'>

*** User 2024-02-26 22:13:17.711 ***🔗
bOb_subscribe_2882@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-02-26 22:13:17.711 ***🔗
bOb_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='d8958297eff3ba1779be8c6755edb7f1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 22:13:17.711 ***🔗
bOb_subscribe_2882@domain.example.com/res1 in
<iq id='d8958297eff3ba1779be8c6755edb7f1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2882@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 22:13:17.711 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='bee246d453d6142d5d4c75518593bb7b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 22:13:17.712 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='bee246d453d6142d5d4c75518593bb7b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 22:13:17.712 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 22:13:17.713 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<presence from='bob_subscribe_2882@domain.example.com/res1' to='bob_subscribe_2882@domain.example.com/res1'/>



*** User 2024-02-26 22:13:17.713 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='3a5550c173b6837c413430a041b50d66'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2882@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.727 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<iq from='alice_subscribe_2882@domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' id='push5b31f85f7a2f921c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2882@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.727 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<iq from='alice_subscribe_2882@domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' id='3a5550c173b6837c413430a041b50d66' type='result'/>



*** User 2024-02-26 22:13:17.727 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<iq to='alice_subscribe_2882@domain.example.com' id='push5b31f85f7a2f921c' type='result'/>



*** User 2024-02-26 22:13:17.727 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2882@domain.example.com'/>



*** User 2024-02-26 22:13:17.734 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<iq from='alice_subscribe_2882@domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' id='push9412d86068406852' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2882@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.734 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
<iq to='alice_subscribe_2882@domain.example.com' id='push9412d86068406852' type='result'/>



*** User 2024-02-26 22:13:17.734 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<presence from='alice_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-26 22:13:17.734 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<iq type='get' id='824134972e484883ab6b5709d57cb41d'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 22:13:17.829 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='bob_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='824134972e484883ab6b5709d57cb41d' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 22:13:17.829 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2882@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2882@domain.example.com/res1">>},
                {<<"id">>,<<"824134972e484883ab6b5709d57cb41d">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-02-26 22:13:17.830 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<iq type='set' id='457148fb9bca4127c4532db5f67a7828'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2882@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.843 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='bob_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='push236b21d599dbdb4f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2882@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.843 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<iq to='bob_subscribe_2882@domain.example.com' id='push236b21d599dbdb4f' type='result'/>



*** User 2024-02-26 22:13:17.843 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='bob_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='457148fb9bca4127c4532db5f67a7828' type='result'/>



*** User 2024-02-26 22:13:17.843 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2882@domain.example.com'/>



*** User 2024-02-26 22:13:17.867 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<iq from='alice_subscribe_2882@domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' id='pushdc88d9cbfa541e87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2882@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.867 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<presence from='bob_subscribe_2882@domain.example.com' to='alice_subscribe_2882@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-26 22:13:17.868 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<presence from='bob_subscribe_2882@domain.example.com/res1' to='alice_subscribe_2882@domain.example.com/res1'/>



*** User 2024-02-26 22:13:17.868 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='bob_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='push230d108486eb0ab7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2882@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.868 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<iq type='get' id='2272e3923ec051d2fe29c0294a782042'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 22:13:17.870 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
<iq from='bob_subscribe_2882@domain.example.com' to='bob_subscribe_2882@domain.example.com/res1' id='2272e3923ec051d2fe29c0294a782042' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2882@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 22:13:17.870 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2882@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2882@domain.example.com/res1">>},
             {<<"id">>,<<"2272e3923ec051d2fe29c0294a782042">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2882@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-02-26 22:13:17.871 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 22:13:17.872 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<presence from='bob_subscribe_2882@domain.example.com/res1' to='alice_subscribe_2882@domain.example.com/res1'/>



*** User 2024-02-26 22:13:17.872 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-02-26 22:13:17.872 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
<presence from='bob_subscribe_2882@domain.example.com/res1' to='alice_subscribe_2882@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-26 22:13:17.872 ***🔗
bob_subscribe_2882@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 22:13:17.873 ***🔗
bob_subscribe_2882@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-26 22:13:17.873 ***🔗
alice_subscribe_2882@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 22:13:17.873 ***🔗
alice_subscribe_2882@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-26 22:13:17.892 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2590.html



=== Ended at 2024-02-26 22:13:17
=== successfully completed test case
=== === Returned value: ok