=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11517.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.presence_SUITE.logs/run.2024-01-15_12.08.33/presence_suite.subscribe.15109.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.presence_SUITE.logs/run.2024-01-15_12.08.33/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@f79facad4ed7.2024-01-15_11.58.37"
=== Started at 2024-01-15 12:08:35
*** User 2024-01-15 12:08:35.847 ***🔗
alicE_subscribe_1395@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-01-15 12:08:35.848 ***🔗
alicE_subscribe_1395@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d662d53b8490e259' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-01-15 12:08:35.848 ***🔗
alicE_subscribe_1395@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-01-15 12:08:35.848 ***🔗
alicE_subscribe_1395@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMzk1AG1hdHlncnlzYQ==</auth>
*** User 2024-01-15 12:08:35.850 ***🔗
alicE_subscribe_1395@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-15 12:08:35.851 ***🔗
alicE_subscribe_1395@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-01-15 12:08:35.851 ***🔗
alicE_subscribe_1395@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1956529e31c8c8b4' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1395@localhost'>
*** User 2024-01-15 12:08:35.851 ***🔗
alicE_subscribe_1395@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-01-15 12:08:35.851 ***🔗
alicE_subscribe_1395@localhost/res1 out
<iq type='set' id='5f5d584f707cbd53f9bd3309bfb5ee4e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-15 12:08:35.851 ***🔗
alicE_subscribe_1395@localhost/res1 in
<iq id='5f5d584f707cbd53f9bd3309bfb5ee4e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1395@localhost/res1</jid>
</bind>
</iq>
*** User 2024-01-15 12:08:35.852 ***🔗
alice_subscribe_1395@localhost/res1 out
<iq type='set' id='5dea74b67ed5add966bb813037d0bf3e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:08:35.852 ***🔗
alice_subscribe_1395@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1395@localhost/res1' id='5dea74b67ed5add966bb813037d0bf3e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:08:35.852 ***🔗
alice_subscribe_1395@localhost/res1 out
<presence/>
*** User 2024-01-15 12:08:35.853 ***🔗
alice_subscribe_1395@localhost/res1 in
<presence from='alice_subscribe_1395@localhost/res1' to='alice_subscribe_1395@localhost/res1'/>
*** User 2024-01-15 12:08:35.884 ***🔗
bOb_subscribe_1395@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-01-15 12:08:35.885 ***🔗
bOb_subscribe_1395@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7120a44686e13718' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-01-15 12:08:35.885 ***🔗
bOb_subscribe_1395@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-01-15 12:08:35.885 ***🔗
bOb_subscribe_1395@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTM5NQBtYWtyb2xpa2E=</auth>
*** User 2024-01-15 12:08:35.888 ***🔗
bOb_subscribe_1395@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-15 12:08:35.888 ***🔗
bOb_subscribe_1395@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-01-15 12:08:35.888 ***🔗
bOb_subscribe_1395@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e439498ced638485' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1395@localhost'>
*** User 2024-01-15 12:08:35.888 ***🔗
bOb_subscribe_1395@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-01-15 12:08:35.888 ***🔗
bOb_subscribe_1395@localhost/res1 out
<iq type='set' id='69e1e36ae0d3b4a4d50392a10b266f1b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-15 12:08:35.889 ***🔗
bOb_subscribe_1395@localhost/res1 in
<iq id='69e1e36ae0d3b4a4d50392a10b266f1b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1395@localhost/res1</jid>
</bind>
</iq>
*** User 2024-01-15 12:08:35.889 ***🔗
bob_subscribe_1395@localhost/res1 out
<iq type='set' id='3f63616fcc8f0778a4ce5b67442e9bfe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:08:35.890 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1395@localhost/res1' id='3f63616fcc8f0778a4ce5b67442e9bfe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:08:35.890 ***🔗
bob_subscribe_1395@localhost/res1 out
<presence/>
*** User 2024-01-15 12:08:35.891 ***🔗
bob_subscribe_1395@localhost/res1 in
<presence from='bob_subscribe_1395@localhost/res1' to='bob_subscribe_1395@localhost/res1'/>
*** User 2024-01-15 12:08:35.891 ***🔗
alice_subscribe_1395@localhost/res1 out
<iq type='set' id='80923d04055330fc16d2699ccb1f2d00'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1395@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.892 ***🔗
alice_subscribe_1395@localhost/res1 in
<iq from='alice_subscribe_1395@localhost' to='alice_subscribe_1395@localhost/res1' id='pushdf3e3556cab4b60c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1395@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.893 ***🔗
alice_subscribe_1395@localhost/res1 in
<iq from='alice_subscribe_1395@localhost' to='alice_subscribe_1395@localhost/res1' id='80923d04055330fc16d2699ccb1f2d00' type='result'/>
*** User 2024-01-15 12:08:35.893 ***🔗
alice_subscribe_1395@localhost/res1 out
<iq to='alice_subscribe_1395@localhost' id='pushdf3e3556cab4b60c' type='result'/>
*** User 2024-01-15 12:08:35.893 ***🔗
alice_subscribe_1395@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1395@localhost'/>
*** User 2024-01-15 12:08:35.895 ***🔗
alice_subscribe_1395@localhost/res1 in
<iq from='alice_subscribe_1395@localhost' to='alice_subscribe_1395@localhost/res1' id='push6b00723be1a70c4d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1395@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.895 ***🔗
alice_subscribe_1395@localhost/res1 out
<iq to='alice_subscribe_1395@localhost' id='push6b00723be1a70c4d' type='result'/>
*** User 2024-01-15 12:08:35.895 ***🔗
bob_subscribe_1395@localhost/res1 in
<presence from='alice_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' type='subscribe'/>
*** User 2024-01-15 12:08:35.895 ***🔗
bob_subscribe_1395@localhost/res1 out
<iq type='get' id='071458d00e4421b620fc78031ae92531'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-01-15 12:08:35.896 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='bob_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' id='071458d00e4421b620fc78031ae92531' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-01-15 12:08:35.896 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1395@localhost">>},
{<<"to">>,<<"bob_subscribe_1395@localhost/res1">>},
{<<"id">>,<<"071458d00e4421b620fc78031ae92531">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-01-15 12:08:35.896 ***🔗
bob_subscribe_1395@localhost/res1 out
<iq type='set' id='390d9dfe78b665139fdacd17c2d06738'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1395@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.898 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='bob_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' id='pushea4723a998c16c73' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1395@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.898 ***🔗
bob_subscribe_1395@localhost/res1 out
<iq to='bob_subscribe_1395@localhost' id='pushea4723a998c16c73' type='result'/>
*** User 2024-01-15 12:08:35.898 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='bob_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' id='390d9dfe78b665139fdacd17c2d06738' type='result'/>
*** User 2024-01-15 12:08:35.898 ***🔗
bob_subscribe_1395@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1395@localhost'/>
*** User 2024-01-15 12:08:35.899 ***🔗
alice_subscribe_1395@localhost/res1 in
<iq from='alice_subscribe_1395@localhost' to='alice_subscribe_1395@localhost/res1' id='push8b70438580428cb2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1395@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.899 ***🔗
alice_subscribe_1395@localhost/res1 in
<presence from='bob_subscribe_1395@localhost' to='alice_subscribe_1395@localhost/res1' type='subscribed'/>
*** User 2024-01-15 12:08:35.900 ***🔗
alice_subscribe_1395@localhost/res1 in
<presence from='bob_subscribe_1395@localhost/res1' to='alice_subscribe_1395@localhost/res1'/>
*** User 2024-01-15 12:08:35.900 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='bob_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' id='push3962cc72eb1ca91b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1395@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.900 ***🔗
bob_subscribe_1395@localhost/res1 out
<iq type='get' id='a3fe82902cde175bf59b0c413e9d2f80'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-01-15 12:08:35.902 ***🔗
bob_subscribe_1395@localhost/res1 in
<iq from='bob_subscribe_1395@localhost' to='bob_subscribe_1395@localhost/res1' id='a3fe82902cde175bf59b0c413e9d2f80' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1395@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-01-15 12:08:35.902 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1395@localhost">>},
{<<"to">>,<<"bob_subscribe_1395@localhost/res1">>},
{<<"id">>,<<"a3fe82902cde175bf59b0c413e9d2f80">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1395@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-01-15 12:08:35.902 ***🔗
bob_subscribe_1395@localhost/res1 out
<presence/>
*** User 2024-01-15 12:08:35.903 ***🔗
alice_subscribe_1395@localhost/res1 in
<presence from='bob_subscribe_1395@localhost/res1' to='alice_subscribe_1395@localhost/res1'/>
*** User 2024-01-15 12:08:35.903 ***🔗
bob_subscribe_1395@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-01-15 12:08:35.903 ***🔗
alice_subscribe_1395@localhost/res1 in
<presence from='bob_subscribe_1395@localhost/res1' to='alice_subscribe_1395@localhost/res1' type='unavailable'/>
*** User 2024-01-15 12:08:35.903 ***🔗
bob_subscribe_1395@localhost/res1 out
</stream:stream>
*** User 2024-01-15 12:08:35.904 ***🔗
bob_subscribe_1395@localhost/res1 in
</stream:stream>
*** User 2024-01-15 12:08:35.904 ***🔗
alice_subscribe_1395@localhost/res1 out
</stream:stream>
*** User 2024-01-15 12:08:35.904 ***🔗
alice_subscribe_1395@localhost/res1 in
</stream:stream>
=== Ended at 2024-01-15 12:08:35
=== successfully completed test case
=== === Returned value: ok