=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.5499.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.33.56/presence_suite.subscribe.37251.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.33.56/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@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:33:58
*** User 2022-01-27 15:33:58.357 ***
alicE_subscribe_1056@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:33:58.357 ***
alicE_subscribe_1056@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb39b34dd2b489e8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:58.357 ***
alicE_subscribe_1056@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-01-27 15:33:58.357 ***
alicE_subscribe_1056@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMDU2AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:33:58.358 ***
alicE_subscribe_1056@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:58.358 ***
alicE_subscribe_1056@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:33:58.358 ***
alicE_subscribe_1056@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7dcf0da51eabfd0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:58.358 ***
alicE_subscribe_1056@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:33:58.358 ***
alicE_subscribe_1056@localhost/res1 out
<iq type='set' id='7cc58c1e04a59c4d83ae26591ad97272'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:58.359 ***
alicE_subscribe_1056@localhost/res1 in
<iq id='7cc58c1e04a59c4d83ae26591ad97272' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1056@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:58.359 ***
alicE_subscribe_1056@localhost/res1 out
<iq type='set' id='01925ce178cca69cbdf53fd6f682f967'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:58.359 ***
alicE_subscribe_1056@localhost/res1 in
<iq type='result' id='01925ce178cca69cbdf53fd6f682f967'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:58.359 ***
alicE_subscribe_1056@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:58.360 ***
alicE_subscribe_1056@localhost/res1 in
<presence from='alicE_subscribe_1056@localhost/res1' to='alice_subscribe_1056@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:58.360 ***
bOb_subscribe_1056@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:33:58.361 ***
bOb_subscribe_1056@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='427b68d6f317b27c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:58.361 ***
bOb_subscribe_1056@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-01-27 15:33:58.361 ***
bOb_subscribe_1056@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTA1NgBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:33:58.361 ***
bOb_subscribe_1056@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:58.361 ***
bOb_subscribe_1056@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:33:58.361 ***
bOb_subscribe_1056@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='631f7bd25d5b159e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:58.362 ***
bOb_subscribe_1056@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:33:58.362 ***
bOb_subscribe_1056@localhost/res1 out
<iq type='set' id='0b3fc3de49e5c91f7e489f1ae9a9d176'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:58.362 ***
bOb_subscribe_1056@localhost/res1 in
<iq id='0b3fc3de49e5c91f7e489f1ae9a9d176' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1056@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:58.362 ***
bOb_subscribe_1056@localhost/res1 out
<iq type='set' id='350b6670d291d1306a0a1dcd923aa3c2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:58.362 ***
bOb_subscribe_1056@localhost/res1 in
<iq type='result' id='350b6670d291d1306a0a1dcd923aa3c2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:58.362 ***
bOb_subscribe_1056@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:58.363 ***
bOb_subscribe_1056@localhost/res1 in
<presence from='bOb_subscribe_1056@localhost/res1' to='bob_subscribe_1056@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:58.363 ***
alicE_subscribe_1056@localhost/res1 out
<iq type='set' id='7f45c59f01bdd2f8b76145ff2646de6d'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1056@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.364 ***
alicE_subscribe_1056@localhost/res1 in
<iq from='alicE_subscribe_1056@localhost' to='alicE_subscribe_1056@localhost/res1' id='pushfc7a3c84e000e2c6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1056@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.364 ***
alicE_subscribe_1056@localhost/res1 in
<iq from='alicE_subscribe_1056@localhost' to='alicE_subscribe_1056@localhost/res1' id='7f45c59f01bdd2f8b76145ff2646de6d' type='result'/>
*** User 2022-01-27 15:33:58.364 ***
alicE_subscribe_1056@localhost/res1 out
<iq to='alicE_subscribe_1056@localhost' id='pushfc7a3c84e000e2c6' type='result'/>
*** User 2022-01-27 15:33:58.365 ***
alicE_subscribe_1056@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_1056@localhost'/>
*** User 2022-01-27 15:33:58.366 ***
alicE_subscribe_1056@localhost/res1 in
<iq from='alicE_subscribe_1056@localhost' to='alicE_subscribe_1056@localhost/res1' id='push553dd53a45f53240' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1056@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.366 ***
alicE_subscribe_1056@localhost/res1 out
<iq to='alicE_subscribe_1056@localhost' id='push553dd53a45f53240' type='result'/>
*** User 2022-01-27 15:33:58.366 ***
bOb_subscribe_1056@localhost/res1 in
<presence from='alicE_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-27 15:33:58.366 ***
bOb_subscribe_1056@localhost/res1 out
<iq type='get' id='7b1c658c18e84dfae814d03d401e665a'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:33:58.367 ***
bOb_subscribe_1056@localhost/res1 in
<iq from='bOb_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' id='7b1c658c18e84dfae814d03d401e665a' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:33:58.367 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1056@localhost">>},
{<<"to">>,<<"bOb_subscribe_1056@localhost/res1">>},
{<<"id">>,<<"7b1c658c18e84dfae814d03d401e665a">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-01-27 15:33:58.367 ***
bOb_subscribe_1056@localhost/res1 out
<iq type='set' id='1361f3b9deab0834b62057ac64aa19b3'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1056@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.368 ***
bOb_subscribe_1056@localhost/res1 in
<iq from='bOb_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' id='push3f77b5c2608e6290' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1056@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.368 ***
bOb_subscribe_1056@localhost/res1 out
<iq to='bOb_subscribe_1056@localhost' id='push3f77b5c2608e6290' type='result'/>
*** User 2022-01-27 15:33:58.368 ***
bOb_subscribe_1056@localhost/res1 in
<iq from='bOb_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' id='1361f3b9deab0834b62057ac64aa19b3' type='result'/>
*** User 2022-01-27 15:33:58.368 ***
bOb_subscribe_1056@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_1056@localhost'/>
*** User 2022-01-27 15:33:58.369 ***
alicE_subscribe_1056@localhost/res1 in
<iq from='alicE_subscribe_1056@localhost' to='alicE_subscribe_1056@localhost/res1' id='push716ac97bbcfeaaec' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1056@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.369 ***
alicE_subscribe_1056@localhost/res1 in
<presence from='bOb_subscribe_1056@localhost' to='alicE_subscribe_1056@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-01-27 15:33:58.370 ***
alicE_subscribe_1056@localhost/res1 in
<presence from='bOb_subscribe_1056@localhost/res1' to='alice_subscribe_1056@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:58.370 ***
bOb_subscribe_1056@localhost/res1 in
<iq from='bOb_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' id='push548faf821f69116b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1056@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.370 ***
bOb_subscribe_1056@localhost/res1 out
<iq type='get' id='411b09e285e09c011380a273544ee02d'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:33:58.370 ***
bOb_subscribe_1056@localhost/res1 in
<iq from='bOb_subscribe_1056@localhost' to='bOb_subscribe_1056@localhost/res1' id='411b09e285e09c011380a273544ee02d' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1056@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:33:58.371 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1056@localhost">>},
{<<"to">>,<<"bOb_subscribe_1056@localhost/res1">>},
{<<"id">>,<<"411b09e285e09c011380a273544ee02d">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1056@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-01-27 15:33:58.371 ***
bOb_subscribe_1056@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:58.371 ***
alicE_subscribe_1056@localhost/res1 in
<presence from='bOb_subscribe_1056@localhost/res1' to='alice_subscribe_1056@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:58.371 ***
bOb_subscribe_1056@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-01-27 15:33:58.372 ***
alicE_subscribe_1056@localhost/res1 in
<presence from='bOb_subscribe_1056@localhost/res1' to='alice_subscribe_1056@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-01-27 15:33:58.372 ***
bOb_subscribe_1056@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:58.372 ***
bOb_subscribe_1056@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:58.372 ***
alicE_subscribe_1056@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:58.373 ***
alicE_subscribe_1056@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:58
=== successfully completed test case
=== === Returned value: ok