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

=== Config value:

    [{watchdog,<0.71959.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@16750ec82d36.2024-04-23_08.57.12/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.10.52/presence_suite.subscribe.99716.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@16750ec82d36.2024-04-23_08.57.12/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.10.52/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@16750ec82d36.2024-04-23_08.57.12"

=== Started at 2024-04-23 09:10:54


*** CT 2024-04-23 09:10:54.813 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2577.html

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

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



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



*** User 2024-04-23 09:10:54.830 ***🔗
alicE_subscribe_2867@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 09:10:54.830 ***🔗
alicE_subscribe_2867@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ecdde94a0244dd10' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2867@domain.example.com'>

*** User 2024-04-23 09:10:54.830 ***🔗
alicE_subscribe_2867@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 09:10:54.831 ***🔗
alicE_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='a465720303f3f115a12b4cdc93ad2683'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 09:10:54.831 ***🔗
alicE_subscribe_2867@domain.example.com/res1 in
<iq id='a465720303f3f115a12b4cdc93ad2683' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2867@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 09:10:54.831 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='943721d7e485a6c3620f50c582f17bda'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:10:54.832 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' id='943721d7e485a6c3620f50c582f17bda' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:10:54.832 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 09:10:54.833 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<presence from='alice_subscribe_2867@domain.example.com/res1' to='alice_subscribe_2867@domain.example.com/res1'/>



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

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



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



*** User 2024-04-23 09:10:54.835 ***🔗
bOb_subscribe_2867@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 09:10:54.836 ***🔗
bOb_subscribe_2867@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90cea1453eabb2ae' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2867@domain.example.com'>

*** User 2024-04-23 09:10:54.836 ***🔗
bOb_subscribe_2867@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 09:10:54.836 ***🔗
bOb_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='84f96d9817cb2a89ca6817774392350a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 09:10:54.836 ***🔗
bOb_subscribe_2867@domain.example.com/res1 in
<iq id='84f96d9817cb2a89ca6817774392350a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2867@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 09:10:54.836 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='b6bc271acff985c00db8f7e9fa1ddb2f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:10:54.837 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='b6bc271acff985c00db8f7e9fa1ddb2f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 09:10:54.837 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 09:10:54.838 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<presence from='bob_subscribe_2867@domain.example.com/res1' to='bob_subscribe_2867@domain.example.com/res1'/>



*** User 2024-04-23 09:10:54.838 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='cfb5e2f48d29cd474cc2c300c260b641'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2867@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.842 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<iq from='alice_subscribe_2867@domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' id='push2b27f0b999ae62b0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2867@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.842 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<iq from='alice_subscribe_2867@domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' id='cfb5e2f48d29cd474cc2c300c260b641' type='result'/>



*** User 2024-04-23 09:10:54.842 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<iq to='alice_subscribe_2867@domain.example.com' id='push2b27f0b999ae62b0' type='result'/>



*** User 2024-04-23 09:10:54.842 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2867@domain.example.com'/>



*** User 2024-04-23 09:10:54.863 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<iq from='alice_subscribe_2867@domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' id='pushb439bc482760a2bd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2867@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.863 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
<iq to='alice_subscribe_2867@domain.example.com' id='pushb439bc482760a2bd' type='result'/>



*** User 2024-04-23 09:10:54.864 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<presence from='alice_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 09:10:54.864 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<iq type='get' id='1c850d156aff3618e1c913a3e3e6826a'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 09:10:54.872 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='bob_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='1c850d156aff3618e1c913a3e3e6826a' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 09:10:54.873 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2867@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2867@domain.example.com/res1">>},
                {<<"id">>,<<"1c850d156aff3618e1c913a3e3e6826a">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-04-23 09:10:54.873 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<iq type='set' id='69917726073f5236ecea311793541740'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2867@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.881 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='bob_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='push785099f68db8bb84' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2867@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.881 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<iq to='bob_subscribe_2867@domain.example.com' id='push785099f68db8bb84' type='result'/>



*** User 2024-04-23 09:10:54.881 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='bob_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='69917726073f5236ecea311793541740' type='result'/>



*** User 2024-04-23 09:10:54.881 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2867@domain.example.com'/>



*** User 2024-04-23 09:10:54.889 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<iq from='alice_subscribe_2867@domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' id='push864b58f81e741d06' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2867@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.889 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<presence from='bob_subscribe_2867@domain.example.com' to='alice_subscribe_2867@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 09:10:54.889 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<presence from='bob_subscribe_2867@domain.example.com/res1' to='alice_subscribe_2867@domain.example.com/res1'/>



*** User 2024-04-23 09:10:54.889 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='bob_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='pushd1258b0741c777ed' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2867@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.889 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<iq type='get' id='8d1c50b1543364b242e9d47d094bd1bb'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-04-23 09:10:54.892 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
<iq from='bob_subscribe_2867@domain.example.com' to='bob_subscribe_2867@domain.example.com/res1' id='8d1c50b1543364b242e9d47d094bd1bb' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2867@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-04-23 09:10:54.892 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2867@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2867@domain.example.com/res1">>},
             {<<"id">>,<<"8d1c50b1543364b242e9d47d094bd1bb">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2867@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-04-23 09:10:54.892 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 09:10:54.893 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<presence from='bob_subscribe_2867@domain.example.com/res1' to='alice_subscribe_2867@domain.example.com/res1'/>



*** User 2024-04-23 09:10:54.893 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-04-23 09:10:54.894 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
<presence from='bob_subscribe_2867@domain.example.com/res1' to='alice_subscribe_2867@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 09:10:54.894 ***🔗
bob_subscribe_2867@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 09:10:54.894 ***🔗
bob_subscribe_2867@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 09:10:54.894 ***🔗
alice_subscribe_2867@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 09:10:54.894 ***🔗
alice_subscribe_2867@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-23 09:10:54.907 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2577.html



=== Ended at 2024-04-23 09:10:54
=== successfully completed test case
=== === Returned value: ok