=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.79092.0>},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.59.57/presence_suite.subscribe.121860.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@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.59.57/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@f2e0a288de76.2024-03-21_07.46.09"
=== Started at 2024-03-21 07:59:59
*** User 2024-03-21 07:59:59.839 ***🔗
alicE_subscribe_2876@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-03-21 07:59:59.839 ***🔗
alicE_subscribe_2876@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c4d339df50b5a03' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:59:59.839 ***🔗
alicE_subscribe_2876@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>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-03-21 07:59:59.839 ***🔗
alicE_subscribe_2876@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODc2AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:59:59.841 ***🔗
alicE_subscribe_2876@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:59:59.841 ***🔗
alicE_subscribe_2876@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-03-21 07:59:59.841 ***🔗
alicE_subscribe_2876@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d71cd470746cce60' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2876@localhost'>
*** User 2024-03-21 07:59:59.841 ***🔗
alicE_subscribe_2876@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-03-21 07:59:59.841 ***🔗
alicE_subscribe_2876@localhost/res1 out
<iq type='set' id='dc7caa5c5aa2479cb91c4a70e5b4bdbb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:59:59.842 ***🔗
alicE_subscribe_2876@localhost/res1 in
<iq id='dc7caa5c5aa2479cb91c4a70e5b4bdbb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2876@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:59:59.842 ***🔗
alice_subscribe_2876@localhost/res1 out
<iq type='set' id='d2c6fe4590d4cbe9fd80a7c1f1fb237a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:59.843 ***🔗
alice_subscribe_2876@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2876@localhost/res1' id='d2c6fe4590d4cbe9fd80a7c1f1fb237a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:59.843 ***🔗
alice_subscribe_2876@localhost/res1 out
<presence/>
*** User 2024-03-21 07:59:59.845 ***🔗
alice_subscribe_2876@localhost/res1 in
<presence from='alice_subscribe_2876@localhost/res1' to='alice_subscribe_2876@localhost/res1'/>
*** User 2024-03-21 07:59:59.845 ***🔗
bOb_subscribe_2876@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-03-21 07:59:59.846 ***🔗
bOb_subscribe_2876@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1c2107deecc4bbad' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:59:59.846 ***🔗
bOb_subscribe_2876@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>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-03-21 07:59:59.846 ***🔗
bOb_subscribe_2876@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg3NgBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:59:59.847 ***🔗
bOb_subscribe_2876@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:59:59.847 ***🔗
bOb_subscribe_2876@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-03-21 07:59:59.848 ***🔗
bOb_subscribe_2876@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce9f3584f2294a43' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2876@localhost'>
*** User 2024-03-21 07:59:59.848 ***🔗
bOb_subscribe_2876@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-03-21 07:59:59.848 ***🔗
bOb_subscribe_2876@localhost/res1 out
<iq type='set' id='163bd660e42a85bc3efae0d266f586ff'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:59:59.848 ***🔗
bOb_subscribe_2876@localhost/res1 in
<iq id='163bd660e42a85bc3efae0d266f586ff' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2876@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:59:59.848 ***🔗
bob_subscribe_2876@localhost/res1 out
<iq type='set' id='c8dfbb416591ddef9a81d4846bf13d5f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:59.849 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2876@localhost/res1' id='c8dfbb416591ddef9a81d4846bf13d5f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:59.849 ***🔗
bob_subscribe_2876@localhost/res1 out
<presence/>
*** User 2024-03-21 07:59:59.851 ***🔗
bob_subscribe_2876@localhost/res1 in
<presence from='bob_subscribe_2876@localhost/res1' to='bob_subscribe_2876@localhost/res1'/>
*** User 2024-03-21 07:59:59.851 ***🔗
alice_subscribe_2876@localhost/res1 out
<iq type='set' id='c2c4e13225a0827bfd0019d618e6be62'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2876@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.866 ***🔗
alice_subscribe_2876@localhost/res1 in
<iq from='alice_subscribe_2876@localhost' to='alice_subscribe_2876@localhost/res1' id='pushc779255152c46549' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2876@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.866 ***🔗
alice_subscribe_2876@localhost/res1 in
<iq from='alice_subscribe_2876@localhost' to='alice_subscribe_2876@localhost/res1' id='c2c4e13225a0827bfd0019d618e6be62' type='result'/>
*** User 2024-03-21 07:59:59.867 ***🔗
alice_subscribe_2876@localhost/res1 out
<iq to='alice_subscribe_2876@localhost' id='pushc779255152c46549' type='result'/>
*** User 2024-03-21 07:59:59.867 ***🔗
alice_subscribe_2876@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2876@localhost'/>
*** User 2024-03-21 07:59:59.882 ***🔗
alice_subscribe_2876@localhost/res1 in
<iq from='alice_subscribe_2876@localhost' to='alice_subscribe_2876@localhost/res1' id='push8baf92d1c104be8d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2876@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.882 ***🔗
alice_subscribe_2876@localhost/res1 out
<iq to='alice_subscribe_2876@localhost' id='push8baf92d1c104be8d' type='result'/>
*** User 2024-03-21 07:59:59.882 ***🔗
bob_subscribe_2876@localhost/res1 in
<presence from='alice_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' type='subscribe'/>
*** User 2024-03-21 07:59:59.882 ***🔗
bob_subscribe_2876@localhost/res1 out
<iq type='get' id='3bd1f713deba3fb1bae5aa4d1b06430c'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:59.890 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='bob_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' id='3bd1f713deba3fb1bae5aa4d1b06430c' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:59.890 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2876@localhost">>},
{<<"to">>,<<"bob_subscribe_2876@localhost/res1">>},
{<<"id">>,<<"3bd1f713deba3fb1bae5aa4d1b06430c">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-21 07:59:59.890 ***🔗
bob_subscribe_2876@localhost/res1 out
<iq type='set' id='f0def52b56ab737bec35e871943311ae'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2876@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.897 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='bob_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' id='push27bd68f86738723c' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2876@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.898 ***🔗
bob_subscribe_2876@localhost/res1 out
<iq to='bob_subscribe_2876@localhost' id='push27bd68f86738723c' type='result'/>
*** User 2024-03-21 07:59:59.898 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='bob_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' id='f0def52b56ab737bec35e871943311ae' type='result'/>
*** User 2024-03-21 07:59:59.898 ***🔗
bob_subscribe_2876@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2876@localhost'/>
*** User 2024-03-21 07:59:59.906 ***🔗
alice_subscribe_2876@localhost/res1 in
<iq from='alice_subscribe_2876@localhost' to='alice_subscribe_2876@localhost/res1' id='pushe6d952d4372be270' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2876@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.906 ***🔗
alice_subscribe_2876@localhost/res1 in
<presence from='bob_subscribe_2876@localhost' to='alice_subscribe_2876@localhost/res1' type='subscribed'/>
*** User 2024-03-21 07:59:59.906 ***🔗
alice_subscribe_2876@localhost/res1 in
<presence from='bob_subscribe_2876@localhost/res1' to='alice_subscribe_2876@localhost/res1'/>
*** User 2024-03-21 07:59:59.906 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='bob_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' id='pusha9af9e1eefd61208' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2876@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.906 ***🔗
bob_subscribe_2876@localhost/res1 out
<iq type='get' id='250009469bee6662af139eec6770b913'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:59.911 ***🔗
bob_subscribe_2876@localhost/res1 in
<iq from='bob_subscribe_2876@localhost' to='bob_subscribe_2876@localhost/res1' id='250009469bee6662af139eec6770b913' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2876@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:59.911 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2876@localhost">>},
{<<"to">>,<<"bob_subscribe_2876@localhost/res1">>},
{<<"id">>,<<"250009469bee6662af139eec6770b913">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2876@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-21 07:59:59.911 ***🔗
bob_subscribe_2876@localhost/res1 out
<presence/>
*** User 2024-03-21 07:59:59.912 ***🔗
alice_subscribe_2876@localhost/res1 in
<presence from='bob_subscribe_2876@localhost/res1' to='alice_subscribe_2876@localhost/res1'/>
*** User 2024-03-21 07:59:59.912 ***🔗
bob_subscribe_2876@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-03-21 07:59:59.913 ***🔗
alice_subscribe_2876@localhost/res1 in
<presence from='bob_subscribe_2876@localhost/res1' to='alice_subscribe_2876@localhost/res1' type='unavailable'/>
*** User 2024-03-21 07:59:59.913 ***🔗
bob_subscribe_2876@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:59:59.913 ***🔗
bob_subscribe_2876@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:59:59.913 ***🔗
alice_subscribe_2876@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:59:59.914 ***🔗
alice_subscribe_2876@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:59:59
=== successfully completed test case
=== === Returned value: ok