=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.75443.0>},
{preset,"odbc_mssql_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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.presence_SUITE.logs/run.2024-03-08_09.16.02/presence_suite.subscribe.100228.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.presence_SUITE.logs/run.2024-03-08_09.16.02/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@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:16:04
*** User 2024-03-08 09:16:04.960 ***🔗
alicE_subscribe_2835@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-03-08 09:16:04.961 ***🔗
alicE_subscribe_2835@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd6d3d5abc29872e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:16:04.961 ***🔗
alicE_subscribe_2835@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-03-08 09:16:04.961 ***🔗
alicE_subscribe_2835@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODM1AG1hdHlncnlzYQ==</auth>
*** User 2024-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@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-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='732bbb6662a27544' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2835@localhost'>
*** User 2024-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@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-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@localhost/res1 out
<iq type='set' id='fbca134914a2b30568f6e920b27f37dd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:16:04.971 ***🔗
alicE_subscribe_2835@localhost/res1 in
<iq id='fbca134914a2b30568f6e920b27f37dd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2835@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:16:04.972 ***🔗
alice_subscribe_2835@localhost/res1 out
<iq type='set' id='87fe643ea649744532b029d4d550b812'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:04.972 ***🔗
alice_subscribe_2835@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2835@localhost/res1' id='87fe643ea649744532b029d4d550b812' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:04.972 ***🔗
alice_subscribe_2835@localhost/res1 out
<presence/>
*** User 2024-03-08 09:16:04.980 ***🔗
alice_subscribe_2835@localhost/res1 in
<presence from='alice_subscribe_2835@localhost/res1' to='alice_subscribe_2835@localhost/res1'/>
*** User 2024-03-08 09:16:04.980 ***🔗
bOb_subscribe_2835@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-03-08 09:16:04.980 ***🔗
bOb_subscribe_2835@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='31418266ceb715a3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:16:04.981 ***🔗
bOb_subscribe_2835@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-03-08 09:16:04.981 ***🔗
bOb_subscribe_2835@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjgzNQBtYWtyb2xpa2E=</auth>
*** User 2024-03-08 09:16:04.994 ***🔗
bOb_subscribe_2835@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:16:04.994 ***🔗
bOb_subscribe_2835@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-03-08 09:16:04.995 ***🔗
bOb_subscribe_2835@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5949b3d02ca76d7' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2835@localhost'>
*** User 2024-03-08 09:16:04.995 ***🔗
bOb_subscribe_2835@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-03-08 09:16:04.995 ***🔗
bOb_subscribe_2835@localhost/res1 out
<iq type='set' id='5edb9db5f604a63a602b19f401ae2620'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:16:04.995 ***🔗
bOb_subscribe_2835@localhost/res1 in
<iq id='5edb9db5f604a63a602b19f401ae2620' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2835@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:16:04.995 ***🔗
bob_subscribe_2835@localhost/res1 out
<iq type='set' id='004d8ceb2f4fb0aa386463265ae7d15e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:04.996 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2835@localhost/res1' id='004d8ceb2f4fb0aa386463265ae7d15e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:16:04.996 ***🔗
bob_subscribe_2835@localhost/res1 out
<presence/>
*** User 2024-03-08 09:16:05.020 ***🔗
bob_subscribe_2835@localhost/res1 in
<presence from='bob_subscribe_2835@localhost/res1' to='bob_subscribe_2835@localhost/res1'/>
*** User 2024-03-08 09:16:05.021 ***🔗
alice_subscribe_2835@localhost/res1 out
<iq type='set' id='79eb683dab1abd9e15702eada86d921e'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2835@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.045 ***🔗
alice_subscribe_2835@localhost/res1 in
<iq from='alice_subscribe_2835@localhost' to='alice_subscribe_2835@localhost/res1' id='push68a63eb1e4d8dc33' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_2835@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.045 ***🔗
alice_subscribe_2835@localhost/res1 in
<iq from='alice_subscribe_2835@localhost' to='alice_subscribe_2835@localhost/res1' id='79eb683dab1abd9e15702eada86d921e' type='result'/>
*** User 2024-03-08 09:16:05.045 ***🔗
alice_subscribe_2835@localhost/res1 out
<iq to='alice_subscribe_2835@localhost' id='push68a63eb1e4d8dc33' type='result'/>
*** User 2024-03-08 09:16:05.045 ***🔗
alice_subscribe_2835@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2835@localhost'/>
*** User 2024-03-08 09:16:05.060 ***🔗
alice_subscribe_2835@localhost/res1 in
<iq from='alice_subscribe_2835@localhost' to='alice_subscribe_2835@localhost/res1' id='push13b7aeadee812c91' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2835@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.060 ***🔗
alice_subscribe_2835@localhost/res1 out
<iq to='alice_subscribe_2835@localhost' id='push13b7aeadee812c91' type='result'/>
*** User 2024-03-08 09:16:05.060 ***🔗
bob_subscribe_2835@localhost/res1 in
<presence from='alice_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' type='subscribe'/>
*** User 2024-03-08 09:16:05.060 ***🔗
bob_subscribe_2835@localhost/res1 out
<iq type='get' id='4882dfb042b8e593d0df7cf068d2f2f8'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-08 09:16:05.062 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='bob_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' id='4882dfb042b8e593d0df7cf068d2f2f8' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-08 09:16:05.062 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2835@localhost">>},
{<<"to">>,<<"bob_subscribe_2835@localhost/res1">>},
{<<"id">>,<<"4882dfb042b8e593d0df7cf068d2f2f8">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-08 09:16:05.063 ***🔗
bob_subscribe_2835@localhost/res1 out
<iq type='set' id='fcd41ca1e27771796715bdf61ce362d5'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2835@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.066 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='bob_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' id='push79c6080ce8221225' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_2835@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.066 ***🔗
bob_subscribe_2835@localhost/res1 out
<iq to='bob_subscribe_2835@localhost' id='push79c6080ce8221225' type='result'/>
*** User 2024-03-08 09:16:05.066 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='bob_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' id='fcd41ca1e27771796715bdf61ce362d5' type='result'/>
*** User 2024-03-08 09:16:05.066 ***🔗
bob_subscribe_2835@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2835@localhost'/>
*** User 2024-03-08 09:16:05.073 ***🔗
alice_subscribe_2835@localhost/res1 in
<iq from='alice_subscribe_2835@localhost' to='alice_subscribe_2835@localhost/res1' id='pushdfcf48552453e5ca' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_2835@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.073 ***🔗
alice_subscribe_2835@localhost/res1 in
<presence from='bob_subscribe_2835@localhost' to='alice_subscribe_2835@localhost/res1' type='subscribed'/>
*** User 2024-03-08 09:16:05.073 ***🔗
alice_subscribe_2835@localhost/res1 in
<presence from='bob_subscribe_2835@localhost/res1' to='alice_subscribe_2835@localhost/res1'/>
*** User 2024-03-08 09:16:05.073 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='bob_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' id='pushb73789ccc9f88948' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2835@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.073 ***🔗
bob_subscribe_2835@localhost/res1 out
<iq type='get' id='31c6c27ea804cd8caed1a60121aba93e'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-08 09:16:05.076 ***🔗
bob_subscribe_2835@localhost/res1 in
<iq from='bob_subscribe_2835@localhost' to='bob_subscribe_2835@localhost/res1' id='31c6c27ea804cd8caed1a60121aba93e' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2835@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-08 09:16:05.076 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2835@localhost">>},
{<<"to">>,<<"bob_subscribe_2835@localhost/res1">>},
{<<"id">>,<<"31c6c27ea804cd8caed1a60121aba93e">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2835@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-08 09:16:05.076 ***🔗
bob_subscribe_2835@localhost/res1 out
<presence/>
*** User 2024-03-08 09:16:05.077 ***🔗
alice_subscribe_2835@localhost/res1 in
<presence from='bob_subscribe_2835@localhost/res1' to='alice_subscribe_2835@localhost/res1'/>
*** User 2024-03-08 09:16:05.077 ***🔗
bob_subscribe_2835@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-03-08 09:16:05.077 ***🔗
alice_subscribe_2835@localhost/res1 in
<presence from='bob_subscribe_2835@localhost/res1' to='alice_subscribe_2835@localhost/res1' type='unavailable'/>
*** User 2024-03-08 09:16:05.077 ***🔗
bob_subscribe_2835@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:16:05.077 ***🔗
bob_subscribe_2835@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:16:05.078 ***🔗
alice_subscribe_2835@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:16:05.078 ***🔗
alice_subscribe_2835@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 09:16:05
=== successfully completed test case
=== === Returned value: ok