=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.46754.0>},
{preset,"internal_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@c59750015bc7.2024-04-24_13.09.40/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.21.22/presence_suite.subscribe.52483.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@c59750015bc7.2024-04-24_13.09.40/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.21.22/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@c59750015bc7.2024-04-24_13.09.40"
=== Started at 2024-04-24 13:21:24
*** User 2024-04-24 13:21:24.623 ***🔗
alicE_subscribe_1499@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-04-24 13:21:24.624 ***🔗
alicE_subscribe_1499@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b947e5a215c6ed2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:21:24.624 ***🔗
alicE_subscribe_1499@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>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-24 13:21:24.624 ***🔗
alicE_subscribe_1499@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDk5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-24 13:21:24.625 ***🔗
alicE_subscribe_1499@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:21:24.625 ***🔗
alicE_subscribe_1499@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-04-24 13:21:24.625 ***🔗
alicE_subscribe_1499@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='46cc99094e8862c7' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1499@localhost'>
*** User 2024-04-24 13:21:24.625 ***🔗
alicE_subscribe_1499@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-04-24 13:21:24.625 ***🔗
alicE_subscribe_1499@localhost/res1 out
<iq type='set' id='5c6af5b303badcfb2d4dd4868266b1a0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:21:24.626 ***🔗
alicE_subscribe_1499@localhost/res1 in
<iq id='5c6af5b303badcfb2d4dd4868266b1a0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1499@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:21:24.626 ***🔗
alice_subscribe_1499@localhost/res1 out
<iq type='set' id='1723beb632e8d89910032e21c8d96987'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:21:24.626 ***🔗
alice_subscribe_1499@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1499@localhost/res1' id='1723beb632e8d89910032e21c8d96987' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:21:24.626 ***🔗
alice_subscribe_1499@localhost/res1 out
<presence/>
*** User 2024-04-24 13:21:24.627 ***🔗
alice_subscribe_1499@localhost/res1 in
<presence from='alice_subscribe_1499@localhost/res1' to='alice_subscribe_1499@localhost/res1'/>
*** User 2024-04-24 13:21:24.627 ***🔗
bOb_subscribe_1499@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-04-24 13:21:24.628 ***🔗
bOb_subscribe_1499@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8d2a0604d5b066a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:21:24.629 ***🔗
bOb_subscribe_1499@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>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-24 13:21:24.629 ***🔗
bOb_subscribe_1499@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQ5OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-24 13:21:24.629 ***🔗
bOb_subscribe_1499@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:21:24.629 ***🔗
bOb_subscribe_1499@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-04-24 13:21:24.630 ***🔗
bOb_subscribe_1499@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af7f43f6c02cd4f6' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1499@localhost'>
*** User 2024-04-24 13:21:24.630 ***🔗
bOb_subscribe_1499@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-04-24 13:21:24.630 ***🔗
bOb_subscribe_1499@localhost/res1 out
<iq type='set' id='d924c8c6dc4586393c41658d15f50f00'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:21:24.631 ***🔗
bOb_subscribe_1499@localhost/res1 in
<iq id='d924c8c6dc4586393c41658d15f50f00' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1499@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:21:24.631 ***🔗
bob_subscribe_1499@localhost/res1 out
<iq type='set' id='7c78fcc7b0f82b01042a2780e41af26f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:21:24.631 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1499@localhost/res1' id='7c78fcc7b0f82b01042a2780e41af26f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:21:24.632 ***🔗
bob_subscribe_1499@localhost/res1 out
<presence/>
*** User 2024-04-24 13:21:24.632 ***🔗
bob_subscribe_1499@localhost/res1 in
<presence from='bob_subscribe_1499@localhost/res1' to='bob_subscribe_1499@localhost/res1'/>
*** User 2024-04-24 13:21:24.632 ***🔗
alice_subscribe_1499@localhost/res1 out
<iq type='set' id='0fb6745377f3499eb210c3d03454fd07'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1499@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.633 ***🔗
alice_subscribe_1499@localhost/res1 in
<iq from='alice_subscribe_1499@localhost' to='alice_subscribe_1499@localhost/res1' id='pushb28aef556f2b6f73' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1499@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.634 ***🔗
alice_subscribe_1499@localhost/res1 in
<iq from='alice_subscribe_1499@localhost' to='alice_subscribe_1499@localhost/res1' id='0fb6745377f3499eb210c3d03454fd07' type='result'/>
*** User 2024-04-24 13:21:24.634 ***🔗
alice_subscribe_1499@localhost/res1 out
<iq to='alice_subscribe_1499@localhost' id='pushb28aef556f2b6f73' type='result'/>
*** User 2024-04-24 13:21:24.634 ***🔗
alice_subscribe_1499@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1499@localhost'/>
*** User 2024-04-24 13:21:24.635 ***🔗
alice_subscribe_1499@localhost/res1 in
<iq from='alice_subscribe_1499@localhost' to='alice_subscribe_1499@localhost/res1' id='push531d15310bfe8ab1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1499@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.635 ***🔗
alice_subscribe_1499@localhost/res1 out
<iq to='alice_subscribe_1499@localhost' id='push531d15310bfe8ab1' type='result'/>
*** User 2024-04-24 13:21:24.635 ***🔗
bob_subscribe_1499@localhost/res1 in
<presence from='alice_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' type='subscribe'/>
*** User 2024-04-24 13:21:24.635 ***🔗
bob_subscribe_1499@localhost/res1 out
<iq type='get' id='b58b5e87a9d416c89ac4d72835d43b46'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:21:24.636 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='bob_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' id='b58b5e87a9d416c89ac4d72835d43b46' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:21:24.638 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1499@localhost">>},
{<<"to">>,<<"bob_subscribe_1499@localhost/res1">>},
{<<"id">>,<<"b58b5e87a9d416c89ac4d72835d43b46">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-24 13:21:24.638 ***🔗
bob_subscribe_1499@localhost/res1 out
<iq type='set' id='190cca69f52f310a2394947f549efe7c'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1499@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.660 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='bob_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' id='push4ae0a9635811cd45' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1499@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.660 ***🔗
bob_subscribe_1499@localhost/res1 out
<iq to='bob_subscribe_1499@localhost' id='push4ae0a9635811cd45' type='result'/>
*** User 2024-04-24 13:21:24.660 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='bob_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' id='190cca69f52f310a2394947f549efe7c' type='result'/>
*** User 2024-04-24 13:21:24.660 ***🔗
bob_subscribe_1499@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1499@localhost'/>
*** User 2024-04-24 13:21:24.663 ***🔗
alice_subscribe_1499@localhost/res1 in
<iq from='alice_subscribe_1499@localhost' to='alice_subscribe_1499@localhost/res1' id='push10a45084e4b086c2' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1499@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.664 ***🔗
alice_subscribe_1499@localhost/res1 in
<presence from='bob_subscribe_1499@localhost' to='alice_subscribe_1499@localhost/res1' type='subscribed'/>
*** User 2024-04-24 13:21:24.664 ***🔗
alice_subscribe_1499@localhost/res1 in
<presence from='bob_subscribe_1499@localhost/res1' to='alice_subscribe_1499@localhost/res1'/>
*** User 2024-04-24 13:21:24.664 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='bob_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' id='push10056d164ea4b591' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1499@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.664 ***🔗
bob_subscribe_1499@localhost/res1 out
<iq type='get' id='3aaa1cd277e53350c9b6de2463799e88'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:21:24.667 ***🔗
bob_subscribe_1499@localhost/res1 in
<iq from='bob_subscribe_1499@localhost' to='bob_subscribe_1499@localhost/res1' id='3aaa1cd277e53350c9b6de2463799e88' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1499@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:21:24.667 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1499@localhost">>},
{<<"to">>,<<"bob_subscribe_1499@localhost/res1">>},
{<<"id">>,<<"3aaa1cd277e53350c9b6de2463799e88">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1499@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-24 13:21:24.667 ***🔗
bob_subscribe_1499@localhost/res1 out
<presence/>
*** User 2024-04-24 13:21:24.668 ***🔗
alice_subscribe_1499@localhost/res1 in
<presence from='bob_subscribe_1499@localhost/res1' to='alice_subscribe_1499@localhost/res1'/>
*** User 2024-04-24 13:21:24.669 ***🔗
bob_subscribe_1499@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-24 13:21:24.669 ***🔗
alice_subscribe_1499@localhost/res1 in
<presence from='bob_subscribe_1499@localhost/res1' to='alice_subscribe_1499@localhost/res1' type='unavailable'/>
*** User 2024-04-24 13:21:24.670 ***🔗
bob_subscribe_1499@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:21:24.670 ***🔗
bob_subscribe_1499@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:21:24.670 ***🔗
alice_subscribe_1499@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:21:24.670 ***🔗
alice_subscribe_1499@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-24 13:21:24
=== successfully completed test case
=== === Returned value: ok