=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.6876.2>},
{preset,"pgsql_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@c99c1168ae9b.2024-04-23_11.31.47/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.44.29/presence_suite.subscribe.145411.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@c99c1168ae9b.2024-04-23_11.31.47/big_tests.tests.presence_SUITE.logs/run.2024-04-23_11.44.29/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@c99c1168ae9b.2024-04-23_11.31.47"
=== Started at 2024-04-23 11:44:31
*** User 2024-04-23 11:44:31.524 ***🔗
alicE_subscribe_2884@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-04-23 11:44:31.525 ***🔗
alicE_subscribe_2884@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62e1941895ae1be6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:44:31.525 ***🔗
alicE_subscribe_2884@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-04-23 11:44:31.525 ***🔗
alicE_subscribe_2884@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODg0AG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 11:44:31.526 ***🔗
alicE_subscribe_2884@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:44:31.526 ***🔗
alicE_subscribe_2884@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-04-23 11:44:31.526 ***🔗
alicE_subscribe_2884@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37da60274f9fef5f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2884@domain.example.com'>
*** User 2024-04-23 11:44:31.526 ***🔗
alicE_subscribe_2884@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-04-23 11:44:31.526 ***🔗
alicE_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='49fa3ea5cd38716403266f4540d407a8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:44:31.527 ***🔗
alicE_subscribe_2884@domain.example.com/res1 in
<iq id='49fa3ea5cd38716403266f4540d407a8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2884@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:44:31.527 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='cef2436d63ea37e1d4a9edbe2003533c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:44:31.527 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' id='cef2436d63ea37e1d4a9edbe2003533c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:44:31.528 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<presence/>
*** User 2024-04-23 11:44:31.528 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<presence from='alice_subscribe_2884@domain.example.com/res1' to='alice_subscribe_2884@domain.example.com/res1'/>
*** User 2024-04-23 11:44:31.529 ***🔗
bOb_subscribe_2884@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-04-23 11:44:31.530 ***🔗
bOb_subscribe_2884@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44bed5ef5cc93654' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:44:31.530 ***🔗
bOb_subscribe_2884@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-04-23 11:44:31.530 ***🔗
bOb_subscribe_2884@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg4NABtYWtyb2xpa2E=</auth>
*** User 2024-04-23 11:44:31.531 ***🔗
bOb_subscribe_2884@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:44:31.531 ***🔗
bOb_subscribe_2884@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-04-23 11:44:31.531 ***🔗
bOb_subscribe_2884@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='575ed12619f83be8' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2884@domain.example.com'>
*** User 2024-04-23 11:44:31.531 ***🔗
bOb_subscribe_2884@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-04-23 11:44:31.531 ***🔗
bOb_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='fbfab34c313c73a8e1afecc90e6ef2fd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:44:31.532 ***🔗
bOb_subscribe_2884@domain.example.com/res1 in
<iq id='fbfab34c313c73a8e1afecc90e6ef2fd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2884@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:44:31.532 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='921e9d7d3322e569a3cab77346fe73cb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:44:31.532 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='921e9d7d3322e569a3cab77346fe73cb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:44:31.532 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<presence/>
*** User 2024-04-23 11:44:31.534 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<presence from='bob_subscribe_2884@domain.example.com/res1' to='bob_subscribe_2884@domain.example.com/res1'/>
*** User 2024-04-23 11:44:31.534 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='b0724cc6bea43fab45b5015d11077e42'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2884@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.537 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<iq from='alice_subscribe_2884@domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' id='pushf618b462f0e65510' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2884@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.538 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<iq from='alice_subscribe_2884@domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' id='b0724cc6bea43fab45b5015d11077e42' type='result'/>
*** User 2024-04-23 11:44:31.538 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<iq to='alice_subscribe_2884@domain.example.com' id='pushf618b462f0e65510' type='result'/>
*** User 2024-04-23 11:44:31.538 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2884@domain.example.com'/>
*** User 2024-04-23 11:44:31.542 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<iq from='alice_subscribe_2884@domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' id='push737d6b48a2f30390' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2884@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.542 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
<iq to='alice_subscribe_2884@domain.example.com' id='push737d6b48a2f30390' type='result'/>
*** User 2024-04-23 11:44:31.542 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<presence from='alice_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-23 11:44:31.543 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<iq type='get' id='c1d83f0fcec2abcf2556869fb64f11be'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 11:44:31.548 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='bob_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='c1d83f0fcec2abcf2556869fb64f11be' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 11:44:31.548 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2884@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2884@domain.example.com/res1">>},
{<<"id">>,<<"c1d83f0fcec2abcf2556869fb64f11be">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-23 11:44:31.548 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<iq type='set' id='c557d2c7ca0f26869a8bf00e9e590869'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2884@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.553 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='bob_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='pushd78d4103ba289e13' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2884@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.553 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<iq to='bob_subscribe_2884@domain.example.com' id='pushd78d4103ba289e13' type='result'/>
*** User 2024-04-23 11:44:31.554 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='bob_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='c557d2c7ca0f26869a8bf00e9e590869' type='result'/>
*** User 2024-04-23 11:44:31.554 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2884@domain.example.com'/>
*** User 2024-04-23 11:44:31.587 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<iq from='alice_subscribe_2884@domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' id='pushcef25bce0b0a17e7' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2884@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.587 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<presence from='bob_subscribe_2884@domain.example.com' to='alice_subscribe_2884@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-23 11:44:31.587 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<presence from='bob_subscribe_2884@domain.example.com/res1' to='alice_subscribe_2884@domain.example.com/res1'/>
*** User 2024-04-23 11:44:31.587 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='bob_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='pushedaf4bfeb2adb1b8' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2884@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.588 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<iq type='get' id='16652270511329704e81af6636e571f3'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 11:44:31.589 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
<iq from='bob_subscribe_2884@domain.example.com' to='bob_subscribe_2884@domain.example.com/res1' id='16652270511329704e81af6636e571f3' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2884@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 11:44:31.589 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2884@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2884@domain.example.com/res1">>},
{<<"id">>,<<"16652270511329704e81af6636e571f3">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2884@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-23 11:44:31.589 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<presence/>
*** User 2024-04-23 11:44:31.590 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<presence from='bob_subscribe_2884@domain.example.com/res1' to='alice_subscribe_2884@domain.example.com/res1'/>
*** User 2024-04-23 11:44:31.590 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-04-23 11:44:31.591 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
<presence from='bob_subscribe_2884@domain.example.com/res1' to='alice_subscribe_2884@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-23 11:44:31.591 ***🔗
bob_subscribe_2884@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-23 11:44:31.591 ***🔗
bob_subscribe_2884@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-23 11:44:31.592 ***🔗
alice_subscribe_2884@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-23 11:44:31.592 ***🔗
alice_subscribe_2884@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:44:31
=== successfully completed test case
=== === Returned value: ok