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

=== Config value:

    [{watchdog,<0.6869.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@b3c75cb3c9a2.2024-04-23_10.51.31/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.04.26/presence_suite.subscribe.227074.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@b3c75cb3c9a2.2024-04-23_10.51.31/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.04.26/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@b3c75cb3c9a2.2024-04-23_10.51.31"

=== Started at 2024-04-23 11:04:28


*** CT 2024-04-23 11:04:28.944 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2556.html

*** User 2024-04-23 11:04:28.954 ***🔗
alicE_subscribe_3085@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-23 11:04:28.954 ***🔗
alicE_subscribe_3085@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb4dc6ad02f2797e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:04:28.954 ***🔗
alicE_subscribe_3085@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-23 11:04:28.954 ***🔗
alicE_subscribe_3085@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8zMDg1AG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:04:28.955 ***🔗
alicE_subscribe_3085@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:04:28.955 ***🔗
alicE_subscribe_3085@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-23 11:04:28.955 ***🔗
alicE_subscribe_3085@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a345a891e4fe7d8' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_3085@domain.example.com'>

*** User 2024-04-23 11:04:28.955 ***🔗
alicE_subscribe_3085@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-23 11:04:28.956 ***🔗
alicE_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='9d493e088ee1bd556294a160a5ab4aa1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:04:28.956 ***🔗
alicE_subscribe_3085@domain.example.com/res1 in
<iq id='9d493e088ee1bd556294a160a5ab4aa1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_3085@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:04:28.956 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='2081699986c71d5d3d1fd8803db52c1c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:04:28.956 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' id='2081699986c71d5d3d1fd8803db52c1c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:04:28.957 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 11:04:28.958 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<presence from='alice_subscribe_3085@domain.example.com/res1' to='alice_subscribe_3085@domain.example.com/res1'/>



*** User 2024-04-23 11:04:28.958 ***🔗
bOb_subscribe_3085@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-23 11:04:28.958 ***🔗
bOb_subscribe_3085@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a70bb8dc5787993c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:04:28.958 ***🔗
bOb_subscribe_3085@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-23 11:04:28.959 ***🔗
bOb_subscribe_3085@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMzA4NQBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:04:28.959 ***🔗
bOb_subscribe_3085@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:04:28.959 ***🔗
bOb_subscribe_3085@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-23 11:04:28.960 ***🔗
bOb_subscribe_3085@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='adcad079eaf48e55' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_3085@domain.example.com'>

*** User 2024-04-23 11:04:28.960 ***🔗
bOb_subscribe_3085@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-23 11:04:28.960 ***🔗
bOb_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='4f7035eb081febb3b6a6307d142466a2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:04:28.960 ***🔗
bOb_subscribe_3085@domain.example.com/res1 in
<iq id='4f7035eb081febb3b6a6307d142466a2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_3085@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:04:28.960 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='8713c9701ed4b07fcb9a5b37cbe9ed40'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:04:28.960 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='8713c9701ed4b07fcb9a5b37cbe9ed40' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:04:28.960 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 11:04:28.961 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<presence from='bob_subscribe_3085@domain.example.com/res1' to='bob_subscribe_3085@domain.example.com/res1'/>



*** User 2024-04-23 11:04:28.961 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='1b73d0012c1d0d5065c176bc4a0519b6'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_3085@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.967 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<iq from='alice_subscribe_3085@domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' id='push2d8c70c7f6b74489' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3085@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.967 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<iq from='alice_subscribe_3085@domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' id='1b73d0012c1d0d5065c176bc4a0519b6' type='result'/>



*** User 2024-04-23 11:04:28.967 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<iq to='alice_subscribe_3085@domain.example.com' id='push2d8c70c7f6b74489' type='result'/>



*** User 2024-04-23 11:04:28.967 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_3085@domain.example.com'/>



*** User 2024-04-23 11:04:28.971 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<iq from='alice_subscribe_3085@domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' id='push53c609bceef39b3f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_3085@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.971 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
<iq to='alice_subscribe_3085@domain.example.com' id='push53c609bceef39b3f' type='result'/>



*** User 2024-04-23 11:04:28.971 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<presence from='alice_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 11:04:28.971 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<iq type='get' id='e09b59bfbd37dbcb85d612b35642b3fa'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:04:28.974 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='bob_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='e09b59bfbd37dbcb85d612b35642b3fa' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:04:28.974 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_3085@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_3085@domain.example.com/res1">>},
                {<<"id">>,<<"e09b59bfbd37dbcb85d612b35642b3fa">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-23 11:04:28.974 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<iq type='set' id='f8ad725c941c49d3021aec4269b43214'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_3085@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.978 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='bob_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='pushecf0a0eeb910303b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3085@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.978 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<iq to='bob_subscribe_3085@domain.example.com' id='pushecf0a0eeb910303b' type='result'/>



*** User 2024-04-23 11:04:28.979 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='bob_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='f8ad725c941c49d3021aec4269b43214' type='result'/>



*** User 2024-04-23 11:04:28.979 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_3085@domain.example.com'/>



*** User 2024-04-23 11:04:28.982 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<iq from='alice_subscribe_3085@domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' id='push8e385dca1b651ad1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_3085@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.982 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<presence from='bob_subscribe_3085@domain.example.com' to='alice_subscribe_3085@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 11:04:28.982 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<presence from='bob_subscribe_3085@domain.example.com/res1' to='alice_subscribe_3085@domain.example.com/res1'/>



*** User 2024-04-23 11:04:28.982 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='bob_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='push4a0eabba9fd4bb26' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3085@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.982 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<iq type='get' id='43df69ccf00f0f95e92fc1981764e012'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 11:04:28.983 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
<iq from='bob_subscribe_3085@domain.example.com' to='bob_subscribe_3085@domain.example.com/res1' id='43df69ccf00f0f95e92fc1981764e012' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_3085@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 11:04:28.984 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_3085@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_3085@domain.example.com/res1">>},
             {<<"id">>,<<"43df69ccf00f0f95e92fc1981764e012">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_3085@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-23 11:04:28.984 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 11:04:28.985 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<presence from='bob_subscribe_3085@domain.example.com/res1' to='alice_subscribe_3085@domain.example.com/res1'/>



*** User 2024-04-23 11:04:28.985 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-23 11:04:28.985 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
<presence from='bob_subscribe_3085@domain.example.com/res1' to='alice_subscribe_3085@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 11:04:28.985 ***🔗
bob_subscribe_3085@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 11:04:28.985 ***🔗
bob_subscribe_3085@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 11:04:28.986 ***🔗
alice_subscribe_3085@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 11:04:28.986 ***🔗
alice_subscribe_3085@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-23 11:04:28.994 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2556.html



=== Ended at 2024-04-23 11:04:29
=== successfully completed test case
=== === Returned value: ok