=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11607.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@d67e96ba7168.2024-04-23_08.56.03/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.06.21/presence_suite.subscribe.30980.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@d67e96ba7168.2024-04-23_08.56.03/big_tests.tests.presence_SUITE.logs/run.2024-04-23_09.06.21/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@d67e96ba7168.2024-04-23_08.56.03"
=== Started at 2024-04-23 09:06:23
*** User 2024-04-23 09:06:23.034 ***🔗
alicE_subscribe_1397@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 09:06:23.035 ***🔗
alicE_subscribe_1397@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='65f7c1ae7f94c890' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 09:06:23.035 ***🔗
alicE_subscribe_1397@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 09:06:23.035 ***🔗
alicE_subscribe_1397@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMzk3AG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 09:06:23.036 ***🔗
alicE_subscribe_1397@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 09:06:23.036 ***🔗
alicE_subscribe_1397@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 09:06:23.036 ***🔗
alicE_subscribe_1397@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fa022eac4fb96732' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1397@localhost'>
*** User 2024-04-23 09:06:23.037 ***🔗
alicE_subscribe_1397@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 09:06:23.037 ***🔗
alicE_subscribe_1397@localhost/res1 out
<iq type='set' id='d6b7e1d6cbfaa41bf66d5c5f71d63094'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 09:06:23.037 ***🔗
alicE_subscribe_1397@localhost/res1 in
<iq id='d6b7e1d6cbfaa41bf66d5c5f71d63094' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1397@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 09:06:23.037 ***🔗
alice_subscribe_1397@localhost/res1 out
<iq type='set' id='5a95b5a793cffc82c22b4c63cc98995a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:06:23.037 ***🔗
alice_subscribe_1397@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1397@localhost/res1' id='5a95b5a793cffc82c22b4c63cc98995a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:06:23.038 ***🔗
alice_subscribe_1397@localhost/res1 out
<presence/>
*** User 2024-04-23 09:06:23.038 ***🔗
alice_subscribe_1397@localhost/res1 in
<presence from='alice_subscribe_1397@localhost/res1' to='alice_subscribe_1397@localhost/res1'/>
*** User 2024-04-23 09:06:23.039 ***🔗
bOb_subscribe_1397@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 09:06:23.039 ***🔗
bOb_subscribe_1397@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='956fa1c67b597676' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 09:06:23.039 ***🔗
bOb_subscribe_1397@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 09:06:23.039 ***🔗
bOb_subscribe_1397@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTM5NwBtYWtyb2xpa2E=</auth>
*** User 2024-04-23 09:06:23.041 ***🔗
bOb_subscribe_1397@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 09:06:23.041 ***🔗
bOb_subscribe_1397@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 09:06:23.041 ***🔗
bOb_subscribe_1397@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7a10d59659506ae' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1397@localhost'>
*** User 2024-04-23 09:06:23.041 ***🔗
bOb_subscribe_1397@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 09:06:23.041 ***🔗
bOb_subscribe_1397@localhost/res1 out
<iq type='set' id='f852f99690628266d9741df8605e30f3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 09:06:23.042 ***🔗
bOb_subscribe_1397@localhost/res1 in
<iq id='f852f99690628266d9741df8605e30f3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1397@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 09:06:23.042 ***🔗
bob_subscribe_1397@localhost/res1 out
<iq type='set' id='34ed84a4c5c7f536f37b052e6e52c3bd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:06:23.042 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1397@localhost/res1' id='34ed84a4c5c7f536f37b052e6e52c3bd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 09:06:23.043 ***🔗
bob_subscribe_1397@localhost/res1 out
<presence/>
*** User 2024-04-23 09:06:23.043 ***🔗
bob_subscribe_1397@localhost/res1 in
<presence from='bob_subscribe_1397@localhost/res1' to='bob_subscribe_1397@localhost/res1'/>
*** User 2024-04-23 09:06:23.043 ***🔗
alice_subscribe_1397@localhost/res1 out
<iq type='set' id='7581cec918254737ba22e27d6ebbeeeb'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1397@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.044 ***🔗
alice_subscribe_1397@localhost/res1 in
<iq from='alice_subscribe_1397@localhost' to='alice_subscribe_1397@localhost/res1' id='push005debbb4ab5920f' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1397@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.044 ***🔗
alice_subscribe_1397@localhost/res1 in
<iq from='alice_subscribe_1397@localhost' to='alice_subscribe_1397@localhost/res1' id='7581cec918254737ba22e27d6ebbeeeb' type='result'/>
*** User 2024-04-23 09:06:23.044 ***🔗
alice_subscribe_1397@localhost/res1 out
<iq to='alice_subscribe_1397@localhost' id='push005debbb4ab5920f' type='result'/>
*** User 2024-04-23 09:06:23.045 ***🔗
alice_subscribe_1397@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1397@localhost'/>
*** User 2024-04-23 09:06:23.048 ***🔗
alice_subscribe_1397@localhost/res1 in
<iq from='alice_subscribe_1397@localhost' to='alice_subscribe_1397@localhost/res1' id='push1223de45f6c796b7' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1397@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.049 ***🔗
alice_subscribe_1397@localhost/res1 out
<iq to='alice_subscribe_1397@localhost' id='push1223de45f6c796b7' type='result'/>
*** User 2024-04-23 09:06:23.049 ***🔗
bob_subscribe_1397@localhost/res1 in
<presence from='alice_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' type='subscribe'/>
*** User 2024-04-23 09:06:23.049 ***🔗
bob_subscribe_1397@localhost/res1 out
<iq type='get' id='aa95c558ad9c0bcdca5f3d1eca86331b'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:06:23.050 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='bob_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' id='aa95c558ad9c0bcdca5f3d1eca86331b' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:06:23.050 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1397@localhost">>},
{<<"to">>,<<"bob_subscribe_1397@localhost/res1">>},
{<<"id">>,<<"aa95c558ad9c0bcdca5f3d1eca86331b">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-23 09:06:23.050 ***🔗
bob_subscribe_1397@localhost/res1 out
<iq type='set' id='9f069b5745921f269a954d837794a45e'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1397@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.051 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='bob_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' id='push3fc479d7b48f39a2' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1397@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.088 ***🔗
bob_subscribe_1397@localhost/res1 out
<iq to='bob_subscribe_1397@localhost' id='push3fc479d7b48f39a2' type='result'/>
*** User 2024-04-23 09:06:23.088 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='bob_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' id='9f069b5745921f269a954d837794a45e' type='result'/>
*** User 2024-04-23 09:06:23.088 ***🔗
bob_subscribe_1397@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1397@localhost'/>
*** User 2024-04-23 09:06:23.089 ***🔗
alice_subscribe_1397@localhost/res1 in
<iq from='alice_subscribe_1397@localhost' to='alice_subscribe_1397@localhost/res1' id='push8addfe1a5555a2f8' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1397@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.089 ***🔗
alice_subscribe_1397@localhost/res1 in
<presence from='bob_subscribe_1397@localhost' to='alice_subscribe_1397@localhost/res1' type='subscribed'/>
*** User 2024-04-23 09:06:23.090 ***🔗
alice_subscribe_1397@localhost/res1 in
<presence from='bob_subscribe_1397@localhost/res1' to='alice_subscribe_1397@localhost/res1'/>
*** User 2024-04-23 09:06:23.090 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='bob_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' id='pushbb503831d42d9251' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1397@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.090 ***🔗
bob_subscribe_1397@localhost/res1 out
<iq type='get' id='f45a923e64e3fe12f8e69cc6760aaabb'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-23 09:06:23.091 ***🔗
bob_subscribe_1397@localhost/res1 in
<iq from='bob_subscribe_1397@localhost' to='bob_subscribe_1397@localhost/res1' id='f45a923e64e3fe12f8e69cc6760aaabb' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1397@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-23 09:06:23.092 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1397@localhost">>},
{<<"to">>,<<"bob_subscribe_1397@localhost/res1">>},
{<<"id">>,<<"f45a923e64e3fe12f8e69cc6760aaabb">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1397@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-23 09:06:23.092 ***🔗
bob_subscribe_1397@localhost/res1 out
<presence/>
*** User 2024-04-23 09:06:23.092 ***🔗
alice_subscribe_1397@localhost/res1 in
<presence from='bob_subscribe_1397@localhost/res1' to='alice_subscribe_1397@localhost/res1'/>
*** User 2024-04-23 09:06:23.092 ***🔗
bob_subscribe_1397@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-23 09:06:23.093 ***🔗
alice_subscribe_1397@localhost/res1 in
<presence from='bob_subscribe_1397@localhost/res1' to='alice_subscribe_1397@localhost/res1' type='unavailable'/>
*** User 2024-04-23 09:06:23.093 ***🔗
bob_subscribe_1397@localhost/res1 out
</stream:stream>
*** User 2024-04-23 09:06:23.093 ***🔗
bob_subscribe_1397@localhost/res1 in
</stream:stream>
*** User 2024-04-23 09:06:23.093 ***🔗
alice_subscribe_1397@localhost/res1 out
</stream:stream>
*** User 2024-04-23 09:06:23.094 ***🔗
alice_subscribe_1397@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 09:06:23
=== successfully completed test case
=== === Returned value: ok