=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.70967.0>},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.presence_SUITE.logs/run.2024-02-23_17.45.13/presence_suite.subscribe.146435.html"},
{tc_group_properties,[{name,subscribe_group},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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.presence_SUITE.logs/run.2024-02-23_17.45.13/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@5f60ef475eab.2024-02-23_17.31.31"
=== Started at 2024-02-23 17:45:15
*** User 2024-02-23 17:45:15.844 ***🔗
alicE_subscribe_2795@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 2024-02-23 17:45:15.844 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='697899f4d0fac1ec' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:15.844 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 17:45:15.844 ***🔗
alicE_subscribe_2795@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNzk1AG1hdHlncnlzYQ==</auth>
*** User 2024-02-23 17:45:15.846 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:15.846 ***🔗
alicE_subscribe_2795@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 2024-02-23 17:45:15.846 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ca90dc90692b9d0b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2795@domain.example.com'>
*** User 2024-02-23 17:45:15.846 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 17:45:15.846 ***🔗
alicE_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='58ecd70df2aab0ce92bf8a7599d1e417'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:15.847 ***🔗
alicE_subscribe_2795@domain.example.com/res1 in
<iq id='58ecd70df2aab0ce92bf8a7599d1e417' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2795@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:15.847 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='7b9117d640a78c43559971d851443a7b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:15.847 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' id='7b9117d640a78c43559971d851443a7b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:15.847 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:15.848 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<presence from='alice_subscribe_2795@domain.example.com/res1' to='alice_subscribe_2795@domain.example.com/res1'/>
*** User 2024-02-23 17:45:15.849 ***🔗
bOb_subscribe_2795@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 2024-02-23 17:45:15.849 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8f0da0a95d40b59c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:15.849 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 17:45:15.849 ***🔗
bOb_subscribe_2795@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjc5NQBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 17:45:15.850 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:15.850 ***🔗
bOb_subscribe_2795@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 2024-02-23 17:45:15.851 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce07397a06fbcc79' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2795@domain.example.com'>
*** User 2024-02-23 17:45:15.851 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 17:45:15.851 ***🔗
bOb_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='d9e4a58a3e15aaad6109c4da004d5063'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:15.851 ***🔗
bOb_subscribe_2795@domain.example.com/res1 in
<iq id='d9e4a58a3e15aaad6109c4da004d5063' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2795@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:15.851 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='55ce07f1e2ad9914f1531092c70e7110'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:15.852 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='55ce07f1e2ad9914f1531092c70e7110' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:15.852 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:15.853 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<presence from='bob_subscribe_2795@domain.example.com/res1' to='bob_subscribe_2795@domain.example.com/res1'/>
*** User 2024-02-23 17:45:15.853 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='5c8fa801de7f289dbc0d9f23fe0a5704'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2795@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.858 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<iq from='alice_subscribe_2795@domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' id='push19db67925a455fda' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_2795@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.858 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<iq from='alice_subscribe_2795@domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' id='5c8fa801de7f289dbc0d9f23fe0a5704' type='result'/>
*** User 2024-02-23 17:45:15.858 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<iq to='alice_subscribe_2795@domain.example.com' id='push19db67925a455fda' type='result'/>
*** User 2024-02-23 17:45:15.858 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2795@domain.example.com'/>
*** User 2024-02-23 17:45:15.874 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<iq from='alice_subscribe_2795@domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' id='push80c63bc447695b6e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2795@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.874 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
<iq to='alice_subscribe_2795@domain.example.com' id='push80c63bc447695b6e' type='result'/>
*** User 2024-02-23 17:45:15.874 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<presence from='alice_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' type='subscribe'/>
*** User 2024-02-23 17:45:15.874 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<iq type='get' id='5517d8df44e7034822160af44ca7570c'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 17:45:15.903 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='bob_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='5517d8df44e7034822160af44ca7570c' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 17:45:15.903 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2795@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2795@domain.example.com/res1">>},
{<<"id">>,<<"5517d8df44e7034822160af44ca7570c">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-02-23 17:45:15.903 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<iq type='set' id='01a15d4e56913b9d8dfd958565d7a9bd'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2795@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.909 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='bob_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='push0fd698a4f2a5db00' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_2795@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.909 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<iq to='bob_subscribe_2795@domain.example.com' id='push0fd698a4f2a5db00' type='result'/>
*** User 2024-02-23 17:45:15.909 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='bob_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='01a15d4e56913b9d8dfd958565d7a9bd' type='result'/>
*** User 2024-02-23 17:45:15.909 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2795@domain.example.com'/>
*** User 2024-02-23 17:45:15.918 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<iq from='alice_subscribe_2795@domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' id='push2e018f8fcc296719' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_2795@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.918 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<presence from='bob_subscribe_2795@domain.example.com' to='alice_subscribe_2795@domain.example.com/res1' type='subscribed'/>
*** User 2024-02-23 17:45:15.918 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<presence from='bob_subscribe_2795@domain.example.com/res1' to='alice_subscribe_2795@domain.example.com/res1'/>
*** User 2024-02-23 17:45:15.918 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='bob_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='pushcdc7d0d760c2a116' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2795@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.918 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<iq type='get' id='6893a6d91336cfec75432bec98615891'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-02-23 17:45:15.922 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
<iq from='bob_subscribe_2795@domain.example.com' to='bob_subscribe_2795@domain.example.com/res1' id='6893a6d91336cfec75432bec98615891' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2795@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:15.922 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2795@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2795@domain.example.com/res1">>},
{<<"id">>,<<"6893a6d91336cfec75432bec98615891">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2795@domain.example.com">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-02-23 17:45:15.922 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:15.923 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<presence from='bob_subscribe_2795@domain.example.com/res1' to='alice_subscribe_2795@domain.example.com/res1'/>
*** User 2024-02-23 17:45:15.923 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-02-23 17:45:15.924 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
<presence from='bob_subscribe_2795@domain.example.com/res1' to='alice_subscribe_2795@domain.example.com/res1' type='unavailable'/>
*** User 2024-02-23 17:45:15.924 ***🔗
bob_subscribe_2795@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:15.924 ***🔗
bob_subscribe_2795@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-23 17:45:15.924 ***🔗
alice_subscribe_2795@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:15.924 ***🔗
alice_subscribe_2795@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-23 17:45:15
=== successfully completed test case
=== === Returned value: ok