=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11468.1>},
{preset,"ldap_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@0cd263ba7416.2024-03-26_09.00.57/big_tests.tests.presence_SUITE.logs/run.2024-03-26_09.11.32/presence_suite.subscribe.53379.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@0cd263ba7416.2024-03-26_09.00.57/big_tests.tests.presence_SUITE.logs/run.2024-03-26_09.11.32/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@0cd263ba7416.2024-03-26_09.00.57"
=== Started at 2024-03-26 09:11:34
*** User 2024-03-26 09:11:34.266 ***🔗
alicE_subscribe_1420@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-26 09:11:34.266 ***🔗
alicE_subscribe_1420@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='900e0d03e39bc4c3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-26 09:11:34.267 ***🔗
alicE_subscribe_1420@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-26 09:11:34.267 ***🔗
alicE_subscribe_1420@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDIwAG1hdHlncnlzYQ==</auth>
*** User 2024-03-26 09:11:34.268 ***🔗
alicE_subscribe_1420@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-26 09:11:34.268 ***🔗
alicE_subscribe_1420@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-26 09:11:34.269 ***🔗
alicE_subscribe_1420@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e59077a901aa4384' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1420@localhost'>
*** User 2024-03-26 09:11:34.269 ***🔗
alicE_subscribe_1420@localhost/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-03-26 09:11:34.269 ***🔗
alicE_subscribe_1420@localhost/res1 out
<iq type='set' id='b678fd29c8cbf06f1a3b7459d3991bb2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-26 09:11:34.269 ***🔗
alicE_subscribe_1420@localhost/res1 in
<iq id='b678fd29c8cbf06f1a3b7459d3991bb2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1420@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-26 09:11:34.269 ***🔗
alice_subscribe_1420@localhost/res1 out
<iq type='set' id='d53ad8d567e51921431c183dd80f24b6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-26 09:11:34.270 ***🔗
alice_subscribe_1420@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1420@localhost/res1' id='d53ad8d567e51921431c183dd80f24b6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-26 09:11:34.270 ***🔗
alice_subscribe_1420@localhost/res1 out
<presence/>
*** User 2024-03-26 09:11:34.271 ***🔗
alice_subscribe_1420@localhost/res1 in
<presence from='alice_subscribe_1420@localhost/res1' to='alice_subscribe_1420@localhost/res1'/>
*** User 2024-03-26 09:11:34.271 ***🔗
bOb_subscribe_1420@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-26 09:11:34.272 ***🔗
bOb_subscribe_1420@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5e5ded05f661baf' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-26 09:11:34.273 ***🔗
bOb_subscribe_1420@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-26 09:11:34.273 ***🔗
bOb_subscribe_1420@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQyMABtYWtyb2xpa2E=</auth>
*** User 2024-03-26 09:11:34.276 ***🔗
bOb_subscribe_1420@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-26 09:11:34.276 ***🔗
bOb_subscribe_1420@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-26 09:11:34.277 ***🔗
bOb_subscribe_1420@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7870a55b07fe5572' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1420@localhost'>
*** User 2024-03-26 09:11:34.277 ***🔗
bOb_subscribe_1420@localhost/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-03-26 09:11:34.277 ***🔗
bOb_subscribe_1420@localhost/res1 out
<iq type='set' id='0db98115a1dfee8b21dd6f01766291a5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-26 09:11:34.277 ***🔗
bOb_subscribe_1420@localhost/res1 in
<iq id='0db98115a1dfee8b21dd6f01766291a5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1420@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-26 09:11:34.278 ***🔗
bob_subscribe_1420@localhost/res1 out
<iq type='set' id='dd28ed097a61185476dd290eb9016a46'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-26 09:11:34.278 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1420@localhost/res1' id='dd28ed097a61185476dd290eb9016a46' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-26 09:11:34.278 ***🔗
bob_subscribe_1420@localhost/res1 out
<presence/>
*** User 2024-03-26 09:11:34.279 ***🔗
bob_subscribe_1420@localhost/res1 in
<presence from='bob_subscribe_1420@localhost/res1' to='bob_subscribe_1420@localhost/res1'/>
*** User 2024-03-26 09:11:34.279 ***🔗
alice_subscribe_1420@localhost/res1 out
<iq type='set' id='a4360430e823d1ada668d338f04f5aec'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1420@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.280 ***🔗
alice_subscribe_1420@localhost/res1 in
<iq from='alice_subscribe_1420@localhost' to='alice_subscribe_1420@localhost/res1' id='push42f134795a3a3e65' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1420@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.281 ***🔗
alice_subscribe_1420@localhost/res1 in
<iq from='alice_subscribe_1420@localhost' to='alice_subscribe_1420@localhost/res1' id='a4360430e823d1ada668d338f04f5aec' type='result'/>
*** User 2024-03-26 09:11:34.281 ***🔗
alice_subscribe_1420@localhost/res1 out
<iq to='alice_subscribe_1420@localhost' id='push42f134795a3a3e65' type='result'/>
*** User 2024-03-26 09:11:34.281 ***🔗
alice_subscribe_1420@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1420@localhost'/>
*** User 2024-03-26 09:11:34.285 ***🔗
alice_subscribe_1420@localhost/res1 in
<iq from='alice_subscribe_1420@localhost' to='alice_subscribe_1420@localhost/res1' id='pusha7ccdaeb2ebf2171' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1420@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.285 ***🔗
alice_subscribe_1420@localhost/res1 out
<iq to='alice_subscribe_1420@localhost' id='pusha7ccdaeb2ebf2171' type='result'/>
*** User 2024-03-26 09:11:34.285 ***🔗
bob_subscribe_1420@localhost/res1 in
<presence from='alice_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' type='subscribe'/>
*** User 2024-03-26 09:11:34.285 ***🔗
bob_subscribe_1420@localhost/res1 out
<iq type='get' id='c59f1384ae6da13efca021b869347747'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-26 09:11:34.286 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='bob_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' id='c59f1384ae6da13efca021b869347747' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-26 09:11:34.286 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1420@localhost">>},
{<<"to">>,<<"bob_subscribe_1420@localhost/res1">>},
{<<"id">>,<<"c59f1384ae6da13efca021b869347747">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-26 09:11:34.286 ***🔗
bob_subscribe_1420@localhost/res1 out
<iq type='set' id='4cd8b7585ed728aa48e50ae5ddc628f8'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1420@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.287 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='bob_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' id='push6e30b5eef58cbcb3' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1420@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.288 ***🔗
bob_subscribe_1420@localhost/res1 out
<iq to='bob_subscribe_1420@localhost' id='push6e30b5eef58cbcb3' type='result'/>
*** User 2024-03-26 09:11:34.288 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='bob_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' id='4cd8b7585ed728aa48e50ae5ddc628f8' type='result'/>
*** User 2024-03-26 09:11:34.288 ***🔗
bob_subscribe_1420@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1420@localhost'/>
*** User 2024-03-26 09:11:34.291 ***🔗
alice_subscribe_1420@localhost/res1 in
<iq from='alice_subscribe_1420@localhost' to='alice_subscribe_1420@localhost/res1' id='push4c87204706d35eed' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1420@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.291 ***🔗
alice_subscribe_1420@localhost/res1 in
<presence from='bob_subscribe_1420@localhost' to='alice_subscribe_1420@localhost/res1' type='subscribed'/>
*** User 2024-03-26 09:11:34.291 ***🔗
alice_subscribe_1420@localhost/res1 in
<presence from='bob_subscribe_1420@localhost/res1' to='alice_subscribe_1420@localhost/res1'/>
*** User 2024-03-26 09:11:34.291 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='bob_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' id='pushafe89a0b7ac935e0' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1420@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.292 ***🔗
bob_subscribe_1420@localhost/res1 out
<iq type='get' id='43b7810338a55cb049c22cfa1b50912d'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-26 09:11:34.292 ***🔗
bob_subscribe_1420@localhost/res1 in
<iq from='bob_subscribe_1420@localhost' to='bob_subscribe_1420@localhost/res1' id='43b7810338a55cb049c22cfa1b50912d' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1420@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-26 09:11:34.293 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1420@localhost">>},
{<<"to">>,<<"bob_subscribe_1420@localhost/res1">>},
{<<"id">>,<<"43b7810338a55cb049c22cfa1b50912d">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1420@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-26 09:11:34.293 ***🔗
bob_subscribe_1420@localhost/res1 out
<presence/>
*** User 2024-03-26 09:11:34.294 ***🔗
alice_subscribe_1420@localhost/res1 in
<presence from='bob_subscribe_1420@localhost/res1' to='alice_subscribe_1420@localhost/res1'/>
*** User 2024-03-26 09:11:34.294 ***🔗
bob_subscribe_1420@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-03-26 09:11:34.294 ***🔗
alice_subscribe_1420@localhost/res1 in
<presence from='bob_subscribe_1420@localhost/res1' to='alice_subscribe_1420@localhost/res1' type='unavailable'/>
*** User 2024-03-26 09:11:34.294 ***🔗
bob_subscribe_1420@localhost/res1 out
</stream:stream>
*** User 2024-03-26 09:11:34.295 ***🔗
bob_subscribe_1420@localhost/res1 in
</stream:stream>
*** User 2024-03-26 09:11:34.295 ***🔗
alice_subscribe_1420@localhost/res1 out
</stream:stream>
*** User 2024-03-26 09:11:34.295 ***🔗
alice_subscribe_1420@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-26 09:11:34
=== successfully completed test case
=== === Returned value: ok