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

=== Config value:

    [{watchdog,<0.68288.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.presence_SUITE.logs/run.2023-11-14_11.54.07/presence_suite.subscribe.116996.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@a2fc54846062.2023-11-14_11.38.11/big_tests.tests.presence_SUITE.logs/run.2023-11-14_11.54.07/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@a2fc54846062.2023-11-14_11.38.11"

=== Started at 2023-11-14 11:54:08


*** CT 2023-11-14 11:54:08.919 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2509.html

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

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



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



*** User 2023-11-14 11:54:08.932 ***🔗
alicE_subscribe_3184@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-14 11:54:08.933 ***🔗
alicE_subscribe_3184@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='824a6ec45dc47e08' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_3184@domain.example.com'>

*** User 2023-11-14 11:54:08.933 ***🔗
alicE_subscribe_3184@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-14 11:54:08.933 ***🔗
alicE_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='b43ee310d0e68ef070012799ab32b808'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-14 11:54:08.933 ***🔗
alicE_subscribe_3184@domain.example.com/res1 in
<iq id='b43ee310d0e68ef070012799ab32b808' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_3184@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-14 11:54:08.934 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='56d4668060e20e6ad50b7d83f345d405'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:54:08.934 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' id='56d4668060e20e6ad50b7d83f345d405' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:54:08.934 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<presence/>



*** User 2023-11-14 11:54:08.935 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<presence from='alice_subscribe_3184@domain.example.com/res1' to='alice_subscribe_3184@domain.example.com/res1'/>



*** User 2023-11-14 11:54:08.936 ***🔗
bOb_subscribe_3184@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-14 11:54:08.936 ***🔗
bOb_subscribe_3184@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='813c9e394f0dce04' from='domain.example.com' version='1.0' xml:lang='en'>

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



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



*** User 2023-11-14 11:54:08.937 ***🔗
bOb_subscribe_3184@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-14 11:54:08.939 ***🔗
bOb_subscribe_3184@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be8d8c1f6e5040c9' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_3184@domain.example.com'>

*** User 2023-11-14 11:54:08.939 ***🔗
bOb_subscribe_3184@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-14 11:54:08.939 ***🔗
bOb_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='6f89234dd6b1c301131d22a3f2db4498'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-14 11:54:08.939 ***🔗
bOb_subscribe_3184@domain.example.com/res1 in
<iq id='6f89234dd6b1c301131d22a3f2db4498' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_3184@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-14 11:54:08.939 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='eea95e2f773e942e1b8b3be651f17715'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:54:08.940 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='eea95e2f773e942e1b8b3be651f17715' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-14 11:54:08.940 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<presence/>



*** User 2023-11-14 11:54:08.941 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<presence from='bob_subscribe_3184@domain.example.com/res1' to='bob_subscribe_3184@domain.example.com/res1'/>



*** User 2023-11-14 11:54:08.941 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='c568522e3996bfe70199fd4f264d08ea'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_3184@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.944 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<iq from='alice_subscribe_3184@domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' id='push78ac92c0149f2f73' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bobby' jid='bob_subscribe_3184@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.945 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<iq from='alice_subscribe_3184@domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' id='c568522e3996bfe70199fd4f264d08ea' type='result'/>



*** User 2023-11-14 11:54:08.945 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<iq to='alice_subscribe_3184@domain.example.com' id='push78ac92c0149f2f73' type='result'/>



*** User 2023-11-14 11:54:08.945 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_3184@domain.example.com'/>



*** User 2023-11-14 11:54:08.949 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<iq from='alice_subscribe_3184@domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' id='push3fe5b0cac0130590' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_3184@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.949 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
<iq to='alice_subscribe_3184@domain.example.com' id='push3fe5b0cac0130590' type='result'/>



*** User 2023-11-14 11:54:08.949 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<presence from='alice_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-14 11:54:08.949 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<iq type='get' id='732f6609842ac8d72010078a8ed2d0f4'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-14 11:54:08.955 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='bob_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='732f6609842ac8d72010078a8ed2d0f4' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-14 11:54:08.955 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_3184@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_3184@domain.example.com/res1">>},
                {<<"id">>,<<"732f6609842ac8d72010078a8ed2d0f4">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2023-11-14 11:54:08.955 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<iq type='set' id='d4497ae68872cb4f1c2e724d0acaf86e'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_3184@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.970 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='bob_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='push82aec8b752705a44' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alice' jid='alice_subscribe_3184@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.970 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<iq to='bob_subscribe_3184@domain.example.com' id='push82aec8b752705a44' type='result'/>



*** User 2023-11-14 11:54:08.970 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='bob_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='d4497ae68872cb4f1c2e724d0acaf86e' type='result'/>



*** User 2023-11-14 11:54:08.970 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_3184@domain.example.com'/>



*** User 2023-11-14 11:54:08.974 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<iq from='alice_subscribe_3184@domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' id='push5f41413f3228cb22' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' name='Bobby' jid='bob_subscribe_3184@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.974 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<presence from='bob_subscribe_3184@domain.example.com' to='alice_subscribe_3184@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-14 11:54:08.974 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<presence from='bob_subscribe_3184@domain.example.com/res1' to='alice_subscribe_3184@domain.example.com/res1'/>



*** User 2023-11-14 11:54:08.974 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='bob_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='push5c8531c365e06554' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_3184@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.974 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<iq type='get' id='2fc96c2cafbfdb6e416c0412fa37de5f'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2023-11-14 11:54:08.976 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
<iq from='bob_subscribe_3184@domain.example.com' to='bob_subscribe_3184@domain.example.com/res1' id='2fc96c2cafbfdb6e416c0412fa37de5f' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' name='Alice' jid='alice_subscribe_3184@domain.example.com'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2023-11-14 11:54:08.976 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_3184@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_3184@domain.example.com/res1">>},
             {<<"id">>,<<"2fc96c2cafbfdb6e416c0412fa37de5f">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"subscription">>,<<"from">>},
                       {<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_3184@domain.example.com">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2023-11-14 11:54:08.976 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<presence/>



*** User 2023-11-14 11:54:08.977 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<presence from='bob_subscribe_3184@domain.example.com/res1' to='alice_subscribe_3184@domain.example.com/res1'/>



*** User 2023-11-14 11:54:08.977 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2023-11-14 11:54:08.977 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
<presence from='bob_subscribe_3184@domain.example.com/res1' to='alice_subscribe_3184@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-14 11:54:08.978 ***🔗
bob_subscribe_3184@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-14 11:54:08.978 ***🔗
bob_subscribe_3184@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-14 11:54:08.978 ***🔗
alice_subscribe_3184@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-14 11:54:08.978 ***🔗
alice_subscribe_3184@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-14 11:54:08.988 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2509.html



=== Ended at 2023-11-14 11:54:09
=== successfully completed test case
=== === Returned value: ok