=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.13541.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/presence_suite.subscribe.67458.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.presence_SUITE.logs/run.2022-05-25_10.49.16/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@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:49:18
*** User 2022-05-25 10:49:18.649 ***
alicE_subscribe_1248@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-05-25 10:49:18.650 ***
alicE_subscribe_1248@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2af4dc08105deec9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:49:18.650 ***
alicE_subscribe_1248@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-05-25 10:49:18.650 ***
alicE_subscribe_1248@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMjQ4AG1hdHlncnlzYQ==</auth>
*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_1248@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_1248@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-05-25 10:49:18.652 ***
alicE_subscribe_1248@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6dde1f46cf3fee2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:49:18.652 ***
alicE_subscribe_1248@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-05-25 10:49:18.652 ***
alicE_subscribe_1248@localhost/res1 out
<iq type='set' id='ab75a66140732ae42659701002871fd6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:49:18.653 ***
alicE_subscribe_1248@localhost/res1 in
<iq id='ab75a66140732ae42659701002871fd6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1248@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_1248@localhost/res1 out
<iq type='set' id='824a38f5eb68cc62a9c82084dbff68e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_1248@localhost/res1 in
<iq type='result' id='824a38f5eb68cc62a9c82084dbff68e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:49:18.653 ***
alice_subscribe_1248@localhost/res1 out
<presence/>
*** User 2022-05-25 10:49:18.655 ***
alice_subscribe_1248@localhost/res1 in
<presence from='alice_subscribe_1248@localhost/res1' to='alice_subscribe_1248@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:49:18.674 ***
bOb_subscribe_1248@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-05-25 10:49:18.675 ***
bOb_subscribe_1248@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e61a7171a8afab8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:49:18.675 ***
bOb_subscribe_1248@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-05-25 10:49:18.675 ***
bOb_subscribe_1248@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTI0OABtYWtyb2xpa2E=</auth>
*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_1248@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_1248@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-05-25 10:49:18.677 ***
bOb_subscribe_1248@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='042549801c99c7d8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_1248@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-05-25 10:49:18.677 ***
bOb_subscribe_1248@localhost/res1 out
<iq type='set' id='280bafffbc97365d160d68a64f8007d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:49:18.677 ***
bOb_subscribe_1248@localhost/res1 in
<iq id='280bafffbc97365d160d68a64f8007d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1248@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_1248@localhost/res1 out
<iq type='set' id='8d7793474603693195303560b5c0af8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_1248@localhost/res1 in
<iq type='result' id='8d7793474603693195303560b5c0af8c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:49:18.678 ***
bob_subscribe_1248@localhost/res1 out
<presence/>
*** User 2022-05-25 10:49:18.680 ***
bob_subscribe_1248@localhost/res1 in
<presence from='bob_subscribe_1248@localhost/res1' to='bob_subscribe_1248@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:49:18.680 ***
alice_subscribe_1248@localhost/res1 out
<iq type='set' id='2b1843a8a4432deaad02bafdbeec7d66'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1248@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.685 ***
alice_subscribe_1248@localhost/res1 in
<iq from='alice_subscribe_1248@localhost' to='alice_subscribe_1248@localhost/res1' id='pushfb32e5420c880373' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1248@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.685 ***
alice_subscribe_1248@localhost/res1 in
<iq from='alice_subscribe_1248@localhost' to='alice_subscribe_1248@localhost/res1' id='2b1843a8a4432deaad02bafdbeec7d66' type='result'/>
*** User 2022-05-25 10:49:18.685 ***
alice_subscribe_1248@localhost/res1 out
<iq to='alice_subscribe_1248@localhost' id='pushfb32e5420c880373' type='result'/>
*** User 2022-05-25 10:49:18.685 ***
alice_subscribe_1248@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1248@localhost'/>
*** User 2022-05-25 10:49:18.774 ***
alice_subscribe_1248@localhost/res1 in
<iq from='alice_subscribe_1248@localhost' to='alice_subscribe_1248@localhost/res1' id='pushc5971722eb168a8a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1248@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.775 ***
alice_subscribe_1248@localhost/res1 out
<iq to='alice_subscribe_1248@localhost' id='pushc5971722eb168a8a' type='result'/>
*** User 2022-05-25 10:49:18.775 ***
bob_subscribe_1248@localhost/res1 in
<presence from='alice_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-05-25 10:49:18.775 ***
bob_subscribe_1248@localhost/res1 out
<iq type='get' id='14a34b25718824397e2cf2e7183316ab'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-05-25 10:49:18.777 ***
bob_subscribe_1248@localhost/res1 in
<iq from='bob_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' id='14a34b25718824397e2cf2e7183316ab' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-05-25 10:49:18.777 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1248@localhost">>},
{<<"to">>,<<"bob_subscribe_1248@localhost/res1">>},
{<<"id">>,<<"14a34b25718824397e2cf2e7183316ab">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-05-25 10:49:18.777 ***
bob_subscribe_1248@localhost/res1 out
<iq type='set' id='4b87c870536e394d0c65ac173728f470'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1248@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.780 ***
bob_subscribe_1248@localhost/res1 in
<iq from='bob_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' id='push4886d5efd64dfb13' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1248@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.781 ***
bob_subscribe_1248@localhost/res1 out
<iq to='bob_subscribe_1248@localhost' id='push4886d5efd64dfb13' type='result'/>
*** User 2022-05-25 10:49:18.781 ***
bob_subscribe_1248@localhost/res1 in
<iq from='bob_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' id='4b87c870536e394d0c65ac173728f470' type='result'/>
*** User 2022-05-25 10:49:18.781 ***
bob_subscribe_1248@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1248@localhost'/>
*** User 2022-05-25 10:49:18.874 ***
alice_subscribe_1248@localhost/res1 in
<iq from='alice_subscribe_1248@localhost' to='alice_subscribe_1248@localhost/res1' id='push06a46a67d5dc5fc0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1248@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.874 ***
alice_subscribe_1248@localhost/res1 in
<presence from='bob_subscribe_1248@localhost' to='alice_subscribe_1248@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-05-25 10:49:18.874 ***
alice_subscribe_1248@localhost/res1 in
<presence from='bob_subscribe_1248@localhost/res1' to='alice_subscribe_1248@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:49:18.875 ***
bob_subscribe_1248@localhost/res1 in
<iq from='bob_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' id='pushe6d1420d0c3f94d3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1248@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.875 ***
bob_subscribe_1248@localhost/res1 out
<iq type='get' id='677a66e8c1f00a83967fc3578e364455'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-05-25 10:49:18.876 ***
bob_subscribe_1248@localhost/res1 in
<iq from='bob_subscribe_1248@localhost' to='bob_subscribe_1248@localhost/res1' id='677a66e8c1f00a83967fc3578e364455' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1248@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-05-25 10:49:18.877 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1248@localhost">>},
{<<"to">>,<<"bob_subscribe_1248@localhost/res1">>},
{<<"id">>,<<"677a66e8c1f00a83967fc3578e364455">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1248@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-05-25 10:49:18.877 ***
bob_subscribe_1248@localhost/res1 out
<presence/>
*** User 2022-05-25 10:49:18.877 ***
alice_subscribe_1248@localhost/res1 in
<presence from='bob_subscribe_1248@localhost/res1' to='alice_subscribe_1248@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:49:18.877 ***
bob_subscribe_1248@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-05-25 10:49:18.878 ***
alice_subscribe_1248@localhost/res1 in
<presence from='bob_subscribe_1248@localhost/res1' to='alice_subscribe_1248@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-05-25 10:49:18.878 ***
bob_subscribe_1248@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:49:18.878 ***
bob_subscribe_1248@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:49:18.878 ***
alice_subscribe_1248@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:49:18.878 ***
alice_subscribe_1248@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:49:18
=== successfully completed test case
=== === Returned value: ok