=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.3252.2>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.presence_SUITE.logs/run.2022-04-04_15.13.08/presence_suite.subscribe.155906.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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.presence_SUITE.logs/run.2022-04-04_15.13.08/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@cb94372a8ea7.2022-04-04_15.02.36"
=== Started at 2022-04-04 15:13:10
*** User 2022-04-04 15:13:10.465 ***
alicE_subscribe_2022@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-04-04 15:13:10.466 ***
alicE_subscribe_2022@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05c9072bc69c549b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:13:10.466 ***
alicE_subscribe_2022@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-04-04 15:13:10.466 ***
alicE_subscribe_2022@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yMDIyAG1hdHlncnlzYQ==</auth>
*** User 2022-04-04 15:13:10.467 ***
alicE_subscribe_2022@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:13:10.467 ***
alicE_subscribe_2022@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-04-04 15:13:10.467 ***
alicE_subscribe_2022@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='949ceb2dc032c29b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:13:10.467 ***
alicE_subscribe_2022@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-04-04 15:13:10.468 ***
alicE_subscribe_2022@localhost/res1 out
<iq type='set' id='d3eba1d233dbb250b659287b6875d439'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:13:10.468 ***
alicE_subscribe_2022@localhost/res1 in
<iq id='d3eba1d233dbb250b659287b6875d439' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_2022@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:13:10.468 ***
alicE_subscribe_2022@localhost/res1 out
<iq type='set' id='e55f881eb7c475e34b364a49036d32fe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:13:10.468 ***
alicE_subscribe_2022@localhost/res1 in
<iq type='result' id='e55f881eb7c475e34b364a49036d32fe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:13:10.468 ***
alicE_subscribe_2022@localhost/res1 out
<presence/>
*** User 2022-04-04 15:13:10.470 ***
alicE_subscribe_2022@localhost/res1 in
<presence from='alicE_subscribe_2022@localhost/res1' to='alice_subscribe_2022@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:13:10.471 ***
bOb_subscribe_2022@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-04-04 15:13:10.471 ***
bOb_subscribe_2022@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='058677192474c031' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:13:10.471 ***
bOb_subscribe_2022@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-04-04 15:13:10.471 ***
bOb_subscribe_2022@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjAyMgBtYWtyb2xpa2E=</auth>
*** User 2022-04-04 15:13:10.472 ***
bOb_subscribe_2022@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:13:10.472 ***
bOb_subscribe_2022@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-04-04 15:13:10.472 ***
bOb_subscribe_2022@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='785804c0609632c5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:13:10.472 ***
bOb_subscribe_2022@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-04-04 15:13:10.472 ***
bOb_subscribe_2022@localhost/res1 out
<iq type='set' id='508cad2a0ef96e51b8e79138a2858aad'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:13:10.473 ***
bOb_subscribe_2022@localhost/res1 in
<iq id='508cad2a0ef96e51b8e79138a2858aad' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_2022@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:13:10.473 ***
bOb_subscribe_2022@localhost/res1 out
<iq type='set' id='c26c61ed72035b1379aa63893188c28c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:13:10.473 ***
bOb_subscribe_2022@localhost/res1 in
<iq type='result' id='c26c61ed72035b1379aa63893188c28c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:13:10.473 ***
bOb_subscribe_2022@localhost/res1 out
<presence/>
*** User 2022-04-04 15:13:10.475 ***
bOb_subscribe_2022@localhost/res1 in
<presence from='bOb_subscribe_2022@localhost/res1' to='bob_subscribe_2022@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:13:10.475 ***
alicE_subscribe_2022@localhost/res1 out
<iq type='set' id='e183c21485cd6355c71f72eb0933cd55'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_2022@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.479 ***
alicE_subscribe_2022@localhost/res1 in
<iq from='alicE_subscribe_2022@localhost' to='alicE_subscribe_2022@localhost/res1' id='pushfb088c89f6d047c2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_2022@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.479 ***
alicE_subscribe_2022@localhost/res1 in
<iq from='alicE_subscribe_2022@localhost' to='alicE_subscribe_2022@localhost/res1' id='e183c21485cd6355c71f72eb0933cd55' type='result'/>
*** User 2022-04-04 15:13:10.479 ***
alicE_subscribe_2022@localhost/res1 out
<iq to='alicE_subscribe_2022@localhost' id='pushfb088c89f6d047c2' type='result'/>
*** User 2022-04-04 15:13:10.479 ***
alicE_subscribe_2022@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_2022@localhost'/>
*** User 2022-04-04 15:13:10.484 ***
alicE_subscribe_2022@localhost/res1 in
<iq from='alicE_subscribe_2022@localhost' to='alicE_subscribe_2022@localhost/res1' id='pushb1c9cda796be2203' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2022@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.484 ***
alicE_subscribe_2022@localhost/res1 out
<iq to='alicE_subscribe_2022@localhost' id='pushb1c9cda796be2203' type='result'/>
*** User 2022-04-04 15:13:10.484 ***
bOb_subscribe_2022@localhost/res1 in
<presence from='alicE_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-04-04 15:13:10.484 ***
bOb_subscribe_2022@localhost/res1 out
<iq type='get' id='731af0f98a59405efe0dc4badc43b7a2'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-04-04 15:13:10.497 ***
bOb_subscribe_2022@localhost/res1 in
<iq from='bOb_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' id='731af0f98a59405efe0dc4badc43b7a2' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-04-04 15:13:10.497 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_2022@localhost">>},
{<<"to">>,<<"bOb_subscribe_2022@localhost/res1">>},
{<<"id">>,<<"731af0f98a59405efe0dc4badc43b7a2">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-04-04 15:13:10.497 ***
bOb_subscribe_2022@localhost/res1 out
<iq type='set' id='d10269a867989d1b7495c325fe88be44'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_2022@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.533 ***
bOb_subscribe_2022@localhost/res1 in
<iq from='bOb_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' id='push7d86fc1d5c19b9db' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_2022@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.533 ***
bOb_subscribe_2022@localhost/res1 out
<iq to='bOb_subscribe_2022@localhost' id='push7d86fc1d5c19b9db' type='result'/>
*** User 2022-04-04 15:13:10.533 ***
bOb_subscribe_2022@localhost/res1 in
<iq from='bOb_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' id='d10269a867989d1b7495c325fe88be44' type='result'/>
*** User 2022-04-04 15:13:10.533 ***
bOb_subscribe_2022@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_2022@localhost'/>
*** User 2022-04-04 15:13:10.544 ***
alicE_subscribe_2022@localhost/res1 in
<iq from='alicE_subscribe_2022@localhost' to='alicE_subscribe_2022@localhost/res1' id='push5a8ee61d1f130e14' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_2022@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.544 ***
alicE_subscribe_2022@localhost/res1 in
<presence from='bOb_subscribe_2022@localhost' to='alicE_subscribe_2022@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-04-04 15:13:10.544 ***
alicE_subscribe_2022@localhost/res1 in
<presence from='bOb_subscribe_2022@localhost/res1' to='alice_subscribe_2022@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:13:10.544 ***
bOb_subscribe_2022@localhost/res1 in
<iq from='bOb_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' id='pushae0578434c88337a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2022@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.544 ***
bOb_subscribe_2022@localhost/res1 out
<iq type='get' id='7c88f4f8e244df65a32821956d5c3b41'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-04-04 15:13:10.548 ***
bOb_subscribe_2022@localhost/res1 in
<iq from='bOb_subscribe_2022@localhost' to='bOb_subscribe_2022@localhost/res1' id='7c88f4f8e244df65a32821956d5c3b41' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2022@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-04-04 15:13:10.548 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_2022@localhost">>},
{<<"to">>,<<"bOb_subscribe_2022@localhost/res1">>},
{<<"id">>,<<"7c88f4f8e244df65a32821956d5c3b41">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2022@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-04-04 15:13:10.548 ***
bOb_subscribe_2022@localhost/res1 out
<presence/>
*** User 2022-04-04 15:13:10.549 ***
alicE_subscribe_2022@localhost/res1 in
<presence from='bOb_subscribe_2022@localhost/res1' to='alice_subscribe_2022@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:13:10.549 ***
bOb_subscribe_2022@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-04-04 15:13:10.550 ***
alicE_subscribe_2022@localhost/res1 in
<presence from='bOb_subscribe_2022@localhost/res1' to='alice_subscribe_2022@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-04-04 15:13:10.550 ***
bOb_subscribe_2022@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:13:10.550 ***
bOb_subscribe_2022@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:13:10.550 ***
alicE_subscribe_2022@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:13:10.550 ***
alicE_subscribe_2022@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:13:10
=== successfully completed test case
=== === Returned value: ok