=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.11540.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@03949f4c9d5e.2024-04-10_12.43.18/big_tests.tests.presence_SUITE.logs/run.2024-04-10_12.53.13/presence_suite.subscribe.93570.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@03949f4c9d5e.2024-04-10_12.43.18/big_tests.tests.presence_SUITE.logs/run.2024-04-10_12.53.13/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@03949f4c9d5e.2024-04-10_12.43.18"
=== Started at 2024-04-10 12:53:15
*** User 2024-04-10 12:53:15.722 ***🔗
alicE_subscribe_1387@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-10 12:53:15.723 ***🔗
alicE_subscribe_1387@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ca8f648e3a23c0f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:53:15.723 ***🔗
alicE_subscribe_1387@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-10 12:53:15.723 ***🔗
alicE_subscribe_1387@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMzg3AG1hdHlncnlzYQ==</auth>
*** User 2024-04-10 12:53:15.727 ***🔗
alicE_subscribe_1387@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:53:15.727 ***🔗
alicE_subscribe_1387@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-10 12:53:15.727 ***🔗
alicE_subscribe_1387@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d8e535f8c04783e' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_1387@localhost'>
*** User 2024-04-10 12:53:15.727 ***🔗
alicE_subscribe_1387@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-10 12:53:15.727 ***🔗
alicE_subscribe_1387@localhost/res1 out
<iq type='set' id='ea51f79e3a1aa547d7f882259e1c95eb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:53:15.728 ***🔗
alicE_subscribe_1387@localhost/res1 in
<iq id='ea51f79e3a1aa547d7f882259e1c95eb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1387@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:53:15.728 ***🔗
alice_subscribe_1387@localhost/res1 out
<iq type='set' id='7f75ec6e40730eb64a80b4417762a100'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:53:15.729 ***🔗
alice_subscribe_1387@localhost/res1 in
<iq from='localhost' to='alice_subscribe_1387@localhost/res1' id='7f75ec6e40730eb64a80b4417762a100' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:53:15.729 ***🔗
alice_subscribe_1387@localhost/res1 out
<presence/>
*** User 2024-04-10 12:53:15.730 ***🔗
alice_subscribe_1387@localhost/res1 in
<presence from='alice_subscribe_1387@localhost/res1' to='alice_subscribe_1387@localhost/res1'/>
*** User 2024-04-10 12:53:15.730 ***🔗
bOb_subscribe_1387@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-10 12:53:15.731 ***🔗
bOb_subscribe_1387@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f509b67024869c4a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:53:15.731 ***🔗
bOb_subscribe_1387@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-10 12:53:15.731 ***🔗
bOb_subscribe_1387@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTM4NwBtYWtyb2xpa2E=</auth>
*** User 2024-04-10 12:53:15.759 ***🔗
bOb_subscribe_1387@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:53:15.759 ***🔗
bOb_subscribe_1387@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-10 12:53:15.760 ***🔗
bOb_subscribe_1387@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7190ccb4594fb8c9' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_1387@localhost'>
*** User 2024-04-10 12:53:15.760 ***🔗
bOb_subscribe_1387@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-10 12:53:15.760 ***🔗
bOb_subscribe_1387@localhost/res1 out
<iq type='set' id='eef32c93466a2d2a682eae3964670c82'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:53:15.760 ***🔗
bOb_subscribe_1387@localhost/res1 in
<iq id='eef32c93466a2d2a682eae3964670c82' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1387@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:53:15.761 ***🔗
bob_subscribe_1387@localhost/res1 out
<iq type='set' id='cbf3a43c5cc4510572091472b47b764b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:53:15.761 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='localhost' to='bob_subscribe_1387@localhost/res1' id='cbf3a43c5cc4510572091472b47b764b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:53:15.762 ***🔗
bob_subscribe_1387@localhost/res1 out
<presence/>
*** User 2024-04-10 12:53:15.762 ***🔗
bob_subscribe_1387@localhost/res1 in
<presence from='bob_subscribe_1387@localhost/res1' to='bob_subscribe_1387@localhost/res1'/>
*** User 2024-04-10 12:53:15.763 ***🔗
alice_subscribe_1387@localhost/res1 out
<iq type='set' id='36017ae1461d6596eee0ce6ceab9b5d1'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1387@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.764 ***🔗
alice_subscribe_1387@localhost/res1 in
<iq from='alice_subscribe_1387@localhost' to='alice_subscribe_1387@localhost/res1' id='push0bd0ced69455f3be' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1387@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.765 ***🔗
alice_subscribe_1387@localhost/res1 in
<iq from='alice_subscribe_1387@localhost' to='alice_subscribe_1387@localhost/res1' id='36017ae1461d6596eee0ce6ceab9b5d1' type='result'/>
*** User 2024-04-10 12:53:15.765 ***🔗
alice_subscribe_1387@localhost/res1 out
<iq to='alice_subscribe_1387@localhost' id='push0bd0ced69455f3be' type='result'/>
*** User 2024-04-10 12:53:15.765 ***🔗
alice_subscribe_1387@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1387@localhost'/>
*** User 2024-04-10 12:53:15.767 ***🔗
alice_subscribe_1387@localhost/res1 in
<iq from='alice_subscribe_1387@localhost' to='alice_subscribe_1387@localhost/res1' id='push79e250f7fbb7d105' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_1387@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.767 ***🔗
alice_subscribe_1387@localhost/res1 out
<iq to='alice_subscribe_1387@localhost' id='push79e250f7fbb7d105' type='result'/>
*** User 2024-04-10 12:53:15.767 ***🔗
bob_subscribe_1387@localhost/res1 in
<presence from='alice_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' type='subscribe'/>
*** User 2024-04-10 12:53:15.767 ***🔗
bob_subscribe_1387@localhost/res1 out
<iq type='get' id='9cb53cfaa68cad0ca5afce9564bb82c0'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-10 12:53:15.769 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='bob_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' id='9cb53cfaa68cad0ca5afce9564bb82c0' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-10 12:53:15.769 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1387@localhost">>},
{<<"to">>,<<"bob_subscribe_1387@localhost/res1">>},
{<<"id">>,<<"9cb53cfaa68cad0ca5afce9564bb82c0">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-10 12:53:15.769 ***🔗
bob_subscribe_1387@localhost/res1 out
<iq type='set' id='578dc0a7cbcc40d04cd8780aa55a158a'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1387@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.773 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='bob_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' id='pushf15d47eb1ed1290c' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1387@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.773 ***🔗
bob_subscribe_1387@localhost/res1 out
<iq to='bob_subscribe_1387@localhost' id='pushf15d47eb1ed1290c' type='result'/>
*** User 2024-04-10 12:53:15.773 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='bob_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' id='578dc0a7cbcc40d04cd8780aa55a158a' type='result'/>
*** User 2024-04-10 12:53:15.773 ***🔗
bob_subscribe_1387@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1387@localhost'/>
*** User 2024-04-10 12:53:15.777 ***🔗
alice_subscribe_1387@localhost/res1 in
<iq from='alice_subscribe_1387@localhost' to='alice_subscribe_1387@localhost/res1' id='pushe95cbf6d18bae63d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_1387@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.778 ***🔗
alice_subscribe_1387@localhost/res1 in
<presence from='bob_subscribe_1387@localhost' to='alice_subscribe_1387@localhost/res1' type='subscribed'/>
*** User 2024-04-10 12:53:15.778 ***🔗
alice_subscribe_1387@localhost/res1 in
<presence from='bob_subscribe_1387@localhost/res1' to='alice_subscribe_1387@localhost/res1'/>
*** User 2024-04-10 12:53:15.778 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='bob_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' id='push62e642e06db43f69' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1387@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.779 ***🔗
bob_subscribe_1387@localhost/res1 out
<iq type='get' id='c595f544ed679e9c1a0f41ecd0935811'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-10 12:53:15.779 ***🔗
bob_subscribe_1387@localhost/res1 in
<iq from='bob_subscribe_1387@localhost' to='bob_subscribe_1387@localhost/res1' id='c595f544ed679e9c1a0f41ecd0935811' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_1387@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-10 12:53:15.780 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1387@localhost">>},
{<<"to">>,<<"bob_subscribe_1387@localhost/res1">>},
{<<"id">>,<<"c595f544ed679e9c1a0f41ecd0935811">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1387@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-10 12:53:15.780 ***🔗
bob_subscribe_1387@localhost/res1 out
<presence/>
*** User 2024-04-10 12:53:15.781 ***🔗
alice_subscribe_1387@localhost/res1 in
<presence from='bob_subscribe_1387@localhost/res1' to='alice_subscribe_1387@localhost/res1'/>
*** User 2024-04-10 12:53:15.781 ***🔗
bob_subscribe_1387@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-10 12:53:15.782 ***🔗
alice_subscribe_1387@localhost/res1 in
<presence from='bob_subscribe_1387@localhost/res1' to='alice_subscribe_1387@localhost/res1' type='unavailable'/>
*** User 2024-04-10 12:53:15.782 ***🔗
bob_subscribe_1387@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:53:15.782 ***🔗
bob_subscribe_1387@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:53:15.783 ***🔗
alice_subscribe_1387@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:53:15.783 ***🔗
alice_subscribe_1387@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:53:15
=== successfully completed test case
=== === Returned value: ok