=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.6256.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.presence_SUITE.logs/run.2022-03-18_10.58.22/presence_suite.subscribe.51202.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@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.presence_SUITE.logs/run.2022-03-18_10.58.22/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@fbe05ecb9552.2022-03-18_10.50.03"
=== Started at 2022-03-18 10:58:23
*** User 2022-03-18 10:58:23.807 ***
alicE_subscribe_1194@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-18 10:58:23.810 ***
alicE_subscribe_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad4577963731bf71' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:23.810 ***
alicE_subscribe_1194@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>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-18 10:58:23.810 ***
alicE_subscribe_1194@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMTk0AG1hdHlncnlzYQ==</auth>
*** User 2022-03-18 10:58:23.812 ***
alicE_subscribe_1194@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:23.812 ***
alicE_subscribe_1194@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-18 10:58:23.813 ***
alicE_subscribe_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33ae36c11c59fea3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:23.813 ***
alicE_subscribe_1194@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-18 10:58:23.813 ***
alicE_subscribe_1194@localhost/res1 out
<iq type='set' id='eb2dae982d4615856b7663fee30bc42f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:23.815 ***
alicE_subscribe_1194@localhost/res1 in
<iq id='eb2dae982d4615856b7663fee30bc42f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1194@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:23.815 ***
alicE_subscribe_1194@localhost/res1 out
<iq type='set' id='59585e64ac9bfdfcd16a07803c5a986c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:23.816 ***
alicE_subscribe_1194@localhost/res1 in
<iq type='result' id='59585e64ac9bfdfcd16a07803c5a986c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:23.816 ***
alicE_subscribe_1194@localhost/res1 out
<presence/>
*** User 2022-03-18 10:58:23.817 ***
alicE_subscribe_1194@localhost/res1 in
<presence from='alicE_subscribe_1194@localhost/res1' to='alice_subscribe_1194@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:23.818 ***
bOb_subscribe_1194@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-18 10:58:23.819 ***
bOb_subscribe_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='93a72873d70b30b8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:23.819 ***
bOb_subscribe_1194@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>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-18 10:58:23.820 ***
bOb_subscribe_1194@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTE5NABtYWtyb2xpa2E=</auth>
*** User 2022-03-18 10:58:23.822 ***
bOb_subscribe_1194@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:23.822 ***
bOb_subscribe_1194@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-18 10:58:23.823 ***
bOb_subscribe_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad4675bdc0efa8fe' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:23.823 ***
bOb_subscribe_1194@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-18 10:58:23.823 ***
bOb_subscribe_1194@localhost/res1 out
<iq type='set' id='5ef6b20ccfa4a39c9fc2e988eae28873'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:23.823 ***
bOb_subscribe_1194@localhost/res1 in
<iq id='5ef6b20ccfa4a39c9fc2e988eae28873' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1194@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:23.823 ***
bOb_subscribe_1194@localhost/res1 out
<iq type='set' id='cb5f27c7de019d7fd5ec6d9609352a4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:23.824 ***
bOb_subscribe_1194@localhost/res1 in
<iq type='result' id='cb5f27c7de019d7fd5ec6d9609352a4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:23.824 ***
bOb_subscribe_1194@localhost/res1 out
<presence/>
*** User 2022-03-18 10:58:23.825 ***
bOb_subscribe_1194@localhost/res1 in
<presence from='bOb_subscribe_1194@localhost/res1' to='bob_subscribe_1194@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:23.825 ***
alicE_subscribe_1194@localhost/res1 out
<iq type='set' id='99c67490e5251faad9f054ddba927395'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1194@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.825 ***
alicE_subscribe_1194@localhost/res1 in
<iq from='alicE_subscribe_1194@localhost' to='alicE_subscribe_1194@localhost/res1' id='push9198f5de001e4dbe' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1194@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.826 ***
alicE_subscribe_1194@localhost/res1 in
<iq from='alicE_subscribe_1194@localhost' to='alicE_subscribe_1194@localhost/res1' id='99c67490e5251faad9f054ddba927395' type='result'/>
*** User 2022-03-18 10:58:23.826 ***
alicE_subscribe_1194@localhost/res1 out
<iq to='alicE_subscribe_1194@localhost' id='push9198f5de001e4dbe' type='result'/>
*** User 2022-03-18 10:58:23.826 ***
alicE_subscribe_1194@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_1194@localhost'/>
*** User 2022-03-18 10:58:23.827 ***
alicE_subscribe_1194@localhost/res1 in
<iq from='alicE_subscribe_1194@localhost' to='alicE_subscribe_1194@localhost/res1' id='pushd246f015fb5b9e9b' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1194@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.827 ***
alicE_subscribe_1194@localhost/res1 out
<iq to='alicE_subscribe_1194@localhost' id='pushd246f015fb5b9e9b' type='result'/>
*** User 2022-03-18 10:58:23.827 ***
bOb_subscribe_1194@localhost/res1 in
<presence from='alicE_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-18 10:58:23.827 ***
bOb_subscribe_1194@localhost/res1 out
<iq type='get' id='c78ba82f458289f361f34c616f9a0602'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-18 10:58:23.828 ***
bOb_subscribe_1194@localhost/res1 in
<iq from='bOb_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' id='c78ba82f458289f361f34c616f9a0602' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-18 10:58:23.828 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1194@localhost">>},
{<<"to">>,<<"bOb_subscribe_1194@localhost/res1">>},
{<<"id">>,<<"c78ba82f458289f361f34c616f9a0602">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-03-18 10:58:23.828 ***
bOb_subscribe_1194@localhost/res1 out
<iq type='set' id='1dc0659e7e39996cc34940c6c6d99cc8'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1194@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.829 ***
bOb_subscribe_1194@localhost/res1 in
<iq from='bOb_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' id='pushf5fb226991a3b3b1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1194@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.829 ***
bOb_subscribe_1194@localhost/res1 out
<iq to='bOb_subscribe_1194@localhost' id='pushf5fb226991a3b3b1' type='result'/>
*** User 2022-03-18 10:58:23.829 ***
bOb_subscribe_1194@localhost/res1 in
<iq from='bOb_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' id='1dc0659e7e39996cc34940c6c6d99cc8' type='result'/>
*** User 2022-03-18 10:58:23.829 ***
bOb_subscribe_1194@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_1194@localhost'/>
*** User 2022-03-18 10:58:23.831 ***
alicE_subscribe_1194@localhost/res1 in
<iq from='alicE_subscribe_1194@localhost' to='alicE_subscribe_1194@localhost/res1' id='push18e9e5ec126743ed' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1194@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.831 ***
alicE_subscribe_1194@localhost/res1 in
<presence from='bOb_subscribe_1194@localhost' to='alicE_subscribe_1194@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-03-18 10:58:23.831 ***
alicE_subscribe_1194@localhost/res1 in
<presence from='bOb_subscribe_1194@localhost/res1' to='alice_subscribe_1194@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:23.832 ***
bOb_subscribe_1194@localhost/res1 in
<iq from='bOb_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' id='push68ac9bc5fb2b528e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1194@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.832 ***
bOb_subscribe_1194@localhost/res1 out
<iq type='get' id='df645487761638a0c6635fe7054e5829'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-18 10:58:23.832 ***
bOb_subscribe_1194@localhost/res1 in
<iq from='bOb_subscribe_1194@localhost' to='bOb_subscribe_1194@localhost/res1' id='df645487761638a0c6635fe7054e5829' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1194@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-18 10:58:23.833 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1194@localhost">>},
{<<"to">>,<<"bOb_subscribe_1194@localhost/res1">>},
{<<"id">>,<<"df645487761638a0c6635fe7054e5829">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1194@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-03-18 10:58:23.833 ***
bOb_subscribe_1194@localhost/res1 out
<presence/>
*** User 2022-03-18 10:58:23.833 ***
alicE_subscribe_1194@localhost/res1 in
<presence from='bOb_subscribe_1194@localhost/res1' to='alice_subscribe_1194@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:23.833 ***
bOb_subscribe_1194@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-03-18 10:58:23.834 ***
alicE_subscribe_1194@localhost/res1 in
<presence from='bOb_subscribe_1194@localhost/res1' to='alice_subscribe_1194@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-03-18 10:58:23.834 ***
bOb_subscribe_1194@localhost/res1 out
</stream:stream>
*** User 2022-03-18 10:58:23.834 ***
bOb_subscribe_1194@localhost/res1 in
</stream:stream>
*** User 2022-03-18 10:58:23.834 ***
alicE_subscribe_1194@localhost/res1 out
</stream:stream>
*** User 2022-03-18 10:58:23.835 ***
alicE_subscribe_1194@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-18 10:58:23
=== successfully completed test case
=== === Returned value: ok