=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.72543.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.59.45/presence_suite.subscribe.147715.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.presence_SUITE.logs/run.2024-03-21_07.59.45/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@55d20a7e6e08.2024-03-21_07.45.40"
=== Started at 2024-03-21 07:59:47
*** User 2024-03-21 07:59:47.508 ***🔗
alicE_subscribe_2924@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:59:47.509 ***🔗
alicE_subscribe_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c724db5cbebb810f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:59:47.509 ***🔗
alicE_subscribe_2924@domain.example.com/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-21 07:59:47.509 ***🔗
alicE_subscribe_2924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTI0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:59:47.509 ***🔗
alicE_subscribe_2924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:59:47.509 ***🔗
alicE_subscribe_2924@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:59:47.510 ***🔗
alicE_subscribe_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d21d22d9ab26c0fa' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2924@domain.example.com'>
*** User 2024-03-21 07:59:47.510 ***🔗
alicE_subscribe_2924@domain.example.com/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-21 07:59:47.510 ***🔗
alicE_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='d6b6c73909647c0c6d5d4acb060c30cb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:59:47.510 ***🔗
alicE_subscribe_2924@domain.example.com/res1 in
<iq id='d6b6c73909647c0c6d5d4acb060c30cb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2924@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:59:47.510 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='ffb21a41a30119fce903a4cec5840742'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:47.511 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' id='ffb21a41a30119fce903a4cec5840742' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:47.511 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 07:59:47.512 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<presence from='alice_subscribe_2924@domain.example.com/res1' to='alice_subscribe_2924@domain.example.com/res1'/>
*** User 2024-03-21 07:59:47.513 ***🔗
bOb_subscribe_2924@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:59:47.513 ***🔗
bOb_subscribe_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7dc6c32d4cf0cbd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:59:47.513 ***🔗
bOb_subscribe_2924@domain.example.com/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-21 07:59:47.513 ***🔗
bOb_subscribe_2924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkyNABtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:59:47.514 ***🔗
bOb_subscribe_2924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:59:47.514 ***🔗
bOb_subscribe_2924@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 07:59:47.514 ***🔗
bOb_subscribe_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9744f06059ac5887' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2924@domain.example.com'>
*** User 2024-03-21 07:59:47.515 ***🔗
bOb_subscribe_2924@domain.example.com/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-21 07:59:47.515 ***🔗
bOb_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='3e7db37d9dc60bfb82824bbf70a6b530'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:59:47.515 ***🔗
bOb_subscribe_2924@domain.example.com/res1 in
<iq id='3e7db37d9dc60bfb82824bbf70a6b530' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2924@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:59:47.515 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='69af1ecc45d3ed06ca61d9ed608824cf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:47.516 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='69af1ecc45d3ed06ca61d9ed608824cf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:59:47.516 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 07:59:47.517 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<presence from='bob_subscribe_2924@domain.example.com/res1' to='bob_subscribe_2924@domain.example.com/res1'/>
*** User 2024-03-21 07:59:47.517 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='e212f6937d80110a8b1c0518d0ba6f71'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2924@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.520 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<iq from='alice_subscribe_2924@domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' id='push8d82689edc0324f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2924@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.520 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<iq from='alice_subscribe_2924@domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' id='e212f6937d80110a8b1c0518d0ba6f71' type='result'/>
*** User 2024-03-21 07:59:47.520 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<iq to='alice_subscribe_2924@domain.example.com' id='push8d82689edc0324f6' type='result'/>
*** User 2024-03-21 07:59:47.520 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2924@domain.example.com'/>
*** User 2024-03-21 07:59:47.526 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<iq from='alice_subscribe_2924@domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' id='push2c28c275ab714a67' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2924@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.526 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
<iq to='alice_subscribe_2924@domain.example.com' id='push2c28c275ab714a67' type='result'/>
*** User 2024-03-21 07:59:47.526 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<presence from='alice_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 07:59:47.526 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<iq type='get' id='615e92883f4bab82c0376bf728c7a083'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:47.532 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='bob_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='615e92883f4bab82c0376bf728c7a083' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:47.532 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2924@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2924@domain.example.com/res1">>},
{<<"id">>,<<"615e92883f4bab82c0376bf728c7a083">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-21 07:59:47.532 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<iq type='set' id='5a2447ce4eefdcbe37ee87688ed4b22d'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2924@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.534 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='bob_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='pushff38b8ee726d62bd' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2924@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.534 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<iq to='bob_subscribe_2924@domain.example.com' id='pushff38b8ee726d62bd' type='result'/>
*** User 2024-03-21 07:59:47.534 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='bob_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='5a2447ce4eefdcbe37ee87688ed4b22d' type='result'/>
*** User 2024-03-21 07:59:47.534 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2924@domain.example.com'/>
*** User 2024-03-21 07:59:47.563 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<iq from='alice_subscribe_2924@domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' id='push90202584d05bc473' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2924@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.563 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<presence from='bob_subscribe_2924@domain.example.com' to='alice_subscribe_2924@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 07:59:47.564 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<presence from='bob_subscribe_2924@domain.example.com/res1' to='alice_subscribe_2924@domain.example.com/res1'/>
*** User 2024-03-21 07:59:47.564 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='bob_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='push7b1131dd498ce9d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2924@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.564 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<iq type='get' id='41af88edb9acca411bfeae98a97c46a0'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-21 07:59:47.565 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
<iq from='bob_subscribe_2924@domain.example.com' to='bob_subscribe_2924@domain.example.com/res1' id='41af88edb9acca411bfeae98a97c46a0' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2924@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-21 07:59:47.565 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2924@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2924@domain.example.com/res1">>},
{<<"id">>,<<"41af88edb9acca411bfeae98a97c46a0">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2924@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-21 07:59:47.565 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 07:59:47.566 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<presence from='bob_subscribe_2924@domain.example.com/res1' to='alice_subscribe_2924@domain.example.com/res1'/>
*** User 2024-03-21 07:59:47.566 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-03-21 07:59:47.567 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
<presence from='bob_subscribe_2924@domain.example.com/res1' to='alice_subscribe_2924@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 07:59:47.567 ***🔗
bob_subscribe_2924@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 07:59:47.567 ***🔗
bob_subscribe_2924@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-21 07:59:47.567 ***🔗
alice_subscribe_2924@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 07:59:47.567 ***🔗
alice_subscribe_2924@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:59:47
=== successfully completed test case
=== === Returned value: ok