=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.78007.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@08e20f3a1f6a.2024-04-26_12.39.28/big_tests.tests.presence_SUITE.logs/run.2024-04-26_12.55.12/presence_suite.subscribe.229890.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@08e20f3a1f6a.2024-04-26_12.39.28/big_tests.tests.presence_SUITE.logs/run.2024-04-26_12.55.12/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@08e20f3a1f6a.2024-04-26_12.39.28"
=== Started at 2024-04-26 12:55:14
*** User 2024-04-26 12:55:14.481 ***🔗
alicE_subscribe_2994@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-26 12:55:14.481 ***🔗
alicE_subscribe_2994@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8038d83aa34f51e0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:55:14.481 ***🔗
alicE_subscribe_2994@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-26 12:55:14.481 ***🔗
alicE_subscribe_2994@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTk0AG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 12:55:14.482 ***🔗
alicE_subscribe_2994@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:55:14.482 ***🔗
alicE_subscribe_2994@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-26 12:55:14.483 ***🔗
alicE_subscribe_2994@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a0022a06922a12ac' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2994@localhost'>
*** User 2024-04-26 12:55:14.483 ***🔗
alicE_subscribe_2994@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-26 12:55:14.483 ***🔗
alicE_subscribe_2994@localhost/res1 out
<iq type='set' id='b2c45b5d773e7cf7dd0e8874025bb2e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:55:14.483 ***🔗
alicE_subscribe_2994@localhost/res1 in
<iq id='b2c45b5d773e7cf7dd0e8874025bb2e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2994@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:55:14.483 ***🔗
alice_subscribe_2994@localhost/res1 out
<iq type='set' id='424cf99b9d15fd2018f6c419bbdef4eb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:55:14.484 ***🔗
alice_subscribe_2994@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2994@localhost/res1' id='424cf99b9d15fd2018f6c419bbdef4eb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:55:14.484 ***🔗
alice_subscribe_2994@localhost/res1 out
<presence/>
*** User 2024-04-26 12:55:14.485 ***🔗
alice_subscribe_2994@localhost/res1 in
<presence from='alice_subscribe_2994@localhost/res1' to='alice_subscribe_2994@localhost/res1'/>
*** User 2024-04-26 12:55:14.486 ***🔗
bOb_subscribe_2994@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-26 12:55:14.486 ***🔗
bOb_subscribe_2994@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e94f9d9f85483026' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:55:14.486 ***🔗
bOb_subscribe_2994@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-26 12:55:14.486 ***🔗
bOb_subscribe_2994@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjk5NABtYWtyb2xpa2E=</auth>
*** User 2024-04-26 12:55:14.487 ***🔗
bOb_subscribe_2994@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:55:14.487 ***🔗
bOb_subscribe_2994@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-26 12:55:14.488 ***🔗
bOb_subscribe_2994@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c34f09f05abb64f' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2994@localhost'>
*** User 2024-04-26 12:55:14.488 ***🔗
bOb_subscribe_2994@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-26 12:55:14.488 ***🔗
bOb_subscribe_2994@localhost/res1 out
<iq type='set' id='dd5abe8342b5394e1965ac6c29ca57db'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:55:14.488 ***🔗
bOb_subscribe_2994@localhost/res1 in
<iq id='dd5abe8342b5394e1965ac6c29ca57db' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2994@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:55:14.488 ***🔗
bob_subscribe_2994@localhost/res1 out
<iq type='set' id='6eed16c1895f3e59ff10c029bf792eb4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:55:14.489 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2994@localhost/res1' id='6eed16c1895f3e59ff10c029bf792eb4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:55:14.489 ***🔗
bob_subscribe_2994@localhost/res1 out
<presence/>
*** User 2024-04-26 12:55:14.490 ***🔗
bob_subscribe_2994@localhost/res1 in
<presence from='bob_subscribe_2994@localhost/res1' to='bob_subscribe_2994@localhost/res1'/>
*** User 2024-04-26 12:55:14.490 ***🔗
alice_subscribe_2994@localhost/res1 out
<iq type='set' id='bb671904ad08cad088041e0262f8e90f'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2994@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.514 ***🔗
alice_subscribe_2994@localhost/res1 in
<iq from='alice_subscribe_2994@localhost' to='alice_subscribe_2994@localhost/res1' id='push63c24d2690039a20' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2994@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.514 ***🔗
alice_subscribe_2994@localhost/res1 in
<iq from='alice_subscribe_2994@localhost' to='alice_subscribe_2994@localhost/res1' id='bb671904ad08cad088041e0262f8e90f' type='result'/>
*** User 2024-04-26 12:55:14.514 ***🔗
alice_subscribe_2994@localhost/res1 out
<iq to='alice_subscribe_2994@localhost' id='push63c24d2690039a20' type='result'/>
*** User 2024-04-26 12:55:14.514 ***🔗
alice_subscribe_2994@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2994@localhost'/>
*** User 2024-04-26 12:55:14.522 ***🔗
alice_subscribe_2994@localhost/res1 in
<iq from='alice_subscribe_2994@localhost' to='alice_subscribe_2994@localhost/res1' id='pushebb61ee194208147' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2994@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.522 ***🔗
alice_subscribe_2994@localhost/res1 out
<iq to='alice_subscribe_2994@localhost' id='pushebb61ee194208147' type='result'/>
*** User 2024-04-26 12:55:14.522 ***🔗
bob_subscribe_2994@localhost/res1 in
<presence from='alice_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' type='subscribe'/>
*** User 2024-04-26 12:55:14.522 ***🔗
bob_subscribe_2994@localhost/res1 out
<iq type='get' id='20906f4ba6bee8f7fe010e198dea6840'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-26 12:55:14.528 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='bob_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' id='20906f4ba6bee8f7fe010e198dea6840' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-26 12:55:14.529 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2994@localhost">>},
{<<"to">>,<<"bob_subscribe_2994@localhost/res1">>},
{<<"id">>,<<"20906f4ba6bee8f7fe010e198dea6840">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-26 12:55:14.529 ***🔗
bob_subscribe_2994@localhost/res1 out
<iq type='set' id='ca7e81cdcd36325d2bef92bee05c27bc'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2994@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.532 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='bob_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' id='push6da3f9e6d9cd83fc' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2994@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.532 ***🔗
bob_subscribe_2994@localhost/res1 out
<iq to='bob_subscribe_2994@localhost' id='push6da3f9e6d9cd83fc' type='result'/>
*** User 2024-04-26 12:55:14.532 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='bob_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' id='ca7e81cdcd36325d2bef92bee05c27bc' type='result'/>
*** User 2024-04-26 12:55:14.532 ***🔗
bob_subscribe_2994@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2994@localhost'/>
*** User 2024-04-26 12:55:14.539 ***🔗
alice_subscribe_2994@localhost/res1 in
<iq from='alice_subscribe_2994@localhost' to='alice_subscribe_2994@localhost/res1' id='push75ff9e2da5833c92' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2994@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.539 ***🔗
alice_subscribe_2994@localhost/res1 in
<presence from='bob_subscribe_2994@localhost' to='alice_subscribe_2994@localhost/res1' type='subscribed'/>
*** User 2024-04-26 12:55:14.540 ***🔗
alice_subscribe_2994@localhost/res1 in
<presence from='bob_subscribe_2994@localhost/res1' to='alice_subscribe_2994@localhost/res1'/>
*** User 2024-04-26 12:55:14.540 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='bob_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' id='pushf1358f25e1a1c897' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2994@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.540 ***🔗
bob_subscribe_2994@localhost/res1 out
<iq type='get' id='f77b9120113c3d9e5a4216ed33a55367'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-26 12:55:14.542 ***🔗
bob_subscribe_2994@localhost/res1 in
<iq from='bob_subscribe_2994@localhost' to='bob_subscribe_2994@localhost/res1' id='f77b9120113c3d9e5a4216ed33a55367' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2994@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-26 12:55:14.543 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2994@localhost">>},
{<<"to">>,<<"bob_subscribe_2994@localhost/res1">>},
{<<"id">>,<<"f77b9120113c3d9e5a4216ed33a55367">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2994@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-26 12:55:14.543 ***🔗
bob_subscribe_2994@localhost/res1 out
<presence/>
*** User 2024-04-26 12:55:14.544 ***🔗
alice_subscribe_2994@localhost/res1 in
<presence from='bob_subscribe_2994@localhost/res1' to='alice_subscribe_2994@localhost/res1'/>
*** User 2024-04-26 12:55:14.544 ***🔗
bob_subscribe_2994@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-26 12:55:14.544 ***🔗
alice_subscribe_2994@localhost/res1 in
<presence from='bob_subscribe_2994@localhost/res1' to='alice_subscribe_2994@localhost/res1' type='unavailable'/>
*** User 2024-04-26 12:55:14.544 ***🔗
bob_subscribe_2994@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:55:14.545 ***🔗
bob_subscribe_2994@localhost/res1 in
</stream:stream>
*** User 2024-04-26 12:55:14.545 ***🔗
alice_subscribe_2994@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:55:14.545 ***🔗
alice_subscribe_2994@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-26 12:55:14
=== successfully completed test case
=== === Returned value: ok