=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11704.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@163dd0e4bcb2.2024-04-23_06.26.23/big_tests.tests.presence_SUITE.logs/run.2024-04-23_06.36.53/presence_suite.subscribe.89602.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@163dd0e4bcb2.2024-04-23_06.26.23/big_tests.tests.presence_SUITE.logs/run.2024-04-23_06.36.53/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@163dd0e4bcb2.2024-04-23_06.26.23"
=== Started at 2024-04-23 06:36:55
*** User 2024-04-23 06:36:55.171 ***🔗
alicE_subscribe_1461@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-23 06:36:55.172 ***🔗
alicE_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cca6f604d99a7e4e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:36:55.172 ***🔗
alicE_subscribe_1461@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-04-23 06:36:55.172 ***🔗
alicE_subscribe_1461@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNDYxAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 06:36:55.190 ***🔗
alicE_subscribe_1461@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:36:55.190 ***🔗
alicE_subscribe_1461@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-23 06:36:55.191 ***🔗
alicE_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23ba1af6a1cb81a1' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1461@localhost'>
*** User 2024-04-23 06:36:55.191 ***🔗
alicE_subscribe_1461@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-23 06:36:55.191 ***🔗
alicE_subscribe_1461@localhost/res1 out
<iq type='set' id='ae9713105e7d500e11d069c88a9e262d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 06:36:55.191 ***🔗
alicE_subscribe_1461@localhost/res1 in
<iq id='ae9713105e7d500e11d069c88a9e262d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1461@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 06:36:55.191 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq type='set' id='78e8a9c6c89e5daadd95b5124c907043'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:36:55.192 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1461@localhost/res1' id='78e8a9c6c89e5daadd95b5124c907043' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:36:55.192 ***🔗
alice_subscribe_1461@localhost/res1 out
<presence/>
*** User 2024-04-23 06:36:55.192 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='alice_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>
*** User 2024-04-23 06:36:55.193 ***🔗
bOb_subscribe_1461@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-23 06:36:55.193 ***🔗
bOb_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8535120a315bb1a3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:36:55.193 ***🔗
bOb_subscribe_1461@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-04-23 06:36:55.193 ***🔗
bOb_subscribe_1461@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTQ2MQBtYWtyb2xpa2E=</auth>
*** User 2024-04-23 06:36:55.195 ***🔗
bOb_subscribe_1461@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:36:55.195 ***🔗
bOb_subscribe_1461@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-23 06:36:55.195 ***🔗
bOb_subscribe_1461@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6ae21bb397ee7f0' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1461@localhost'>
*** User 2024-04-23 06:36:55.195 ***🔗
bOb_subscribe_1461@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-23 06:36:55.195 ***🔗
bOb_subscribe_1461@localhost/res1 out
<iq type='set' id='2583d2819dc02df88f7306f96a6c8f1f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 06:36:55.195 ***🔗
bOb_subscribe_1461@localhost/res1 in
<iq id='2583d2819dc02df88f7306f96a6c8f1f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1461@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 06:36:55.196 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='set' id='d69da1f6cd43e5e9470948df5f220ee0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:36:55.196 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1461@localhost/res1' id='d69da1f6cd43e5e9470948df5f220ee0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:36:55.196 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence/>
*** User 2024-04-23 06:36:55.196 ***🔗
bob_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='bob_subscribe_1461@localhost/res1'/>
*** User 2024-04-23 06:36:55.197 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq type='set' id='a33854c64b88e044918267efcdfac678'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1461@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.197 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='push20e664fc10fe3d85' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1461@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.197 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='a33854c64b88e044918267efcdfac678' type='result'/>
*** User 2024-04-23 06:36:55.197 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq to='alice_subscribe_1461@localhost' id='push20e664fc10fe3d85' type='result'/>
*** User 2024-04-23 06:36:55.198 ***🔗
alice_subscribe_1461@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1461@localhost'/>
*** User 2024-04-23 06:36:55.199 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='pushf80aadf01a979471' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1461@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.199 ***🔗
alice_subscribe_1461@localhost/res1 out
<iq to='alice_subscribe_1461@localhost' id='pushf80aadf01a979471' type='result'/>
*** User 2024-04-23 06:36:55.199 ***🔗
bob_subscribe_1461@localhost/res1 in
<presence from='alice_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' type='subscribe'/>
*** User 2024-04-23 06:36:55.199 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='get' id='34bf58e375b2b220b7b72b527f1935c1'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 06:36:55.200 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='34bf58e375b2b220b7b72b527f1935c1' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 06:36:55.200 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1461@localhost">>},
{<<"to">>,<<"bob_subscribe_1461@localhost/res1">>},
{<<"id">>,<<"34bf58e375b2b220b7b72b527f1935c1">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-23 06:36:55.200 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='set' id='378802f93be6d2bea20e6eebb54006e0'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1461@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.201 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='push67ff3e69158a5421' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.201 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq to='bob_subscribe_1461@localhost' id='push67ff3e69158a5421' type='result'/>
*** User 2024-04-23 06:36:55.201 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='378802f93be6d2bea20e6eebb54006e0' type='result'/>
*** User 2024-04-23 06:36:55.201 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1461@localhost'/>
*** User 2024-04-23 06:36:55.203 ***🔗
alice_subscribe_1461@localhost/res1 in
<iq from='alice_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' id='pushf080ac70750706d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1461@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.203 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost' to='alice_subscribe_1461@localhost/res1' type='subscribed'/>
*** User 2024-04-23 06:36:55.204 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>
*** User 2024-04-23 06:36:55.204 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='push0acc2a1f43dcecdb' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.204 ***🔗
bob_subscribe_1461@localhost/res1 out
<iq type='get' id='f6e643c1f5db74572243e978587e6485'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 06:36:55.204 ***🔗
bob_subscribe_1461@localhost/res1 in
<iq from='bob_subscribe_1461@localhost' to='bob_subscribe_1461@localhost/res1' id='f6e643c1f5db74572243e978587e6485' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1461@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 06:36:55.205 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1461@localhost">>},
{<<"to">>,<<"bob_subscribe_1461@localhost/res1">>},
{<<"id">>,<<"f6e643c1f5db74572243e978587e6485">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1461@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-23 06:36:55.205 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence/>
*** User 2024-04-23 06:36:55.205 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1'/>
*** User 2024-04-23 06:36:55.205 ***🔗
bob_subscribe_1461@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-23 06:36:55.206 ***🔗
alice_subscribe_1461@localhost/res1 in
<presence from='bob_subscribe_1461@localhost/res1' to='alice_subscribe_1461@localhost/res1' type='unavailable'/>
*** User 2024-04-23 06:36:55.206 ***🔗
bob_subscribe_1461@localhost/res1 out
</stream:stream>
*** User 2024-04-23 06:36:55.206 ***🔗
bob_subscribe_1461@localhost/res1 in
</stream:stream>
*** User 2024-04-23 06:36:55.206 ***🔗
alice_subscribe_1461@localhost/res1 out
</stream:stream>
*** User 2024-04-23 06:36:55.206 ***🔗
alice_subscribe_1461@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 06:36:55
=== successfully completed test case
=== === Returned value: ok