=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.44404.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@fbd36bac9dd4.2024-04-23_12.28.05/big_tests.tests.presence_SUITE.logs/run.2024-04-23_12.37.37/presence_suite.subscribe.50435.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@fbd36bac9dd4.2024-04-23_12.28.05/big_tests.tests.presence_SUITE.logs/run.2024-04-23_12.37.37/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@fbd36bac9dd4.2024-04-23_12.28.05"
=== Started at 2024-04-23 12:37:39
*** User 2024-04-23 12:37:39.176 ***🔗
alicE_subscribe_1402@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-23 12:37:39.176 ***🔗
alicE_subscribe_1402@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3efd5737a612f8df' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 12:37:39.177 ***🔗
alicE_subscribe_1402@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-23 12:37:39.177 ***🔗
alicE_subscribe_1402@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDAyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 12:37:39.180 ***🔗
alicE_subscribe_1402@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 12:37:39.180 ***🔗
alicE_subscribe_1402@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-23 12:37:39.180 ***🔗
alicE_subscribe_1402@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a362ba6005456843' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1402@localhost'>
*** User 2024-04-23 12:37:39.180 ***🔗
alicE_subscribe_1402@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-23 12:37:39.180 ***🔗
alicE_subscribe_1402@localhost/res1 out
<iq type='set' id='2f1c9b881e207e94ce85caa2e2a8edf0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 12:37:39.181 ***🔗
alicE_subscribe_1402@localhost/res1 in
<iq id='2f1c9b881e207e94ce85caa2e2a8edf0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1402@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 12:37:39.181 ***🔗
alice_subscribe_1402@localhost/res1 out
<iq type='set' id='50c7d1347c270b3f06e5cd1f643d2d71'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 12:37:39.182 ***🔗
alice_subscribe_1402@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1402@localhost/res1' id='50c7d1347c270b3f06e5cd1f643d2d71' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 12:37:39.182 ***🔗
alice_subscribe_1402@localhost/res1 out
<presence/>
*** User 2024-04-23 12:37:39.182 ***🔗
alice_subscribe_1402@localhost/res1 in
<presence from='alice_subscribe_1402@localhost/res1' to='alice_subscribe_1402@localhost/res1'/>
*** User 2024-04-23 12:37:39.183 ***🔗
bOb_subscribe_1402@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-23 12:37:39.183 ***🔗
bOb_subscribe_1402@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e11b1d97898c787' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 12:37:39.183 ***🔗
bOb_subscribe_1402@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-23 12:37:39.183 ***🔗
bOb_subscribe_1402@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQwMgBtYWtyb2xpa2E=</auth>
*** User 2024-04-23 12:37:39.184 ***🔗
bOb_subscribe_1402@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 12:37:39.184 ***🔗
bOb_subscribe_1402@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-23 12:37:39.184 ***🔗
bOb_subscribe_1402@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c49f0d6da7bebcba' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1402@localhost'>
*** User 2024-04-23 12:37:39.184 ***🔗
bOb_subscribe_1402@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-23 12:37:39.184 ***🔗
bOb_subscribe_1402@localhost/res1 out
<iq type='set' id='e4c210f17976e63ce7521b3f3093b799'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 12:37:39.185 ***🔗
bOb_subscribe_1402@localhost/res1 in
<iq id='e4c210f17976e63ce7521b3f3093b799' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1402@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 12:37:39.185 ***🔗
bob_subscribe_1402@localhost/res1 out
<iq type='set' id='2dc514dd4d7d1ae61e7b88118e6a6180'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 12:37:39.185 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1402@localhost/res1' id='2dc514dd4d7d1ae61e7b88118e6a6180' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 12:37:39.185 ***🔗
bob_subscribe_1402@localhost/res1 out
<presence/>
*** User 2024-04-23 12:37:39.185 ***🔗
bob_subscribe_1402@localhost/res1 in
<presence from='bob_subscribe_1402@localhost/res1' to='bob_subscribe_1402@localhost/res1'/>
*** User 2024-04-23 12:37:39.186 ***🔗
alice_subscribe_1402@localhost/res1 out
<iq type='set' id='a47cdd5af59f1192d631528f2462853a'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1402@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.186 ***🔗
alice_subscribe_1402@localhost/res1 in
<iq from='alice_subscribe_1402@localhost' to='alice_subscribe_1402@localhost/res1' id='pushb05828cf15575928' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1402@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.186 ***🔗
alice_subscribe_1402@localhost/res1 in
<iq from='alice_subscribe_1402@localhost' to='alice_subscribe_1402@localhost/res1' id='a47cdd5af59f1192d631528f2462853a' type='result'/>
*** User 2024-04-23 12:37:39.186 ***🔗
alice_subscribe_1402@localhost/res1 out
<iq to='alice_subscribe_1402@localhost' id='pushb05828cf15575928' type='result'/>
*** User 2024-04-23 12:37:39.186 ***🔗
alice_subscribe_1402@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1402@localhost'/>
*** User 2024-04-23 12:37:39.188 ***🔗
alice_subscribe_1402@localhost/res1 in
<iq from='alice_subscribe_1402@localhost' to='alice_subscribe_1402@localhost/res1' id='push5a5cbd339a385557' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1402@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.188 ***🔗
alice_subscribe_1402@localhost/res1 out
<iq to='alice_subscribe_1402@localhost' id='push5a5cbd339a385557' type='result'/>
*** User 2024-04-23 12:37:39.188 ***🔗
bob_subscribe_1402@localhost/res1 in
<presence from='alice_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' type='subscribe'/>
*** User 2024-04-23 12:37:39.188 ***🔗
bob_subscribe_1402@localhost/res1 out
<iq type='get' id='ddaa11e30664f7632c19ec98a72efa7f'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 12:37:39.189 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='bob_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' id='ddaa11e30664f7632c19ec98a72efa7f' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 12:37:39.189 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1402@localhost">>},
{<<"to">>,<<"bob_subscribe_1402@localhost/res1">>},
{<<"id">>,<<"ddaa11e30664f7632c19ec98a72efa7f">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-23 12:37:39.189 ***🔗
bob_subscribe_1402@localhost/res1 out
<iq type='set' id='55e8f6ce541242b92a0c50c38855d166'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1402@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.190 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='bob_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' id='push884f7f4c1db9fe92' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1402@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.190 ***🔗
bob_subscribe_1402@localhost/res1 out
<iq to='bob_subscribe_1402@localhost' id='push884f7f4c1db9fe92' type='result'/>
*** User 2024-04-23 12:37:39.190 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='bob_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' id='55e8f6ce541242b92a0c50c38855d166' type='result'/>
*** User 2024-04-23 12:37:39.190 ***🔗
bob_subscribe_1402@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1402@localhost'/>
*** User 2024-04-23 12:37:39.192 ***🔗
alice_subscribe_1402@localhost/res1 in
<iq from='alice_subscribe_1402@localhost' to='alice_subscribe_1402@localhost/res1' id='push7360e3e0ea7fe5ff' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1402@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.192 ***🔗
alice_subscribe_1402@localhost/res1 in
<presence from='bob_subscribe_1402@localhost' to='alice_subscribe_1402@localhost/res1' type='subscribed'/>
*** User 2024-04-23 12:37:39.192 ***🔗
alice_subscribe_1402@localhost/res1 in
<presence from='bob_subscribe_1402@localhost/res1' to='alice_subscribe_1402@localhost/res1'/>
*** User 2024-04-23 12:37:39.192 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='bob_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' id='pushf1d45688f86ea9e4' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1402@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.192 ***🔗
bob_subscribe_1402@localhost/res1 out
<iq type='get' id='d470ade3287e4cea1cb1cd100e5a3978'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 12:37:39.193 ***🔗
bob_subscribe_1402@localhost/res1 in
<iq from='bob_subscribe_1402@localhost' to='bob_subscribe_1402@localhost/res1' id='d470ade3287e4cea1cb1cd100e5a3978' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1402@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 12:37:39.193 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1402@localhost">>},
{<<"to">>,<<"bob_subscribe_1402@localhost/res1">>},
{<<"id">>,<<"d470ade3287e4cea1cb1cd100e5a3978">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1402@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-23 12:37:39.193 ***🔗
bob_subscribe_1402@localhost/res1 out
<presence/>
*** User 2024-04-23 12:37:39.193 ***🔗
alice_subscribe_1402@localhost/res1 in
<presence from='bob_subscribe_1402@localhost/res1' to='alice_subscribe_1402@localhost/res1'/>
*** User 2024-04-23 12:37:39.194 ***🔗
bob_subscribe_1402@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-23 12:37:39.194 ***🔗
alice_subscribe_1402@localhost/res1 in
<presence from='bob_subscribe_1402@localhost/res1' to='alice_subscribe_1402@localhost/res1' type='unavailable'/>
*** User 2024-04-23 12:37:39.194 ***🔗
bob_subscribe_1402@localhost/res1 out
</stream:stream>
*** User 2024-04-23 12:37:39.194 ***🔗
bob_subscribe_1402@localhost/res1 in
</stream:stream>
*** User 2024-04-23 12:37:39.194 ***🔗
alice_subscribe_1402@localhost/res1 out
</stream:stream>
*** User 2024-04-23 12:37:39.195 ***🔗
alice_subscribe_1402@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 12:37:39
=== successfully completed test case
=== === Returned value: ok