=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11749.1>},
{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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.27.05/presence_suite.subscribe.28932.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@85680c760e4e.2024-04-25_16.15.48/big_tests.tests.presence_SUITE.logs/run.2024-04-25_16.27.05/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@85680c760e4e.2024-04-25_16.15.48"
=== Started at 2024-04-25 16:27:06
*** User 2024-04-25 16:27:07.047 ***🔗
alicE_subscribe_1465@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-04-25 16:27:07.048 ***🔗
alicE_subscribe_1465@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd7c3f2948394012' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 16:27:07.048 ***🔗
alicE_subscribe_1465@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-04-25 16:27:07.048 ***🔗
alicE_subscribe_1465@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDY1AG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 16:27:07.049 ***🔗
alicE_subscribe_1465@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 16:27:07.049 ***🔗
alicE_subscribe_1465@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-04-25 16:27:07.049 ***🔗
alicE_subscribe_1465@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f17b8a3c0a3ecb6' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1465@localhost'>
*** User 2024-04-25 16:27:07.049 ***🔗
alicE_subscribe_1465@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-04-25 16:27:07.050 ***🔗
alicE_subscribe_1465@localhost/res1 out
<iq type='set' id='97cb739c17986886d8d6be28a220de4d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 16:27:07.050 ***🔗
alicE_subscribe_1465@localhost/res1 in
<iq id='97cb739c17986886d8d6be28a220de4d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1465@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 16:27:07.050 ***🔗
alice_subscribe_1465@localhost/res1 out
<iq type='set' id='ce47ab4aa6a899f90304608990aa977e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 16:27:07.050 ***🔗
alice_subscribe_1465@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1465@localhost/res1' id='ce47ab4aa6a899f90304608990aa977e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 16:27:07.051 ***🔗
alice_subscribe_1465@localhost/res1 out
<presence/>
*** User 2024-04-25 16:27:07.051 ***🔗
alice_subscribe_1465@localhost/res1 in
<presence from='alice_subscribe_1465@localhost/res1' to='alice_subscribe_1465@localhost/res1'/>
*** User 2024-04-25 16:27:07.052 ***🔗
bOb_subscribe_1465@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-04-25 16:27:07.052 ***🔗
bOb_subscribe_1465@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0efd13c642b3fcc9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 16:27:07.052 ***🔗
bOb_subscribe_1465@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-04-25 16:27:07.052 ***🔗
bOb_subscribe_1465@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQ2NQBtYWtyb2xpa2E=</auth>
*** User 2024-04-25 16:27:07.053 ***🔗
bOb_subscribe_1465@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 16:27:07.054 ***🔗
bOb_subscribe_1465@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-04-25 16:27:07.054 ***🔗
bOb_subscribe_1465@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='78babbe655342862' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1465@localhost'>
*** User 2024-04-25 16:27:07.054 ***🔗
bOb_subscribe_1465@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-04-25 16:27:07.054 ***🔗
bOb_subscribe_1465@localhost/res1 out
<iq type='set' id='cfaf27989d8012f9cd793b0d01c03fea'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 16:27:07.054 ***🔗
bOb_subscribe_1465@localhost/res1 in
<iq id='cfaf27989d8012f9cd793b0d01c03fea' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1465@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 16:27:07.054 ***🔗
bob_subscribe_1465@localhost/res1 out
<iq type='set' id='dc73fa400f87702de00c8fdceb7a14d0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 16:27:07.055 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1465@localhost/res1' id='dc73fa400f87702de00c8fdceb7a14d0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 16:27:07.055 ***🔗
bob_subscribe_1465@localhost/res1 out
<presence/>
*** User 2024-04-25 16:27:07.055 ***🔗
bob_subscribe_1465@localhost/res1 in
<presence from='bob_subscribe_1465@localhost/res1' to='bob_subscribe_1465@localhost/res1'/>
*** User 2024-04-25 16:27:07.055 ***🔗
alice_subscribe_1465@localhost/res1 out
<iq type='set' id='463fcfc168c4328a9757b32fec4dc04e'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1465@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.056 ***🔗
alice_subscribe_1465@localhost/res1 in
<iq from='alice_subscribe_1465@localhost' to='alice_subscribe_1465@localhost/res1' id='pushad3acaaf4cee6b22' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1465@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.056 ***🔗
alice_subscribe_1465@localhost/res1 in
<iq from='alice_subscribe_1465@localhost' to='alice_subscribe_1465@localhost/res1' id='463fcfc168c4328a9757b32fec4dc04e' type='result'/>
*** User 2024-04-25 16:27:07.056 ***🔗
alice_subscribe_1465@localhost/res1 out
<iq to='alice_subscribe_1465@localhost' id='pushad3acaaf4cee6b22' type='result'/>
*** User 2024-04-25 16:27:07.056 ***🔗
alice_subscribe_1465@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1465@localhost'/>
*** User 2024-04-25 16:27:07.058 ***🔗
alice_subscribe_1465@localhost/res1 in
<iq from='alice_subscribe_1465@localhost' to='alice_subscribe_1465@localhost/res1' id='pushf2013f441df34acc' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1465@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.058 ***🔗
alice_subscribe_1465@localhost/res1 out
<iq to='alice_subscribe_1465@localhost' id='pushf2013f441df34acc' type='result'/>
*** User 2024-04-25 16:27:07.058 ***🔗
bob_subscribe_1465@localhost/res1 in
<presence from='alice_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' type='subscribe'/>
*** User 2024-04-25 16:27:07.058 ***🔗
bob_subscribe_1465@localhost/res1 out
<iq type='get' id='c48da82522332cf97dedc00a173af143'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-25 16:27:07.059 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='bob_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' id='c48da82522332cf97dedc00a173af143' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-25 16:27:07.059 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1465@localhost">>},
{<<"to">>,<<"bob_subscribe_1465@localhost/res1">>},
{<<"id">>,<<"c48da82522332cf97dedc00a173af143">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-25 16:27:07.059 ***🔗
bob_subscribe_1465@localhost/res1 out
<iq type='set' id='dec1ad2b2f06cfb5068644a01c91efcd'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1465@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.060 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='bob_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' id='pushe07d4ad86d475e52' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1465@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.060 ***🔗
bob_subscribe_1465@localhost/res1 out
<iq to='bob_subscribe_1465@localhost' id='pushe07d4ad86d475e52' type='result'/>
*** User 2024-04-25 16:27:07.060 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='bob_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' id='dec1ad2b2f06cfb5068644a01c91efcd' type='result'/>
*** User 2024-04-25 16:27:07.060 ***🔗
bob_subscribe_1465@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1465@localhost'/>
*** User 2024-04-25 16:27:07.062 ***🔗
alice_subscribe_1465@localhost/res1 in
<iq from='alice_subscribe_1465@localhost' to='alice_subscribe_1465@localhost/res1' id='pushce7df0e4aa8d84f5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1465@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.062 ***🔗
alice_subscribe_1465@localhost/res1 in
<presence from='bob_subscribe_1465@localhost' to='alice_subscribe_1465@localhost/res1' type='subscribed'/>
*** User 2024-04-25 16:27:07.062 ***🔗
alice_subscribe_1465@localhost/res1 in
<presence from='bob_subscribe_1465@localhost/res1' to='alice_subscribe_1465@localhost/res1'/>
*** User 2024-04-25 16:27:07.062 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='bob_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' id='push5c2afab05923fd49' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1465@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.062 ***🔗
bob_subscribe_1465@localhost/res1 out
<iq type='get' id='f588566645e178c4fecf33c5c38081c5'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-25 16:27:07.063 ***🔗
bob_subscribe_1465@localhost/res1 in
<iq from='bob_subscribe_1465@localhost' to='bob_subscribe_1465@localhost/res1' id='f588566645e178c4fecf33c5c38081c5' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1465@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-25 16:27:07.063 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1465@localhost">>},
{<<"to">>,<<"bob_subscribe_1465@localhost/res1">>},
{<<"id">>,<<"f588566645e178c4fecf33c5c38081c5">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1465@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-25 16:27:07.063 ***🔗
bob_subscribe_1465@localhost/res1 out
<presence/>
*** User 2024-04-25 16:27:07.064 ***🔗
alice_subscribe_1465@localhost/res1 in
<presence from='bob_subscribe_1465@localhost/res1' to='alice_subscribe_1465@localhost/res1'/>
*** User 2024-04-25 16:27:07.064 ***🔗
bob_subscribe_1465@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-25 16:27:07.064 ***🔗
alice_subscribe_1465@localhost/res1 in
<presence from='bob_subscribe_1465@localhost/res1' to='alice_subscribe_1465@localhost/res1' type='unavailable'/>
*** User 2024-04-25 16:27:07.064 ***🔗
bob_subscribe_1465@localhost/res1 out
</stream:stream>
*** User 2024-04-25 16:27:07.065 ***🔗
bob_subscribe_1465@localhost/res1 in
</stream:stream>
*** User 2024-04-25 16:27:07.065 ***🔗
alice_subscribe_1465@localhost/res1 out
</stream:stream>
*** User 2024-04-25 16:27:07.065 ***🔗
alice_subscribe_1465@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 16:27:07
=== successfully completed test case
=== === Returned value: ok