=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.1410.2>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"mysql_redis"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.presence_SUITE.logs/run.2022-03-07_16.07.25/presence_suite.subscribe.112387.html"},
{tc_group_properties,[{name,subscribe_group},
{repeat_until_all_ok,3},
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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.presence_SUITE.logs/run.2022-03-07_16.07.25/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@fac56f14d8cf.2022-03-07_15.57.55"
=== Started at 2022-03-07 16:07:27
*** User 2022-03-07 16:07:27.682 ***
alicE_subscribe_1912@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-07 16:07:27.683 ***
alicE_subscribe_1912@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bfbae14486aadd9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:07:27.683 ***
alicE_subscribe_1912@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-07 16:07:27.683 ***
alicE_subscribe_1912@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xOTEyAG1hdHlncnlzYQ==</auth>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2260ff7ceb8ad986' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 out
<iq type='set' id='ad5bca57fd51fe1079b7963a8d89b154'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:07:27.696 ***
alicE_subscribe_1912@localhost/res1 in
<iq id='ad5bca57fd51fe1079b7963a8d89b154' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1912@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:07:27.697 ***
alicE_subscribe_1912@localhost/res1 out
<iq type='set' id='8b5b280652f7805d7d65bd05f542ad55'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:07:27.697 ***
alicE_subscribe_1912@localhost/res1 in
<iq type='result' id='8b5b280652f7805d7d65bd05f542ad55'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:07:27.697 ***
alicE_subscribe_1912@localhost/res1 out
<presence/>
*** User 2022-03-07 16:07:27.700 ***
alicE_subscribe_1912@localhost/res1 in
<presence from='alicE_subscribe_1912@localhost/res1' to='alice_subscribe_1912@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:07:27.700 ***
bOb_subscribe_1912@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-07 16:07:27.700 ***
bOb_subscribe_1912@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ced0257d6cc963d0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:07:27.701 ***
bOb_subscribe_1912@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-07 16:07:27.701 ***
bOb_subscribe_1912@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTkxMgBtYWtyb2xpa2E=</auth>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce63e3949198147b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 out
<iq type='set' id='f7b833f1c51a975d932fe86504376634'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:07:27.702 ***
bOb_subscribe_1912@localhost/res1 in
<iq id='f7b833f1c51a975d932fe86504376634' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1912@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:07:27.703 ***
bOb_subscribe_1912@localhost/res1 out
<iq type='set' id='84c8fa8be44224a48d3eb1aa3e3a224c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:07:27.703 ***
bOb_subscribe_1912@localhost/res1 in
<iq type='result' id='84c8fa8be44224a48d3eb1aa3e3a224c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:07:27.703 ***
bOb_subscribe_1912@localhost/res1 out
<presence/>
*** User 2022-03-07 16:07:27.706 ***
bOb_subscribe_1912@localhost/res1 in
<presence from='bOb_subscribe_1912@localhost/res1' to='bob_subscribe_1912@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:07:27.706 ***
alicE_subscribe_1912@localhost/res1 out
<iq type='set' id='474eae76c52568c0184dbd4d5d72dcb8'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1912@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.719 ***
alicE_subscribe_1912@localhost/res1 in
<iq from='alicE_subscribe_1912@localhost' to='alicE_subscribe_1912@localhost/res1' id='push2a83d343ce7d1ecb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1912@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.719 ***
alicE_subscribe_1912@localhost/res1 in
<iq from='alicE_subscribe_1912@localhost' to='alicE_subscribe_1912@localhost/res1' id='474eae76c52568c0184dbd4d5d72dcb8' type='result'/>
*** User 2022-03-07 16:07:27.719 ***
alicE_subscribe_1912@localhost/res1 out
<iq to='alicE_subscribe_1912@localhost' id='push2a83d343ce7d1ecb' type='result'/>
*** User 2022-03-07 16:07:27.719 ***
alicE_subscribe_1912@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_1912@localhost'/>
*** User 2022-03-07 16:07:27.769 ***
alicE_subscribe_1912@localhost/res1 in
<iq from='alicE_subscribe_1912@localhost' to='alicE_subscribe_1912@localhost/res1' id='pushd9830fa4ae53de8d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1912@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.770 ***
alicE_subscribe_1912@localhost/res1 out
<iq to='alicE_subscribe_1912@localhost' id='pushd9830fa4ae53de8d' type='result'/>
*** User 2022-03-07 16:07:27.770 ***
bOb_subscribe_1912@localhost/res1 in
<presence from='alicE_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-07 16:07:27.770 ***
bOb_subscribe_1912@localhost/res1 out
<iq type='get' id='3289310011abdbbf5f68f827db4795e7'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-07 16:07:27.803 ***
bOb_subscribe_1912@localhost/res1 in
<iq from='bOb_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' id='3289310011abdbbf5f68f827db4795e7' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-07 16:07:27.803 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1912@localhost">>},
{<<"to">>,<<"bOb_subscribe_1912@localhost/res1">>},
{<<"id">>,<<"3289310011abdbbf5f68f827db4795e7">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-03-07 16:07:27.803 ***
bOb_subscribe_1912@localhost/res1 out
<iq type='set' id='faf28b6d47c64e1fb9ad851027ca88a8'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1912@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.810 ***
bOb_subscribe_1912@localhost/res1 in
<iq from='bOb_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' id='push284261724e77db0d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1912@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.810 ***
bOb_subscribe_1912@localhost/res1 out
<iq to='bOb_subscribe_1912@localhost' id='push284261724e77db0d' type='result'/>
*** User 2022-03-07 16:07:27.810 ***
bOb_subscribe_1912@localhost/res1 in
<iq from='bOb_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' id='faf28b6d47c64e1fb9ad851027ca88a8' type='result'/>
*** User 2022-03-07 16:07:27.810 ***
bOb_subscribe_1912@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_1912@localhost'/>
*** User 2022-03-07 16:07:27.819 ***
alicE_subscribe_1912@localhost/res1 in
<iq from='alicE_subscribe_1912@localhost' to='alicE_subscribe_1912@localhost/res1' id='pusha08d860d9643860d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1912@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.820 ***
alicE_subscribe_1912@localhost/res1 in
<presence from='bOb_subscribe_1912@localhost' to='alicE_subscribe_1912@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-03-07 16:07:27.820 ***
alicE_subscribe_1912@localhost/res1 in
<presence from='bOb_subscribe_1912@localhost/res1' to='alice_subscribe_1912@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:07:27.820 ***
bOb_subscribe_1912@localhost/res1 in
<iq from='bOb_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' id='pushd125dc7fbaf8e68a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1912@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.820 ***
bOb_subscribe_1912@localhost/res1 out
<iq type='get' id='0c8e6c3873a1352ab593fddd039ffbca'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-07 16:07:27.840 ***
bOb_subscribe_1912@localhost/res1 in
<iq from='bOb_subscribe_1912@localhost' to='bOb_subscribe_1912@localhost/res1' id='0c8e6c3873a1352ab593fddd039ffbca' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1912@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-07 16:07:27.840 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1912@localhost">>},
{<<"to">>,<<"bOb_subscribe_1912@localhost/res1">>},
{<<"id">>,<<"0c8e6c3873a1352ab593fddd039ffbca">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1912@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-03-07 16:07:27.840 ***
bOb_subscribe_1912@localhost/res1 out
<presence/>
*** User 2022-03-07 16:07:27.841 ***
alicE_subscribe_1912@localhost/res1 in
<presence from='bOb_subscribe_1912@localhost/res1' to='alice_subscribe_1912@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:07:27.841 ***
bOb_subscribe_1912@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-03-07 16:07:27.843 ***
alicE_subscribe_1912@localhost/res1 in
<presence from='bOb_subscribe_1912@localhost/res1' to='alice_subscribe_1912@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-03-07 16:07:27.843 ***
bOb_subscribe_1912@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:07:27.843 ***
bOb_subscribe_1912@localhost/res1 in
</stream:stream>
*** User 2022-03-07 16:07:27.843 ***
alicE_subscribe_1912@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:07:27.844 ***
alicE_subscribe_1912@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-07 16:07:27
=== successfully completed test case
=== === Returned value: ok