=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.44427.0>},
{preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.presence_SUITE.logs/run.2024-02-23_08.45.21/presence_suite.subscribe.58243.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.presence_SUITE.logs/run.2024-02-23_08.45.21/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@6ebac22519b0.2024-02-23_08.34.56"
=== Started at 2024-02-23 08:45:23
*** User 2024-02-23 08:45:23.198 ***🔗
alicE_subscribe_1433@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-23 08:45:23.199 ***🔗
alicE_subscribe_1433@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b99f82581d0becf' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:45:23.199 ***🔗
alicE_subscribe_1433@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:45:23.199 ***🔗
alicE_subscribe_1433@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDMzAG1hdHlncnlzYQ==</auth>
*** User 2024-02-23 08:45:23.201 ***🔗
alicE_subscribe_1433@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:45:23.201 ***🔗
alicE_subscribe_1433@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-23 08:45:23.202 ***🔗
alicE_subscribe_1433@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5a766165d0157ff' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1433@localhost'>
*** User 2024-02-23 08:45:23.202 ***🔗
alicE_subscribe_1433@localhost/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-23 08:45:23.202 ***🔗
alicE_subscribe_1433@localhost/res1 out
<iq type='set' id='bb0f1f1c3e5a90586dffd134f245dc66'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:45:23.203 ***🔗
alicE_subscribe_1433@localhost/res1 in
<iq id='bb0f1f1c3e5a90586dffd134f245dc66' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1433@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:45:23.203 ***🔗
alice_subscribe_1433@localhost/res1 out
<iq type='set' id='bbf20f77395715c706f955e93756066f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:45:23.203 ***🔗
alice_subscribe_1433@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1433@localhost/res1' id='bbf20f77395715c706f955e93756066f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:45:23.203 ***🔗
alice_subscribe_1433@localhost/res1 out
<presence/>
*** User 2024-02-23 08:45:23.204 ***🔗
alice_subscribe_1433@localhost/res1 in
<presence from='alice_subscribe_1433@localhost/res1' to='alice_subscribe_1433@localhost/res1'/>
*** User 2024-02-23 08:45:23.204 ***🔗
bOb_subscribe_1433@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-23 08:45:23.205 ***🔗
bOb_subscribe_1433@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75fff11ef3acb072' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:45:23.205 ***🔗
bOb_subscribe_1433@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:45:23.205 ***🔗
bOb_subscribe_1433@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQzMwBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:45:23.206 ***🔗
bOb_subscribe_1433@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:45:23.207 ***🔗
bOb_subscribe_1433@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-23 08:45:23.207 ***🔗
bOb_subscribe_1433@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ded9c48f41eb70cb' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1433@localhost'>
*** User 2024-02-23 08:45:23.207 ***🔗
bOb_subscribe_1433@localhost/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-23 08:45:23.207 ***🔗
bOb_subscribe_1433@localhost/res1 out
<iq type='set' id='80cfd71e6334d25915973112498b9095'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:45:23.208 ***🔗
bOb_subscribe_1433@localhost/res1 in
<iq id='80cfd71e6334d25915973112498b9095' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1433@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:45:23.208 ***🔗
bob_subscribe_1433@localhost/res1 out
<iq type='set' id='3347df2e9f95e91f9b32910d7fac9502'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:45:23.209 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1433@localhost/res1' id='3347df2e9f95e91f9b32910d7fac9502' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:45:23.209 ***🔗
bob_subscribe_1433@localhost/res1 out
<presence/>
*** User 2024-02-23 08:45:23.209 ***🔗
bob_subscribe_1433@localhost/res1 in
<presence from='bob_subscribe_1433@localhost/res1' to='bob_subscribe_1433@localhost/res1'/>
*** User 2024-02-23 08:45:23.209 ***🔗
alice_subscribe_1433@localhost/res1 out
<iq type='set' id='a5f8205e49505746382f66b81a56133b'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1433@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.211 ***🔗
alice_subscribe_1433@localhost/res1 in
<iq from='alice_subscribe_1433@localhost' to='alice_subscribe_1433@localhost/res1' id='pushfdaab3ddbd918abf' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1433@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.211 ***🔗
alice_subscribe_1433@localhost/res1 in
<iq from='alice_subscribe_1433@localhost' to='alice_subscribe_1433@localhost/res1' id='a5f8205e49505746382f66b81a56133b' type='result'/>
*** User 2024-02-23 08:45:23.211 ***🔗
alice_subscribe_1433@localhost/res1 out
<iq to='alice_subscribe_1433@localhost' id='pushfdaab3ddbd918abf' type='result'/>
*** User 2024-02-23 08:45:23.211 ***🔗
alice_subscribe_1433@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1433@localhost'/>
*** User 2024-02-23 08:45:23.215 ***🔗
alice_subscribe_1433@localhost/res1 in
<iq from='alice_subscribe_1433@localhost' to='alice_subscribe_1433@localhost/res1' id='pushd9e056072d3a82a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1433@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.215 ***🔗
alice_subscribe_1433@localhost/res1 out
<iq to='alice_subscribe_1433@localhost' id='pushd9e056072d3a82a5' type='result'/>
*** User 2024-02-23 08:45:23.215 ***🔗
bob_subscribe_1433@localhost/res1 in
<presence from='alice_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' type='subscribe'/>
*** User 2024-02-23 08:45:23.215 ***🔗
bob_subscribe_1433@localhost/res1 out
<iq type='get' id='4080be7aee7154f6c580efb42303e39e'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 08:45:23.215 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='bob_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' id='4080be7aee7154f6c580efb42303e39e' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 08:45:23.216 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1433@localhost">>},
{<<"to">>,<<"bob_subscribe_1433@localhost/res1">>},
{<<"id">>,<<"4080be7aee7154f6c580efb42303e39e">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-02-23 08:45:23.216 ***🔗
bob_subscribe_1433@localhost/res1 out
<iq type='set' id='7ef82853ef8568c43465bc9f643ca981'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1433@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.217 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='bob_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' id='push0e28515b17b07d01' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1433@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.217 ***🔗
bob_subscribe_1433@localhost/res1 out
<iq to='bob_subscribe_1433@localhost' id='push0e28515b17b07d01' type='result'/>
*** User 2024-02-23 08:45:23.217 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='bob_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' id='7ef82853ef8568c43465bc9f643ca981' type='result'/>
*** User 2024-02-23 08:45:23.217 ***🔗
bob_subscribe_1433@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1433@localhost'/>
*** User 2024-02-23 08:45:23.220 ***🔗
alice_subscribe_1433@localhost/res1 in
<iq from='alice_subscribe_1433@localhost' to='alice_subscribe_1433@localhost/res1' id='push8bb68d0b9a8b7eac' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1433@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.220 ***🔗
alice_subscribe_1433@localhost/res1 in
<presence from='bob_subscribe_1433@localhost' to='alice_subscribe_1433@localhost/res1' type='subscribed'/>
*** User 2024-02-23 08:45:23.221 ***🔗
alice_subscribe_1433@localhost/res1 in
<presence from='bob_subscribe_1433@localhost/res1' to='alice_subscribe_1433@localhost/res1'/>
*** User 2024-02-23 08:45:23.221 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='bob_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' id='pusha68de7b3717043a7' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1433@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.221 ***🔗
bob_subscribe_1433@localhost/res1 out
<iq type='get' id='6f04ad836679128d92188cf263d07086'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 08:45:23.221 ***🔗
bob_subscribe_1433@localhost/res1 in
<iq from='bob_subscribe_1433@localhost' to='bob_subscribe_1433@localhost/res1' id='6f04ad836679128d92188cf263d07086' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1433@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 08:45:23.222 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1433@localhost">>},
{<<"to">>,<<"bob_subscribe_1433@localhost/res1">>},
{<<"id">>,<<"6f04ad836679128d92188cf263d07086">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1433@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-02-23 08:45:23.222 ***🔗
bob_subscribe_1433@localhost/res1 out
<presence/>
*** User 2024-02-23 08:45:23.222 ***🔗
alice_subscribe_1433@localhost/res1 in
<presence from='bob_subscribe_1433@localhost/res1' to='alice_subscribe_1433@localhost/res1'/>
*** User 2024-02-23 08:45:23.222 ***🔗
bob_subscribe_1433@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-02-23 08:45:23.223 ***🔗
alice_subscribe_1433@localhost/res1 in
<presence from='bob_subscribe_1433@localhost/res1' to='alice_subscribe_1433@localhost/res1' type='unavailable'/>
*** User 2024-02-23 08:45:23.223 ***🔗
bob_subscribe_1433@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:45:23.223 ***🔗
bob_subscribe_1433@localhost/res1 in
</stream:stream>
*** User 2024-02-23 08:45:23.223 ***🔗
alice_subscribe_1433@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:45:23.224 ***🔗
alice_subscribe_1433@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-23 08:45:23
=== successfully completed test case
=== === Returned value: ok