=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.14759.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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.presence_SUITE.logs/run.2022-06-22_08.55.24/presence_suite.subscribe.75266.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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.presence_SUITE.logs/run.2022-06-22_08.55.24/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@838f153dfbc9.2022-06-22_08.43.58"
=== Started at 2022-06-22 08:55:26
*** User 2022-06-22 08:55:26.660 ***🔗
alicE_subscribe_1378@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-06-22 08:55:26.660 ***🔗
alicE_subscribe_1378@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='572240ec3e2b054a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:26.660 ***🔗
alicE_subscribe_1378@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-06-22 08:55:26.660 ***🔗
alicE_subscribe_1378@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMzc4AG1hdHlncnlzYQ==</auth>
*** User 2022-06-22 08:55:26.663 ***🔗
alicE_subscribe_1378@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:55:26.663 ***🔗
alicE_subscribe_1378@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-06-22 08:55:26.663 ***🔗
alicE_subscribe_1378@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfad394349d4db36' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:26.663 ***🔗
alicE_subscribe_1378@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-06-22 08:55:26.663 ***🔗
alicE_subscribe_1378@localhost/res1 out
<iq type='set' id='09b6f6d060a6309c1a318571eb078a68'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:55:26.664 ***🔗
alicE_subscribe_1378@localhost/res1 in
<iq id='09b6f6d060a6309c1a318571eb078a68' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1378@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:55:26.664 ***🔗
alice_subscribe_1378@localhost/res1 out
<iq type='set' id='f35137b240f1b786d89c82efab12fd83'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:26.664 ***🔗
alice_subscribe_1378@localhost/res1 in
<iq type='result' id='f35137b240f1b786d89c82efab12fd83'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:26.665 ***🔗
alice_subscribe_1378@localhost/res1 out
<presence/>
*** User 2022-06-22 08:55:26.666 ***🔗
alice_subscribe_1378@localhost/res1 in
<presence from='alice_subscribe_1378@localhost/res1' to='alice_subscribe_1378@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:26.667 ***🔗
bOb_subscribe_1378@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-06-22 08:55:26.667 ***🔗
bOb_subscribe_1378@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd6ddb838c5e408e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:26.667 ***🔗
bOb_subscribe_1378@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-06-22 08:55:26.668 ***🔗
bOb_subscribe_1378@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTM3OABtYWtyb2xpa2E=</auth>
*** User 2022-06-22 08:55:26.669 ***🔗
bOb_subscribe_1378@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:55:26.670 ***🔗
bOb_subscribe_1378@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-06-22 08:55:26.670 ***🔗
bOb_subscribe_1378@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94736e650774f4d9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:55:26.670 ***🔗
bOb_subscribe_1378@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-06-22 08:55:26.670 ***🔗
bOb_subscribe_1378@localhost/res1 out
<iq type='set' id='604fc940cab29236a4113077d20dd6bc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:55:26.670 ***🔗
bOb_subscribe_1378@localhost/res1 in
<iq id='604fc940cab29236a4113077d20dd6bc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1378@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:55:26.671 ***🔗
bob_subscribe_1378@localhost/res1 out
<iq type='set' id='e4e64b1ee90af9adbabd996d1859a606'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:26.671 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq type='result' id='e4e64b1ee90af9adbabd996d1859a606'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:55:26.671 ***🔗
bob_subscribe_1378@localhost/res1 out
<presence/>
*** User 2022-06-22 08:55:26.758 ***🔗
bob_subscribe_1378@localhost/res1 in
<presence from='bob_subscribe_1378@localhost/res1' to='bob_subscribe_1378@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:26.758 ***🔗
alice_subscribe_1378@localhost/res1 out
<iq type='set' id='1f901b9a3d273389b0f1dbea6a6cfaf2'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1378@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.763 ***🔗
alice_subscribe_1378@localhost/res1 in
<iq from='alice_subscribe_1378@localhost' to='alice_subscribe_1378@localhost/res1' id='push060abb40cebf6648' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1378@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.763 ***🔗
alice_subscribe_1378@localhost/res1 in
<iq from='alice_subscribe_1378@localhost' to='alice_subscribe_1378@localhost/res1' id='1f901b9a3d273389b0f1dbea6a6cfaf2' type='result'/>
*** User 2022-06-22 08:55:26.763 ***🔗
alice_subscribe_1378@localhost/res1 out
<iq to='alice_subscribe_1378@localhost' id='push060abb40cebf6648' type='result'/>
*** User 2022-06-22 08:55:26.763 ***🔗
alice_subscribe_1378@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1378@localhost'/>
*** User 2022-06-22 08:55:26.770 ***🔗
alice_subscribe_1378@localhost/res1 in
<iq from='alice_subscribe_1378@localhost' to='alice_subscribe_1378@localhost/res1' id='push4bfa0b0ba2cfb488' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1378@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.770 ***🔗
alice_subscribe_1378@localhost/res1 out
<iq to='alice_subscribe_1378@localhost' id='push4bfa0b0ba2cfb488' type='result'/>
*** User 2022-06-22 08:55:26.770 ***🔗
bob_subscribe_1378@localhost/res1 in
<presence from='alice_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-06-22 08:55:26.770 ***🔗
bob_subscribe_1378@localhost/res1 out
<iq type='get' id='67607421a8a3e06c614315808827e180'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 08:55:26.858 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq from='bob_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' id='67607421a8a3e06c614315808827e180' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 08:55:26.859 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1378@localhost">>},
{<<"to">>,<<"bob_subscribe_1378@localhost/res1">>},
{<<"id">>,<<"67607421a8a3e06c614315808827e180">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-06-22 08:55:26.859 ***🔗
bob_subscribe_1378@localhost/res1 out
<iq type='set' id='d88585a4350b6141d2c9d09c501c8129'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1378@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.862 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq from='bob_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' id='pushd308e85a068cc5f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1378@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.862 ***🔗
bob_subscribe_1378@localhost/res1 out
<iq to='bob_subscribe_1378@localhost' id='pushd308e85a068cc5f0' type='result'/>
*** User 2022-06-22 08:55:26.862 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq from='bob_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' id='d88585a4350b6141d2c9d09c501c8129' type='result'/>
*** User 2022-06-22 08:55:26.862 ***🔗
bob_subscribe_1378@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1378@localhost'/>
*** User 2022-06-22 08:55:26.870 ***🔗
alice_subscribe_1378@localhost/res1 in
<iq from='alice_subscribe_1378@localhost' to='alice_subscribe_1378@localhost/res1' id='push31bdb45f7e32ce1b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1378@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.870 ***🔗
alice_subscribe_1378@localhost/res1 in
<presence from='bob_subscribe_1378@localhost' to='alice_subscribe_1378@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-06-22 08:55:26.870 ***🔗
alice_subscribe_1378@localhost/res1 in
<presence from='bob_subscribe_1378@localhost/res1' to='alice_subscribe_1378@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:26.871 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq from='bob_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' id='pushe05cb4b5fdd94535' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1378@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.871 ***🔗
bob_subscribe_1378@localhost/res1 out
<iq type='get' id='54e102f0a166aea9501f083444018b5b'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 08:55:26.878 ***🔗
bob_subscribe_1378@localhost/res1 in
<iq from='bob_subscribe_1378@localhost' to='bob_subscribe_1378@localhost/res1' id='54e102f0a166aea9501f083444018b5b' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1378@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 08:55:26.878 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1378@localhost">>},
{<<"to">>,<<"bob_subscribe_1378@localhost/res1">>},
{<<"id">>,<<"54e102f0a166aea9501f083444018b5b">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1378@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-06-22 08:55:26.878 ***🔗
bob_subscribe_1378@localhost/res1 out
<presence/>
*** User 2022-06-22 08:55:26.956 ***🔗
alice_subscribe_1378@localhost/res1 in
<presence from='bob_subscribe_1378@localhost/res1' to='alice_subscribe_1378@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:55:26.956 ***🔗
bob_subscribe_1378@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-06-22 08:55:26.957 ***🔗
alice_subscribe_1378@localhost/res1 in
<presence from='bob_subscribe_1378@localhost/res1' to='alice_subscribe_1378@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-06-22 08:55:26.958 ***🔗
bob_subscribe_1378@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:55:26.958 ***🔗
bob_subscribe_1378@localhost/res1 in
</stream:stream>
*** User 2022-06-22 08:55:26.958 ***🔗
alice_subscribe_1378@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:55:26.959 ***🔗
alice_subscribe_1378@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 08:55:26
=== successfully completed test case
=== === Returned value: ok