=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11751.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@d3910ff06ead.2024-04-16_11.58.45/big_tests.tests.presence_SUITE.logs/run.2024-04-16_12.09.16/presence_suite.subscribe.99074.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@d3910ff06ead.2024-04-16_11.58.45/big_tests.tests.presence_SUITE.logs/run.2024-04-16_12.09.16/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@d3910ff06ead.2024-04-16_11.58.45"
=== Started at 2024-04-16 12:09:18
*** User 2024-04-16 12:09:18.452 ***🔗
alicE_subscribe_1442@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-16 12:09:18.453 ***🔗
alicE_subscribe_1442@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbc58e8c7cbf9aa9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:09:18.453 ***🔗
alicE_subscribe_1442@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-16 12:09:18.453 ***🔗
alicE_subscribe_1442@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDQyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 12:09:18.456 ***🔗
alicE_subscribe_1442@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:09:18.456 ***🔗
alicE_subscribe_1442@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-16 12:09:18.456 ***🔗
alicE_subscribe_1442@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a707bda7c01f15c' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1442@localhost'>
*** User 2024-04-16 12:09:18.456 ***🔗
alicE_subscribe_1442@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-16 12:09:18.456 ***🔗
alicE_subscribe_1442@localhost/res1 out
<iq type='set' id='5240458bcac5b9fa34e4b88b3d06d6e3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:09:18.456 ***🔗
alicE_subscribe_1442@localhost/res1 in
<iq id='5240458bcac5b9fa34e4b88b3d06d6e3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1442@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:09:18.457 ***🔗
alice_subscribe_1442@localhost/res1 out
<iq type='set' id='9e55d99dddcd58be5847997eeb68c88c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:09:18.457 ***🔗
alice_subscribe_1442@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1442@localhost/res1' id='9e55d99dddcd58be5847997eeb68c88c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:09:18.457 ***🔗
alice_subscribe_1442@localhost/res1 out
<presence/>
*** User 2024-04-16 12:09:18.458 ***🔗
alice_subscribe_1442@localhost/res1 in
<presence from='alice_subscribe_1442@localhost/res1' to='alice_subscribe_1442@localhost/res1'/>
*** User 2024-04-16 12:09:18.459 ***🔗
bOb_subscribe_1442@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-16 12:09:18.459 ***🔗
bOb_subscribe_1442@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e468269454ca974e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:09:18.460 ***🔗
bOb_subscribe_1442@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-16 12:09:18.460 ***🔗
bOb_subscribe_1442@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQ0MgBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 12:09:18.462 ***🔗
bOb_subscribe_1442@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:09:18.462 ***🔗
bOb_subscribe_1442@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-16 12:09:18.462 ***🔗
bOb_subscribe_1442@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b5b11a71f517d34' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1442@localhost'>
*** User 2024-04-16 12:09:18.463 ***🔗
bOb_subscribe_1442@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-16 12:09:18.463 ***🔗
bOb_subscribe_1442@localhost/res1 out
<iq type='set' id='1a9c8f9106590d6b50c4357efac87aa8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:09:18.463 ***🔗
bOb_subscribe_1442@localhost/res1 in
<iq id='1a9c8f9106590d6b50c4357efac87aa8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1442@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:09:18.463 ***🔗
bob_subscribe_1442@localhost/res1 out
<iq type='set' id='3b42c3042d6113a7b0e022ced6403ed4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:09:18.464 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1442@localhost/res1' id='3b42c3042d6113a7b0e022ced6403ed4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:09:18.465 ***🔗
bob_subscribe_1442@localhost/res1 out
<presence/>
*** User 2024-04-16 12:09:18.465 ***🔗
bob_subscribe_1442@localhost/res1 in
<presence from='bob_subscribe_1442@localhost/res1' to='bob_subscribe_1442@localhost/res1'/>
*** User 2024-04-16 12:09:18.465 ***🔗
alice_subscribe_1442@localhost/res1 out
<iq type='set' id='ec56a8468488bc663c739dd5197bbce3'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1442@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.467 ***🔗
alice_subscribe_1442@localhost/res1 in
<iq from='alice_subscribe_1442@localhost' to='alice_subscribe_1442@localhost/res1' id='pushbec84fe701f568ad' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1442@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.467 ***🔗
alice_subscribe_1442@localhost/res1 in
<iq from='alice_subscribe_1442@localhost' to='alice_subscribe_1442@localhost/res1' id='ec56a8468488bc663c739dd5197bbce3' type='result'/>
*** User 2024-04-16 12:09:18.467 ***🔗
alice_subscribe_1442@localhost/res1 out
<iq to='alice_subscribe_1442@localhost' id='pushbec84fe701f568ad' type='result'/>
*** User 2024-04-16 12:09:18.467 ***🔗
alice_subscribe_1442@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1442@localhost'/>
*** User 2024-04-16 12:09:18.470 ***🔗
alice_subscribe_1442@localhost/res1 in
<iq from='alice_subscribe_1442@localhost' to='alice_subscribe_1442@localhost/res1' id='push49465c9ba9b697bf' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1442@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.470 ***🔗
alice_subscribe_1442@localhost/res1 out
<iq to='alice_subscribe_1442@localhost' id='push49465c9ba9b697bf' type='result'/>
*** User 2024-04-16 12:09:18.470 ***🔗
bob_subscribe_1442@localhost/res1 in
<presence from='alice_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' type='subscribe'/>
*** User 2024-04-16 12:09:18.470 ***🔗
bob_subscribe_1442@localhost/res1 out
<iq type='get' id='2c7d224b4bcceed4cee9e3faaad32712'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 12:09:18.471 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='bob_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' id='2c7d224b4bcceed4cee9e3faaad32712' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 12:09:18.471 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1442@localhost">>},
{<<"to">>,<<"bob_subscribe_1442@localhost/res1">>},
{<<"id">>,<<"2c7d224b4bcceed4cee9e3faaad32712">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-16 12:09:18.471 ***🔗
bob_subscribe_1442@localhost/res1 out
<iq type='set' id='3c5f980459c1cc816df4e0d492ce6ada'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1442@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.473 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='bob_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' id='push229564649870e077' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1442@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.473 ***🔗
bob_subscribe_1442@localhost/res1 out
<iq to='bob_subscribe_1442@localhost' id='push229564649870e077' type='result'/>
*** User 2024-04-16 12:09:18.474 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='bob_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' id='3c5f980459c1cc816df4e0d492ce6ada' type='result'/>
*** User 2024-04-16 12:09:18.474 ***🔗
bob_subscribe_1442@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1442@localhost'/>
*** User 2024-04-16 12:09:18.477 ***🔗
alice_subscribe_1442@localhost/res1 in
<iq from='alice_subscribe_1442@localhost' to='alice_subscribe_1442@localhost/res1' id='pushaa1ea5ba971392bd' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1442@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.478 ***🔗
alice_subscribe_1442@localhost/res1 in
<presence from='bob_subscribe_1442@localhost' to='alice_subscribe_1442@localhost/res1' type='subscribed'/>
*** User 2024-04-16 12:09:18.478 ***🔗
alice_subscribe_1442@localhost/res1 in
<presence from='bob_subscribe_1442@localhost/res1' to='alice_subscribe_1442@localhost/res1'/>
*** User 2024-04-16 12:09:18.478 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='bob_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' id='push120be2704c1a011e' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1442@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.478 ***🔗
bob_subscribe_1442@localhost/res1 out
<iq type='get' id='216295c549451c9dd70f4cd54e4bb306'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 12:09:18.479 ***🔗
bob_subscribe_1442@localhost/res1 in
<iq from='bob_subscribe_1442@localhost' to='bob_subscribe_1442@localhost/res1' id='216295c549451c9dd70f4cd54e4bb306' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1442@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 12:09:18.480 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1442@localhost">>},
{<<"to">>,<<"bob_subscribe_1442@localhost/res1">>},
{<<"id">>,<<"216295c549451c9dd70f4cd54e4bb306">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1442@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-16 12:09:18.480 ***🔗
bob_subscribe_1442@localhost/res1 out
<presence/>
*** User 2024-04-16 12:09:18.480 ***🔗
alice_subscribe_1442@localhost/res1 in
<presence from='bob_subscribe_1442@localhost/res1' to='alice_subscribe_1442@localhost/res1'/>
*** User 2024-04-16 12:09:18.480 ***🔗
bob_subscribe_1442@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-16 12:09:18.481 ***🔗
alice_subscribe_1442@localhost/res1 in
<presence from='bob_subscribe_1442@localhost/res1' to='alice_subscribe_1442@localhost/res1' type='unavailable'/>
*** User 2024-04-16 12:09:18.481 ***🔗
bob_subscribe_1442@localhost/res1 out
</stream:stream>
*** User 2024-04-16 12:09:18.482 ***🔗
bob_subscribe_1442@localhost/res1 in
</stream:stream>
*** User 2024-04-16 12:09:18.482 ***🔗
alice_subscribe_1442@localhost/res1 out
</stream:stream>
*** User 2024-04-16 12:09:18.482 ***🔗
alice_subscribe_1442@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 12:09:18
=== successfully completed test case
=== === Returned value: ok