=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.78459.0>},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a91c848225da.2024-04-24_13.09.45/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.23.39/presence_suite.subscribe.178947.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@a91c848225da.2024-04-24_13.09.45/big_tests.tests.presence_SUITE.logs/run.2024-04-24_13.23.39/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@a91c848225da.2024-04-24_13.09.45"
=== Started at 2024-04-24 13:23:41
*** User 2024-04-24 13:23:41.055 ***🔗
alicE_subscribe_2899@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-24 13:23:41.056 ***🔗
alicE_subscribe_2899@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33851cdb8e045357' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:41.056 ***🔗
alicE_subscribe_2899@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-04-24 13:23:41.056 ***🔗
alicE_subscribe_2899@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODk5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-24 13:23:41.057 ***🔗
alicE_subscribe_2899@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:41.057 ***🔗
alicE_subscribe_2899@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-24 13:23:41.057 ***🔗
alicE_subscribe_2899@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97d3b6ab8ed14442' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2899@localhost'>
*** User 2024-04-24 13:23:41.057 ***🔗
alicE_subscribe_2899@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-24 13:23:41.057 ***🔗
alicE_subscribe_2899@localhost/res1 out
<iq type='set' id='0a6892abe3b798de999f54df6c31c76c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:41.057 ***🔗
alicE_subscribe_2899@localhost/res1 in
<iq id='0a6892abe3b798de999f54df6c31c76c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2899@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:41.058 ***🔗
alice_subscribe_2899@localhost/res1 out
<iq type='set' id='bdd5fec0cfd7f94efeffc20c68916994'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:41.058 ***🔗
alice_subscribe_2899@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2899@localhost/res1' id='bdd5fec0cfd7f94efeffc20c68916994' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:41.058 ***🔗
alice_subscribe_2899@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:41.060 ***🔗
alice_subscribe_2899@localhost/res1 in
<presence from='alice_subscribe_2899@localhost/res1' to='alice_subscribe_2899@localhost/res1'/>
*** User 2024-04-24 13:23:41.061 ***🔗
bOb_subscribe_2899@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-24 13:23:41.061 ***🔗
bOb_subscribe_2899@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ce760a02b8821a4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-24 13:23:41.061 ***🔗
bOb_subscribe_2899@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-04-24 13:23:41.062 ***🔗
bOb_subscribe_2899@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg5OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-24 13:23:41.063 ***🔗
bOb_subscribe_2899@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-24 13:23:41.063 ***🔗
bOb_subscribe_2899@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-24 13:23:41.063 ***🔗
bOb_subscribe_2899@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27223c3da173184f' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2899@localhost'>
*** User 2024-04-24 13:23:41.063 ***🔗
bOb_subscribe_2899@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-24 13:23:41.063 ***🔗
bOb_subscribe_2899@localhost/res1 out
<iq type='set' id='f8751ef43fb6567e84d5ae82ecab2c69'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-24 13:23:41.063 ***🔗
bOb_subscribe_2899@localhost/res1 in
<iq id='f8751ef43fb6567e84d5ae82ecab2c69' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2899@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-24 13:23:41.063 ***🔗
bob_subscribe_2899@localhost/res1 out
<iq type='set' id='b375920a0274bfcbc4f78bfa832a3494'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:41.064 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2899@localhost/res1' id='b375920a0274bfcbc4f78bfa832a3494' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-24 13:23:41.064 ***🔗
bob_subscribe_2899@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:41.065 ***🔗
bob_subscribe_2899@localhost/res1 in
<presence from='bob_subscribe_2899@localhost/res1' to='bob_subscribe_2899@localhost/res1'/>
*** User 2024-04-24 13:23:41.065 ***🔗
alice_subscribe_2899@localhost/res1 out
<iq type='set' id='9dd936e1bb89848e45d7277b3310d672'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2899@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.078 ***🔗
alice_subscribe_2899@localhost/res1 in
<iq from='alice_subscribe_2899@localhost' to='alice_subscribe_2899@localhost/res1' id='pushedd90f7ba10df038' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2899@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.078 ***🔗
alice_subscribe_2899@localhost/res1 in
<iq from='alice_subscribe_2899@localhost' to='alice_subscribe_2899@localhost/res1' id='9dd936e1bb89848e45d7277b3310d672' type='result'/>
*** User 2024-04-24 13:23:41.078 ***🔗
alice_subscribe_2899@localhost/res1 out
<iq to='alice_subscribe_2899@localhost' id='pushedd90f7ba10df038' type='result'/>
*** User 2024-04-24 13:23:41.078 ***🔗
alice_subscribe_2899@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2899@localhost'/>
*** User 2024-04-24 13:23:41.085 ***🔗
alice_subscribe_2899@localhost/res1 in
<iq from='alice_subscribe_2899@localhost' to='alice_subscribe_2899@localhost/res1' id='push20a48b5454b3317c' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2899@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.085 ***🔗
alice_subscribe_2899@localhost/res1 out
<iq to='alice_subscribe_2899@localhost' id='push20a48b5454b3317c' type='result'/>
*** User 2024-04-24 13:23:41.085 ***🔗
bob_subscribe_2899@localhost/res1 in
<presence from='alice_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' type='subscribe'/>
*** User 2024-04-24 13:23:41.085 ***🔗
bob_subscribe_2899@localhost/res1 out
<iq type='get' id='49b6cc6a724e27552415fdd314429110'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:23:41.112 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='bob_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' id='49b6cc6a724e27552415fdd314429110' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:23:41.113 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2899@localhost">>},
{<<"to">>,<<"bob_subscribe_2899@localhost/res1">>},
{<<"id">>,<<"49b6cc6a724e27552415fdd314429110">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-24 13:23:41.113 ***🔗
bob_subscribe_2899@localhost/res1 out
<iq type='set' id='483ef34a46f4ef2895763a7dca9eb5dd'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2899@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.117 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='bob_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' id='push2956ba88663b74d1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2899@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.117 ***🔗
bob_subscribe_2899@localhost/res1 out
<iq to='bob_subscribe_2899@localhost' id='push2956ba88663b74d1' type='result'/>
*** User 2024-04-24 13:23:41.117 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='bob_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' id='483ef34a46f4ef2895763a7dca9eb5dd' type='result'/>
*** User 2024-04-24 13:23:41.117 ***🔗
bob_subscribe_2899@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2899@localhost'/>
*** User 2024-04-24 13:23:41.125 ***🔗
alice_subscribe_2899@localhost/res1 in
<iq from='alice_subscribe_2899@localhost' to='alice_subscribe_2899@localhost/res1' id='push5170a03c270184f3' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2899@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.125 ***🔗
alice_subscribe_2899@localhost/res1 in
<presence from='bob_subscribe_2899@localhost' to='alice_subscribe_2899@localhost/res1' type='subscribed'/>
*** User 2024-04-24 13:23:41.125 ***🔗
alice_subscribe_2899@localhost/res1 in
<presence from='bob_subscribe_2899@localhost/res1' to='alice_subscribe_2899@localhost/res1'/>
*** User 2024-04-24 13:23:41.125 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='bob_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' id='push4fd47299cad3c6fa' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2899@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.125 ***🔗
bob_subscribe_2899@localhost/res1 out
<iq type='get' id='fe1c5e67b2bb3db8210b494a516b3b02'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-24 13:23:41.130 ***🔗
bob_subscribe_2899@localhost/res1 in
<iq from='bob_subscribe_2899@localhost' to='bob_subscribe_2899@localhost/res1' id='fe1c5e67b2bb3db8210b494a516b3b02' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2899@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-24 13:23:41.131 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2899@localhost">>},
{<<"to">>,<<"bob_subscribe_2899@localhost/res1">>},
{<<"id">>,<<"fe1c5e67b2bb3db8210b494a516b3b02">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2899@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-24 13:23:41.131 ***🔗
bob_subscribe_2899@localhost/res1 out
<presence/>
*** User 2024-04-24 13:23:41.133 ***🔗
alice_subscribe_2899@localhost/res1 in
<presence from='bob_subscribe_2899@localhost/res1' to='alice_subscribe_2899@localhost/res1'/>
*** User 2024-04-24 13:23:41.133 ***🔗
bob_subscribe_2899@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-24 13:23:41.133 ***🔗
alice_subscribe_2899@localhost/res1 in
<presence from='bob_subscribe_2899@localhost/res1' to='alice_subscribe_2899@localhost/res1' type='unavailable'/>
*** User 2024-04-24 13:23:41.134 ***🔗
bob_subscribe_2899@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:41.134 ***🔗
bob_subscribe_2899@localhost/res1 in
</stream:stream>
*** User 2024-04-24 13:23:41.134 ***🔗
alice_subscribe_2899@localhost/res1 out
</stream:stream>
*** User 2024-04-24 13:23:41.135 ***🔗
alice_subscribe_2899@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-24 13:23:41
=== successfully completed test case
=== === Returned value: ok