=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.24942.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.presence_SUITE.logs/run.2022-03-04_11.24.48/presence_suite.subscribe.145794.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.presence_SUITE.logs/run.2022-03-04_11.24.48/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:24:50
*** User 2022-03-04 11:24:50.091 ***
alicE_subscribe_1746@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:50.091 ***
alicE_subscribe_1746@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed6d8d569cceedea' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:50.091 ***
alicE_subscribe_1746@domain.example.com/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-03-04 11:24:50.091 ***
alicE_subscribe_1746@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNzQ2AG1hdHlncnlzYQ==</auth>
*** User 2022-03-04 11:24:50.092 ***
alicE_subscribe_1746@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:50.092 ***
alicE_subscribe_1746@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:50.092 ***
alicE_subscribe_1746@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8c0ff57ce4801181' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:50.092 ***
alicE_subscribe_1746@domain.example.com/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-03-04 11:24:50.092 ***
alicE_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='e9aa82fe5df5c14bd40d1d307e5ce4c6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:50.093 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq id='e9aa82fe5df5c14bd40d1d307e5ce4c6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1746@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:50.093 ***
alicE_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='4edcbe30dae2c10ae1f1fb801bb798cb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:50.093 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq type='result' id='4edcbe30dae2c10ae1f1fb801bb798cb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:50.093 ***
alicE_subscribe_1746@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:50.094 ***
alicE_subscribe_1746@domain.example.com/res1 in
<presence from='alicE_subscribe_1746@domain.example.com/res1' to='alice_subscribe_1746@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:50.095 ***
bOb_subscribe_1746@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:50.095 ***
bOb_subscribe_1746@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='53753b222eb78aef' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:50.095 ***
bOb_subscribe_1746@domain.example.com/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-03-04 11:24:50.095 ***
bOb_subscribe_1746@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTc0NgBtYWtyb2xpa2E=</auth>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='652201359f91d621' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/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-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='fc88e904738f6f2c800fabdef939902f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq id='fc88e904738f6f2c800fabdef939902f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1746@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:50.096 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='9f517716508d25b93682b0090e42b67f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:50.097 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq type='result' id='9f517716508d25b93682b0090e42b67f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:50.097 ***
bOb_subscribe_1746@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:50.098 ***
bOb_subscribe_1746@domain.example.com/res1 in
<presence from='bOb_subscribe_1746@domain.example.com/res1' to='bob_subscribe_1746@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:50.098 ***
alicE_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='1fd69cf94621c681e4f6f2f34e574157'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1746@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.104 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq from='alicE_subscribe_1746@domain.example.com' to='alicE_subscribe_1746@domain.example.com/res1' id='pushae28303125101548' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1746@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.104 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq from='alicE_subscribe_1746@domain.example.com' to='alicE_subscribe_1746@domain.example.com/res1' id='1fd69cf94621c681e4f6f2f34e574157' type='result'/>
*** User 2022-03-04 11:24:50.104 ***
alicE_subscribe_1746@domain.example.com/res1 out
<iq to='alicE_subscribe_1746@domain.example.com' id='pushae28303125101548' type='result'/>
*** User 2022-03-04 11:24:50.104 ***
alicE_subscribe_1746@domain.example.com/res1 out
<presence type='subscribe' to='bOb_subscribe_1746@domain.example.com'/>
*** User 2022-03-04 11:24:50.109 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq from='alicE_subscribe_1746@domain.example.com' to='alicE_subscribe_1746@domain.example.com/res1' id='push05c3e11f3b4f423f' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1746@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.109 ***
alicE_subscribe_1746@domain.example.com/res1 out
<iq to='alicE_subscribe_1746@domain.example.com' id='push05c3e11f3b4f423f' type='result'/>
*** User 2022-03-04 11:24:50.109 ***
bOb_subscribe_1746@domain.example.com/res1 in
<presence from='alicE_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-03-04 11:24:50.109 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq type='get' id='9101e0ddde3efc281e477c5ca38e067d'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-04 11:24:50.121 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq from='bOb_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' id='9101e0ddde3efc281e477c5ca38e067d' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-04 11:24:50.121 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1746@domain.example.com">>},
{<<"to">>,<<"bOb_subscribe_1746@domain.example.com/res1">>},
{<<"id">>,<<"9101e0ddde3efc281e477c5ca38e067d">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-03-04 11:24:50.121 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq type='set' id='c1b67598d80adbd16f8b7654d7204b11'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1746@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.141 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq from='bOb_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' id='push6dc154433f6d2925' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1746@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.141 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq to='bOb_subscribe_1746@domain.example.com' id='push6dc154433f6d2925' type='result'/>
*** User 2022-03-04 11:24:50.142 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq from='bOb_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' id='c1b67598d80adbd16f8b7654d7204b11' type='result'/>
*** User 2022-03-04 11:24:50.142 ***
bOb_subscribe_1746@domain.example.com/res1 out
<presence type='subscribed' to='alicE_subscribe_1746@domain.example.com'/>
*** User 2022-03-04 11:24:50.147 ***
alicE_subscribe_1746@domain.example.com/res1 in
<iq from='alicE_subscribe_1746@domain.example.com' to='alicE_subscribe_1746@domain.example.com/res1' id='push9a8db039bc8bd39f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1746@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.147 ***
alicE_subscribe_1746@domain.example.com/res1 in
<presence from='bOb_subscribe_1746@domain.example.com' to='alicE_subscribe_1746@domain.example.com/res1' xml:lang='en' type='subscribed'/>
*** User 2022-03-04 11:24:50.147 ***
alicE_subscribe_1746@domain.example.com/res1 in
<presence from='bOb_subscribe_1746@domain.example.com/res1' to='alice_subscribe_1746@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:50.147 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq from='bOb_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' id='push6a3b85f4639a798e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1746@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.147 ***
bOb_subscribe_1746@domain.example.com/res1 out
<iq type='get' id='2bfb16a9ad0639afec6ffcf671c75a9a'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-03-04 11:24:50.161 ***
bOb_subscribe_1746@domain.example.com/res1 in
<iq from='bOb_subscribe_1746@domain.example.com' to='bOb_subscribe_1746@domain.example.com/res1' id='2bfb16a9ad0639afec6ffcf671c75a9a' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1746@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:24:50.161 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1746@domain.example.com">>},
{<<"to">>,<<"bOb_subscribe_1746@domain.example.com/res1">>},
{<<"id">>,<<"2bfb16a9ad0639afec6ffcf671c75a9a">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_1746@domain.example.com">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-03-04 11:24:50.162 ***
bOb_subscribe_1746@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:50.162 ***
alicE_subscribe_1746@domain.example.com/res1 in
<presence from='bOb_subscribe_1746@domain.example.com/res1' to='alice_subscribe_1746@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:50.162 ***
bOb_subscribe_1746@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2022-03-04 11:24:50.163 ***
alicE_subscribe_1746@domain.example.com/res1 in
<presence from='bOb_subscribe_1746@domain.example.com/res1' to='alice_subscribe_1746@domain.example.com/res1' xml:lang='en' type='unavailable'/>
*** User 2022-03-04 11:24:50.163 ***
bOb_subscribe_1746@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:50.163 ***
bOb_subscribe_1746@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:50.163 ***
alicE_subscribe_1746@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:50.164 ***
alicE_subscribe_1746@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:24:50
=== successfully completed test case
=== === Returned value: ok