=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.4160.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.32.04/presence_suite.subscribe.52098.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.32.04/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@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:32:05
*** User 2022-01-27 15:32:05.805 ***
alicE_subscribe_844@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-01-27 15:32:05.805 ***
alicE_subscribe_844@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='809cf412eb793285' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:32:05.805 ***
alicE_subscribe_844@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-01-27 15:32:05.805 ***
alicE_subscribe_844@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV84NDQAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:32:05.817 ***
alicE_subscribe_844@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:32:05.817 ***
alicE_subscribe_844@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-01-27 15:32:05.817 ***
alicE_subscribe_844@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='151c90a3113bb7b8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:32:05.817 ***
alicE_subscribe_844@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-01-27 15:32:05.817 ***
alicE_subscribe_844@localhost/res1 out
<iq type='set' id='ad89cc9b16b8d60568d48a009c56bc70'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:32:05.817 ***
alicE_subscribe_844@localhost/res1 in
<iq id='ad89cc9b16b8d60568d48a009c56bc70' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_844@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:32:05.818 ***
alicE_subscribe_844@localhost/res1 out
<iq type='set' id='0cba94cf0c1870c65264937b91499d0d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:32:05.818 ***
alicE_subscribe_844@localhost/res1 in
<iq type='result' id='0cba94cf0c1870c65264937b91499d0d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:32:05.818 ***
alicE_subscribe_844@localhost/res1 out
<presence/>
*** User 2022-01-27 15:32:05.819 ***
alicE_subscribe_844@localhost/res1 in
<presence from='alicE_subscribe_844@localhost/res1' to='alice_subscribe_844@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:32:05.819 ***
bOb_subscribe_844@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-01-27 15:32:05.820 ***
bOb_subscribe_844@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7b0a5a847155fdb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:32:05.820 ***
bOb_subscribe_844@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-01-27 15:32:05.820 ***
bOb_subscribe_844@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfODQ0AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:32:05.821 ***
bOb_subscribe_844@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:32:05.821 ***
bOb_subscribe_844@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-01-27 15:32:05.821 ***
bOb_subscribe_844@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='645bd8fd3310bc3a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:32:05.821 ***
bOb_subscribe_844@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-01-27 15:32:05.821 ***
bOb_subscribe_844@localhost/res1 out
<iq type='set' id='d8b964986aead5e0832d8d35500bc12a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:32:05.822 ***
bOb_subscribe_844@localhost/res1 in
<iq id='d8b964986aead5e0832d8d35500bc12a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_844@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:32:05.822 ***
bOb_subscribe_844@localhost/res1 out
<iq type='set' id='14ef27ae64ae4df6c7f6795fa96e6395'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:32:05.822 ***
bOb_subscribe_844@localhost/res1 in
<iq type='result' id='14ef27ae64ae4df6c7f6795fa96e6395'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:32:05.822 ***
bOb_subscribe_844@localhost/res1 out
<presence/>
*** User 2022-01-27 15:32:05.823 ***
bOb_subscribe_844@localhost/res1 in
<presence from='bOb_subscribe_844@localhost/res1' to='bob_subscribe_844@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:32:05.823 ***
alicE_subscribe_844@localhost/res1 out
<iq type='set' id='115cb8e1cd719a56fd1e57b068316346'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_844@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.824 ***
alicE_subscribe_844@localhost/res1 in
<iq from='alicE_subscribe_844@localhost' to='alicE_subscribe_844@localhost/res1' id='pushc807c8a358478cd8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_844@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.824 ***
alicE_subscribe_844@localhost/res1 in
<iq from='alicE_subscribe_844@localhost' to='alicE_subscribe_844@localhost/res1' id='115cb8e1cd719a56fd1e57b068316346' type='result'/>
*** User 2022-01-27 15:32:05.824 ***
alicE_subscribe_844@localhost/res1 out
<iq to='alicE_subscribe_844@localhost' id='pushc807c8a358478cd8' type='result'/>
*** User 2022-01-27 15:32:05.824 ***
alicE_subscribe_844@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_844@localhost'/>
*** User 2022-01-27 15:32:05.826 ***
alicE_subscribe_844@localhost/res1 in
<iq from='alicE_subscribe_844@localhost' to='alicE_subscribe_844@localhost/res1' id='pusha674e53e445efb4f' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_844@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.826 ***
alicE_subscribe_844@localhost/res1 out
<iq to='alicE_subscribe_844@localhost' id='pusha674e53e445efb4f' type='result'/>
*** User 2022-01-27 15:32:05.826 ***
bOb_subscribe_844@localhost/res1 in
<presence from='alicE_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-27 15:32:05.826 ***
bOb_subscribe_844@localhost/res1 out
<iq type='get' id='5d02820518f943c73ccb0983074ea29b'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:32:05.827 ***
bOb_subscribe_844@localhost/res1 in
<iq from='bOb_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' id='5d02820518f943c73ccb0983074ea29b' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:32:05.827 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_844@localhost">>},
{<<"to">>,<<"bOb_subscribe_844@localhost/res1">>},
{<<"id">>,<<"5d02820518f943c73ccb0983074ea29b">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-01-27 15:32:05.827 ***
bOb_subscribe_844@localhost/res1 out
<iq type='set' id='6f745ec757b699c555cd0d44b2661f2f'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_844@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.828 ***
bOb_subscribe_844@localhost/res1 in
<iq from='bOb_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' id='push338037b8f1157ab5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_844@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.828 ***
bOb_subscribe_844@localhost/res1 out
<iq to='bOb_subscribe_844@localhost' id='push338037b8f1157ab5' type='result'/>
*** User 2022-01-27 15:32:05.828 ***
bOb_subscribe_844@localhost/res1 in
<iq from='bOb_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' id='6f745ec757b699c555cd0d44b2661f2f' type='result'/>
*** User 2022-01-27 15:32:05.828 ***
bOb_subscribe_844@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_844@localhost'/>
*** User 2022-01-27 15:32:05.830 ***
alicE_subscribe_844@localhost/res1 in
<iq from='alicE_subscribe_844@localhost' to='alicE_subscribe_844@localhost/res1' id='pushd5de20ab9194a6e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_844@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.830 ***
alicE_subscribe_844@localhost/res1 in
<presence from='bOb_subscribe_844@localhost' to='alicE_subscribe_844@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-01-27 15:32:05.830 ***
alicE_subscribe_844@localhost/res1 in
<presence from='bOb_subscribe_844@localhost/res1' to='alice_subscribe_844@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:32:05.830 ***
bOb_subscribe_844@localhost/res1 in
<iq from='bOb_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' id='push0ce636638093519f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_844@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.830 ***
bOb_subscribe_844@localhost/res1 out
<iq type='get' id='8bb0e49c26bcac16b9ca0e0cd2d0ad44'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:32:05.831 ***
bOb_subscribe_844@localhost/res1 in
<iq from='bOb_subscribe_844@localhost' to='bOb_subscribe_844@localhost/res1' id='8bb0e49c26bcac16b9ca0e0cd2d0ad44' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_844@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:32:05.831 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_844@localhost">>},
{<<"to">>,<<"bOb_subscribe_844@localhost/res1">>},
{<<"id">>,<<"8bb0e49c26bcac16b9ca0e0cd2d0ad44">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_844@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-01-27 15:32:05.831 ***
bOb_subscribe_844@localhost/res1 out
<presence/>
*** User 2022-01-27 15:32:05.832 ***
alicE_subscribe_844@localhost/res1 in
<presence from='bOb_subscribe_844@localhost/res1' to='alice_subscribe_844@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:32:05.832 ***
bOb_subscribe_844@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-01-27 15:32:05.832 ***
alicE_subscribe_844@localhost/res1 in
<presence from='bOb_subscribe_844@localhost/res1' to='alice_subscribe_844@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-01-27 15:32:05.833 ***
bOb_subscribe_844@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:32:05.833 ***
bOb_subscribe_844@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:32:05.833 ***
alicE_subscribe_844@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:32:05.833 ***
alicE_subscribe_844@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:32:05
=== successfully completed test case
=== === Returned value: ok