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

=== Config value:

    [{watchdog,<0.70896.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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.presence_SUITE.logs/run.2024-02-26_15.54.59/presence_suite.subscribe.92804.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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.presence_SUITE.logs/run.2024-02-26_15.54.59/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@c558b6ad2bd8.2024-02-26_15.40.27"

=== Started at 2024-02-26 15:55:01


*** CT 2024-02-26 15:55:01.313 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2559.html

*** User 2024-02-26 15:55:01.349 ***🔗
alicE_subscribe_2825@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 15:55:01.349 ***🔗
alicE_subscribe_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='420daf07a871956b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 15:55:01.350 ***🔗
alicE_subscribe_2825@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 15:55:01.350 ***🔗
alicE_subscribe_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODI1AG1hdHlncnlzYQ==</auth>



*** User 2024-02-26 15:55:01.351 ***🔗
alicE_subscribe_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 15:55:01.351 ***🔗
alicE_subscribe_2825@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 15:55:01.351 ***🔗
alicE_subscribe_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d20ba7c28eed5ac' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2825@domain.example.com'>

*** User 2024-02-26 15:55:01.351 ***🔗
alicE_subscribe_2825@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 15:55:01.351 ***🔗
alicE_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='d4792bc6c7315eded99d936b159766d5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 15:55:01.352 ***🔗
alicE_subscribe_2825@domain.example.com/res1 in
<iq id='d4792bc6c7315eded99d936b159766d5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_subscribe_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 15:55:01.352 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='8d89f85a6eb0d879de764994792c5ce9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:01.352 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' id='8d89f85a6eb0d879de764994792c5ce9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:01.352 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 15:55:01.354 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<presence from='alice_subscribe_2825@domain.example.com/res1' to='alice_subscribe_2825@domain.example.com/res1'/>



*** User 2024-02-26 15:55:01.354 ***🔗
bOb_subscribe_2825@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 15:55:01.355 ***🔗
bOb_subscribe_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4301b9e719755032' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 15:55:01.355 ***🔗
bOb_subscribe_2825@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 15:55:01.355 ***🔗
bOb_subscribe_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjgyNQBtYWtyb2xpa2E=</auth>



*** User 2024-02-26 15:55:01.356 ***🔗
bOb_subscribe_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 15:55:01.357 ***🔗
bOb_subscribe_2825@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 15:55:01.357 ***🔗
bOb_subscribe_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00929e624aed5be8' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2825@domain.example.com'>

*** User 2024-02-26 15:55:01.357 ***🔗
bOb_subscribe_2825@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 15:55:01.357 ***🔗
bOb_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='1f199bb7d065ef7e01ec3f2ec01352cd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 15:55:01.357 ***🔗
bOb_subscribe_2825@domain.example.com/res1 in
<iq id='1f199bb7d065ef7e01ec3f2ec01352cd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_subscribe_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 15:55:01.357 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='f85aa6a287254c7dc268998a273a597d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:01.358 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='f85aa6a287254c7dc268998a273a597d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:01.358 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 15:55:01.359 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<presence from='bob_subscribe_2825@domain.example.com/res1' to='bob_subscribe_2825@domain.example.com/res1'/>



*** User 2024-02-26 15:55:01.359 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='eecc2fccf3321f87ed90af3d73166e92'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_subscribe_2825@domain.example.com' name='Bobby'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.369 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<iq from='alice_subscribe_2825@domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' id='push1bd40445f31d090b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2825@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.369 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<iq from='alice_subscribe_2825@domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' id='eecc2fccf3321f87ed90af3d73166e92' type='result'/>



*** User 2024-02-26 15:55:01.369 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<iq to='alice_subscribe_2825@domain.example.com' id='push1bd40445f31d090b' type='result'/>



*** User 2024-02-26 15:55:01.369 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2825@domain.example.com'/>



*** User 2024-02-26 15:55:01.406 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<iq from='alice_subscribe_2825@domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' id='push7b11831896476650' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' ask='subscribe' jid='bob_subscribe_2825@domain.example.com' subscription='none'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.406 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
<iq to='alice_subscribe_2825@domain.example.com' id='push7b11831896476650' type='result'/>



*** User 2024-02-26 15:55:01.406 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<presence from='alice_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-26 15:55:01.406 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<iq type='get' id='23a7bb40bb679874a1c2545f565767f8'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 15:55:01.439 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='bob_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='23a7bb40bb679874a1c2545f565767f8' type='result'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 15:55:01.439 ***🔗
Roster: {xmlel,<<"iq">>,
               [{<<"from">>,<<"bob_subscribe_2825@domain.example.com">>},
                {<<"to">>,<<"bob_subscribe_2825@domain.example.com/res1">>},
                {<<"id">>,<<"23a7bb40bb679874a1c2545f565767f8">>},
                {<<"type">>,<<"result">>}],
               [{xmlel,<<"query">>,
                       [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                       []}]}

*** User 2024-02-26 15:55:01.439 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<iq type='set' id='33cd8635b8428f1b99671403c8dd3409'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_subscribe_2825@domain.example.com' name='Alice'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.478 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='bob_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='pushd69b1c7d9de4c6d6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2825@domain.example.com' subscription='none'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.478 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<iq to='bob_subscribe_2825@domain.example.com' id='pushd69b1c7d9de4c6d6' type='result'/>



*** User 2024-02-26 15:55:01.478 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='bob_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='33cd8635b8428f1b99671403c8dd3409' type='result'/>



*** User 2024-02-26 15:55:01.478 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2825@domain.example.com'/>



*** User 2024-02-26 15:55:01.545 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<iq from='alice_subscribe_2825@domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' id='pushf817062607488336' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobby' jid='bob_subscribe_2825@domain.example.com' subscription='to'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.545 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<presence from='bob_subscribe_2825@domain.example.com' to='alice_subscribe_2825@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-26 15:55:01.545 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<presence from='bob_subscribe_2825@domain.example.com/res1' to='alice_subscribe_2825@domain.example.com/res1'/>



*** User 2024-02-26 15:55:01.545 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='bob_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='pushd882f4d94f6ced83' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2825@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.545 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<iq type='get' id='a9949020a04d35c3120c6d63fb4b8894'>
	<query xmlns='jabber:iq:roster'/>
</iq>



*** User 2024-02-26 15:55:01.551 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
<iq from='bob_subscribe_2825@domain.example.com' to='bob_subscribe_2825@domain.example.com/res1' id='a9949020a04d35c3120c6d63fb4b8894' type='result'>
	<query xmlns='jabber:iq:roster'>
		<item name='Alice' jid='alice_subscribe_2825@domain.example.com' subscription='from'>
			<group>enemies</group>
		</item>
	</query>
</iq>



*** User 2024-02-26 15:55:01.552 ***🔗
Roster: {xmlel,<<"iq">>,
            [{<<"from">>,<<"bob_subscribe_2825@domain.example.com">>},
             {<<"to">>,<<"bob_subscribe_2825@domain.example.com/res1">>},
             {<<"id">>,<<"a9949020a04d35c3120c6d63fb4b8894">>},
             {<<"type">>,<<"result">>}],
            [{xmlel,<<"query">>,
                 [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                 [{xmlel,<<"item">>,
                      [{<<"name">>,<<"Alice">>},
                       {<<"jid">>,
                        <<"alice_subscribe_2825@domain.example.com">>},
                       {<<"subscription">>,<<"from">>}],
                      [{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}

*** User 2024-02-26 15:55:01.552 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 15:55:01.553 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<presence from='bob_subscribe_2825@domain.example.com/res1' to='alice_subscribe_2825@domain.example.com/res1'/>



*** User 2024-02-26 15:55:01.553 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
<presence type='unavailable'/>



*** User 2024-02-26 15:55:01.553 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
<presence from='bob_subscribe_2825@domain.example.com/res1' to='alice_subscribe_2825@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-26 15:55:01.553 ***🔗
bob_subscribe_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 15:55:01.553 ***🔗
bob_subscribe_2825@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-26 15:55:01.554 ***🔗
alice_subscribe_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 15:55:01.554 ***🔗
alice_subscribe_2825@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-26 15:55:01.563 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2559.html



=== Ended at 2024-02-26 15:55:01
=== successfully completed test case
=== === Returned value: ok