=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.32174.1>},
{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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.34.54/presence_suite.subscribe.103043.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.presence_SUITE.logs/run.2022-01-27_15.34.54/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@43a5deef6262.2022-01-27_15.25.11"
=== Started at 2022-01-27 15:34:56
*** User 2022-01-27 15:34:56.637 ***
alicE_subscribe_1843@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:34:56.638 ***
alicE_subscribe_1843@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be048653918d45c4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:56.638 ***
alicE_subscribe_1843@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:34:56.638 ***
alicE_subscribe_1843@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xODQzAG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 15:34:56.639 ***
alicE_subscribe_1843@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:56.640 ***
alicE_subscribe_1843@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:34:56.640 ***
alicE_subscribe_1843@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3048ca5d89f7a29b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:56.640 ***
alicE_subscribe_1843@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:34:56.640 ***
alicE_subscribe_1843@localhost/res1 out
<iq type='set' id='294d73c1ab3974d7f9db452a7c071271'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:56.640 ***
alicE_subscribe_1843@localhost/res1 in
<iq id='294d73c1ab3974d7f9db452a7c071271' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1843@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:56.641 ***
alicE_subscribe_1843@localhost/res1 out
<iq type='set' id='6003cd679f840cd07c865f948a8d84e4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:56.641 ***
alicE_subscribe_1843@localhost/res1 in
<iq type='result' id='6003cd679f840cd07c865f948a8d84e4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:56.641 ***
alicE_subscribe_1843@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:56.643 ***
alicE_subscribe_1843@localhost/res1 in
<presence from='alicE_subscribe_1843@localhost/res1' to='alice_subscribe_1843@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:56.643 ***
bOb_subscribe_1843@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:34:56.644 ***
bOb_subscribe_1843@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bbd55f43de869f83' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:56.644 ***
bOb_subscribe_1843@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:34:56.644 ***
bOb_subscribe_1843@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTg0MwBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 15:34:56.645 ***
bOb_subscribe_1843@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:34:56.645 ***
bOb_subscribe_1843@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:34:56.646 ***
bOb_subscribe_1843@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c03a653dc0c7508f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:34:56.646 ***
bOb_subscribe_1843@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:34:56.646 ***
bOb_subscribe_1843@localhost/res1 out
<iq type='set' id='5dd70398234d0bd73750403a0cea5ee7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:34:56.646 ***
bOb_subscribe_1843@localhost/res1 in
<iq id='5dd70398234d0bd73750403a0cea5ee7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1843@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:34:56.646 ***
bOb_subscribe_1843@localhost/res1 out
<iq type='set' id='20e499360c50d71775eaa42226cf82ff'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:56.646 ***
bOb_subscribe_1843@localhost/res1 in
<iq type='result' id='20e499360c50d71775eaa42226cf82ff'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:34:56.647 ***
bOb_subscribe_1843@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:56.648 ***
bOb_subscribe_1843@localhost/res1 in
<presence from='bOb_subscribe_1843@localhost/res1' to='bob_subscribe_1843@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:56.648 ***
alicE_subscribe_1843@localhost/res1 out
<iq type='set' id='da53daa38641f0160a096bc3661067b9'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1843@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.659 ***
alicE_subscribe_1843@localhost/res1 in
<iq from='alicE_subscribe_1843@localhost' to='alicE_subscribe_1843@localhost/res1' id='push1cc64aab2d89d1fb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1843@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.659 ***
alicE_subscribe_1843@localhost/res1 in
<iq from='alicE_subscribe_1843@localhost' to='alicE_subscribe_1843@localhost/res1' id='da53daa38641f0160a096bc3661067b9' type='result'/>
*** User 2022-01-27 15:34:56.659 ***
alicE_subscribe_1843@localhost/res1 out
<iq to='alicE_subscribe_1843@localhost' id='push1cc64aab2d89d1fb' type='result'/>
*** User 2022-01-27 15:34:56.659 ***
alicE_subscribe_1843@localhost/res1 out
<presence type='subscribe' to='bOb_subscribe_1843@localhost'/>
*** User 2022-01-27 15:34:56.664 ***
alicE_subscribe_1843@localhost/res1 in
<iq from='alicE_subscribe_1843@localhost' to='alicE_subscribe_1843@localhost/res1' id='push1548d24a8d47ffd3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1843@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.664 ***
alicE_subscribe_1843@localhost/res1 out
<iq to='alicE_subscribe_1843@localhost' id='push1548d24a8d47ffd3' type='result'/>
*** User 2022-01-27 15:34:56.664 ***
bOb_subscribe_1843@localhost/res1 in
<presence from='alicE_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-01-27 15:34:56.665 ***
bOb_subscribe_1843@localhost/res1 out
<iq type='get' id='3ad49b8ea472e5323d8ff858a69509aa'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:34:56.681 ***
bOb_subscribe_1843@localhost/res1 in
<iq from='bOb_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' id='3ad49b8ea472e5323d8ff858a69509aa' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:34:56.681 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1843@localhost">>},
{<<"to">>,<<"bOb_subscribe_1843@localhost/res1">>},
{<<"id">>,<<"3ad49b8ea472e5323d8ff858a69509aa">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-01-27 15:34:56.681 ***
bOb_subscribe_1843@localhost/res1 out
<iq type='set' id='44ce4a787166bdbc7da5e11648c1e610'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1843@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.695 ***
bOb_subscribe_1843@localhost/res1 in
<iq from='bOb_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' id='push929af88111111dce' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1843@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.695 ***
bOb_subscribe_1843@localhost/res1 out
<iq to='bOb_subscribe_1843@localhost' id='push929af88111111dce' type='result'/>
*** User 2022-01-27 15:34:56.695 ***
bOb_subscribe_1843@localhost/res1 in
<iq from='bOb_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' id='44ce4a787166bdbc7da5e11648c1e610' type='result'/>
*** User 2022-01-27 15:34:56.695 ***
bOb_subscribe_1843@localhost/res1 out
<presence type='subscribed' to='alicE_subscribe_1843@localhost'/>
*** User 2022-01-27 15:34:56.742 ***
alicE_subscribe_1843@localhost/res1 in
<iq from='alicE_subscribe_1843@localhost' to='alicE_subscribe_1843@localhost/res1' id='push3be3826ad82312f9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1843@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.742 ***
alicE_subscribe_1843@localhost/res1 in
<presence from='bOb_subscribe_1843@localhost' to='alicE_subscribe_1843@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-01-27 15:34:56.742 ***
alicE_subscribe_1843@localhost/res1 in
<presence from='bOb_subscribe_1843@localhost/res1' to='alice_subscribe_1843@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:56.743 ***
bOb_subscribe_1843@localhost/res1 in
<iq from='bOb_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' id='pusha0849f047bc6a298' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1843@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.743 ***
bOb_subscribe_1843@localhost/res1 out
<iq type='get' id='2a516d180b8dc8d630f3cbc523b483fc'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-01-27 15:34:56.753 ***
bOb_subscribe_1843@localhost/res1 in
<iq from='bOb_subscribe_1843@localhost' to='bOb_subscribe_1843@localhost/res1' id='2a516d180b8dc8d630f3cbc523b483fc' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1843@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:34:56.753 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1843@localhost">>},
{<<"to">>,<<"bOb_subscribe_1843@localhost/res1">>},
{<<"id">>,<<"2a516d180b8dc8d630f3cbc523b483fc">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1843@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-01-27 15:34:56.753 ***
bOb_subscribe_1843@localhost/res1 out
<presence/>
*** User 2022-01-27 15:34:56.754 ***
alicE_subscribe_1843@localhost/res1 in
<presence from='bOb_subscribe_1843@localhost/res1' to='alice_subscribe_1843@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:34:56.754 ***
bOb_subscribe_1843@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-01-27 15:34:56.754 ***
alicE_subscribe_1843@localhost/res1 in
<presence from='bOb_subscribe_1843@localhost/res1' to='alice_subscribe_1843@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-01-27 15:34:56.754 ***
bOb_subscribe_1843@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:56.754 ***
bOb_subscribe_1843@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:34:56.754 ***
alicE_subscribe_1843@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:34:56.755 ***
alicE_subscribe_1843@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:34:56
=== successfully completed test case
=== === Returned value: ok