=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.78423.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@eb6fc23ce6f4.2024-04-23_08.56.42/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.10.00/presence_suite.subscribe.159363.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@eb6fc23ce6f4.2024-04-23_08.56.42/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.10.00/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@eb6fc23ce6f4.2024-04-23_08.56.42"
=== Started at 2024-04-23 09:10:02
*** User 2024-04-23 09:10:02.711 ***🔗
alicE_subscribe_2840@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 09:10:02.712 ***🔗
alicE_subscribe_2840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa8e7f08a358592c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 09:10:02.712 ***🔗
alicE_subscribe_2840@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-04-23 09:10:02.712 ***🔗
alicE_subscribe_2840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODQwAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 09:10:02.713 ***🔗
alicE_subscribe_2840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 09:10:02.713 ***🔗
alicE_subscribe_2840@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 09:10:02.713 ***🔗
alicE_subscribe_2840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e50d2e6abdee343a' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2840@localhost'>
*** User 2024-04-23 09:10:02.713 ***🔗
alicE_subscribe_2840@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 09:10:02.713 ***🔗
alicE_subscribe_2840@localhost/res1 out
<iq type='set' id='f0ec77b35dec4366931c0e071ef8c874'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 09:10:02.714 ***🔗
alicE_subscribe_2840@localhost/res1 in
<iq id='f0ec77b35dec4366931c0e071ef8c874' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 09:10:02.714 ***🔗
alice_subscribe_2840@localhost/res1 out
<iq type='set' id='6e76b10cca7284668df3344b003cfa72'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:10:02.715 ***🔗
alice_subscribe_2840@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2840@localhost/res1' id='6e76b10cca7284668df3344b003cfa72' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:10:02.715 ***🔗
alice_subscribe_2840@localhost/res1 out
<presence/>
*** User 2024-04-23 09:10:02.716 ***🔗
alice_subscribe_2840@localhost/res1 in
<presence from='alice_subscribe_2840@localhost/res1' to='alice_subscribe_2840@localhost/res1'/>
*** User 2024-04-23 09:10:02.717 ***🔗
bOb_subscribe_2840@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 09:10:02.717 ***🔗
bOb_subscribe_2840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b66796e1f698bb91' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 09:10:02.718 ***🔗
bOb_subscribe_2840@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-04-23 09:10:02.718 ***🔗
bOb_subscribe_2840@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg0MABtYWtyb2xpa2E=</auth>
*** User 2024-04-23 09:10:02.719 ***🔗
bOb_subscribe_2840@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 09:10:02.719 ***🔗
bOb_subscribe_2840@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 09:10:02.719 ***🔗
bOb_subscribe_2840@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69f391d65089b28d' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2840@localhost'>
*** User 2024-04-23 09:10:02.719 ***🔗
bOb_subscribe_2840@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 09:10:02.719 ***🔗
bOb_subscribe_2840@localhost/res1 out
<iq type='set' id='aec4f53aada93789901c721372c7c03f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 09:10:02.720 ***🔗
bOb_subscribe_2840@localhost/res1 in
<iq id='aec4f53aada93789901c721372c7c03f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2840@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 09:10:02.720 ***🔗
bob_subscribe_2840@localhost/res1 out
<iq type='set' id='d6db21041b73e6c69c49b5ca174a9e3c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:10:02.720 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2840@localhost/res1' id='d6db21041b73e6c69c49b5ca174a9e3c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:10:02.721 ***🔗
bob_subscribe_2840@localhost/res1 out
<presence/>
*** User 2024-04-23 09:10:02.722 ***🔗
bob_subscribe_2840@localhost/res1 in
<presence from='bob_subscribe_2840@localhost/res1' to='bob_subscribe_2840@localhost/res1'/>
*** User 2024-04-23 09:10:02.722 ***🔗
alice_subscribe_2840@localhost/res1 out
<iq type='set' id='7bc8351c88e2e74e344e56aae0b93738'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2840@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.729 ***🔗
alice_subscribe_2840@localhost/res1 in
<iq from='alice_subscribe_2840@localhost' to='alice_subscribe_2840@localhost/res1' id='push68684fd22b94c802' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2840@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.729 ***🔗
alice_subscribe_2840@localhost/res1 in
<iq from='alice_subscribe_2840@localhost' to='alice_subscribe_2840@localhost/res1' id='7bc8351c88e2e74e344e56aae0b93738' type='result'/>
*** User 2024-04-23 09:10:02.730 ***🔗
alice_subscribe_2840@localhost/res1 out
<iq to='alice_subscribe_2840@localhost' id='push68684fd22b94c802' type='result'/>
*** User 2024-04-23 09:10:02.730 ***🔗
alice_subscribe_2840@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2840@localhost'/>
*** User 2024-04-23 09:10:02.736 ***🔗
alice_subscribe_2840@localhost/res1 in
<iq from='alice_subscribe_2840@localhost' to='alice_subscribe_2840@localhost/res1' id='push3300957433c4a718' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2840@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.736 ***🔗
alice_subscribe_2840@localhost/res1 out
<iq to='alice_subscribe_2840@localhost' id='push3300957433c4a718' type='result'/>
*** User 2024-04-23 09:10:02.736 ***🔗
bob_subscribe_2840@localhost/res1 in
<presence from='alice_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' type='subscribe'/>
*** User 2024-04-23 09:10:02.736 ***🔗
bob_subscribe_2840@localhost/res1 out
<iq type='get' id='cceb2438ade07794051441dff109e94d'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:10:02.742 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='bob_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' id='cceb2438ade07794051441dff109e94d' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:10:02.742 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2840@localhost">>},
{<<"to">>,<<"bob_subscribe_2840@localhost/res1">>},
{<<"id">>,<<"cceb2438ade07794051441dff109e94d">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-23 09:10:02.743 ***🔗
bob_subscribe_2840@localhost/res1 out
<iq type='set' id='8a92b5b09e7a3f07298e7543eb6c5c52'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2840@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.748 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='bob_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' id='push4271aafe2b8eb7b1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2840@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.748 ***🔗
bob_subscribe_2840@localhost/res1 out
<iq to='bob_subscribe_2840@localhost' id='push4271aafe2b8eb7b1' type='result'/>
*** User 2024-04-23 09:10:02.748 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='bob_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' id='8a92b5b09e7a3f07298e7543eb6c5c52' type='result'/>
*** User 2024-04-23 09:10:02.748 ***🔗
bob_subscribe_2840@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2840@localhost'/>
*** User 2024-04-23 09:10:02.795 ***🔗
alice_subscribe_2840@localhost/res1 in
<iq from='alice_subscribe_2840@localhost' to='alice_subscribe_2840@localhost/res1' id='push51e57835156e3a91' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2840@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.796 ***🔗
alice_subscribe_2840@localhost/res1 in
<presence from='bob_subscribe_2840@localhost' to='alice_subscribe_2840@localhost/res1' type='subscribed'/>
*** User 2024-04-23 09:10:02.796 ***🔗
alice_subscribe_2840@localhost/res1 in
<presence from='bob_subscribe_2840@localhost/res1' to='alice_subscribe_2840@localhost/res1'/>
*** User 2024-04-23 09:10:02.796 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='bob_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' id='pushc1367f1dad0ee6bf' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2840@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.796 ***🔗
bob_subscribe_2840@localhost/res1 out
<iq type='get' id='9cfe6635b31f0334bc6211c737bc9d8c'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:10:02.798 ***🔗
bob_subscribe_2840@localhost/res1 in
<iq from='bob_subscribe_2840@localhost' to='bob_subscribe_2840@localhost/res1' id='9cfe6635b31f0334bc6211c737bc9d8c' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2840@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:10:02.798 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2840@localhost">>},
{<<"to">>,<<"bob_subscribe_2840@localhost/res1">>},
{<<"id">>,<<"9cfe6635b31f0334bc6211c737bc9d8c">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2840@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-23 09:10:02.799 ***🔗
bob_subscribe_2840@localhost/res1 out
<presence/>
*** User 2024-04-23 09:10:02.800 ***🔗
alice_subscribe_2840@localhost/res1 in
<presence from='bob_subscribe_2840@localhost/res1' to='alice_subscribe_2840@localhost/res1'/>
*** User 2024-04-23 09:10:02.800 ***🔗
bob_subscribe_2840@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-23 09:10:02.801 ***🔗
alice_subscribe_2840@localhost/res1 in
<presence from='bob_subscribe_2840@localhost/res1' to='alice_subscribe_2840@localhost/res1' type='unavailable'/>
*** User 2024-04-23 09:10:02.801 ***🔗
bob_subscribe_2840@localhost/res1 out
</stream:stream>
*** User 2024-04-23 09:10:02.801 ***🔗
bob_subscribe_2840@localhost/res1 in
</stream:stream>
*** User 2024-04-23 09:10:02.801 ***🔗
alice_subscribe_2840@localhost/res1 out
</stream:stream>
*** User 2024-04-23 09:10:02.802 ***🔗
alice_subscribe_2840@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 09:10:02
=== successfully completed test case
=== === Returned value: ok