=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.73148.0>},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.presence_SUITE.logs/run.2024-04-18_11.08.28/presence_suite.subscribe.194562.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.presence_SUITE.logs/run.2024-04-18_11.08.28/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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:08:29
*** User 2024-04-18 11:08:29.918 ***🔗
alicE_subscribe_2649@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-18 11:08:29.918 ***🔗
alicE_subscribe_2649@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3a135a0ec7c7abff' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:08:29.918 ***🔗
alicE_subscribe_2649@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-18 11:08:29.918 ***🔗
alicE_subscribe_2649@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjQ5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-18 11:08:29.919 ***🔗
alicE_subscribe_2649@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:08:29.919 ***🔗
alicE_subscribe_2649@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-18 11:08:29.920 ***🔗
alicE_subscribe_2649@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='16f72687dc6fef5f' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2649@localhost'>
*** User 2024-04-18 11:08:29.920 ***🔗
alicE_subscribe_2649@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-18 11:08:29.920 ***🔗
alicE_subscribe_2649@localhost/res1 out
<iq type='set' id='12ac1098b63bd266bd4e899cfeffa165'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:08:29.920 ***🔗
alicE_subscribe_2649@localhost/res1 in
<iq id='12ac1098b63bd266bd4e899cfeffa165' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2649@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:08:29.920 ***🔗
alice_subscribe_2649@localhost/res1 out
<iq type='set' id='e2a40305f628ba886c62e44a2190b720'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:08:29.921 ***🔗
alice_subscribe_2649@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2649@localhost/res1' id='e2a40305f628ba886c62e44a2190b720' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:08:29.921 ***🔗
alice_subscribe_2649@localhost/res1 out
<presence/>
*** User 2024-04-18 11:08:29.922 ***🔗
alice_subscribe_2649@localhost/res1 in
<presence from='alice_subscribe_2649@localhost/res1' to='alice_subscribe_2649@localhost/res1'/>
*** User 2024-04-18 11:08:29.922 ***🔗
bOb_subscribe_2649@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-18 11:08:29.923 ***🔗
bOb_subscribe_2649@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='32212891dc0009f7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:08:29.923 ***🔗
bOb_subscribe_2649@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-18 11:08:29.923 ***🔗
bOb_subscribe_2649@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjY0OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-18 11:08:29.923 ***🔗
bOb_subscribe_2649@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:08:29.924 ***🔗
bOb_subscribe_2649@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-18 11:08:29.924 ***🔗
bOb_subscribe_2649@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05def2943eaa8dda' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2649@localhost'>
*** User 2024-04-18 11:08:29.924 ***🔗
bOb_subscribe_2649@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-18 11:08:29.924 ***🔗
bOb_subscribe_2649@localhost/res1 out
<iq type='set' id='ad9fd11f32cdb7cb5188bd747c9c7ab3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:08:29.924 ***🔗
bOb_subscribe_2649@localhost/res1 in
<iq id='ad9fd11f32cdb7cb5188bd747c9c7ab3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2649@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:08:29.924 ***🔗
bob_subscribe_2649@localhost/res1 out
<iq type='set' id='4885ea076818753d45030e027529cac4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:08:29.925 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2649@localhost/res1' id='4885ea076818753d45030e027529cac4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:08:29.925 ***🔗
bob_subscribe_2649@localhost/res1 out
<presence/>
*** User 2024-04-18 11:08:29.926 ***🔗
bob_subscribe_2649@localhost/res1 in
<presence from='bob_subscribe_2649@localhost/res1' to='bob_subscribe_2649@localhost/res1'/>
*** User 2024-04-18 11:08:29.926 ***🔗
alice_subscribe_2649@localhost/res1 out
<iq type='set' id='74d75d2aa17dbae8f08b0bc1cbb25f00'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2649@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.936 ***🔗
alice_subscribe_2649@localhost/res1 in
<iq from='alice_subscribe_2649@localhost' to='alice_subscribe_2649@localhost/res1' id='pushee21478b1ccd4123' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2649@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.936 ***🔗
alice_subscribe_2649@localhost/res1 in
<iq from='alice_subscribe_2649@localhost' to='alice_subscribe_2649@localhost/res1' id='74d75d2aa17dbae8f08b0bc1cbb25f00' type='result'/>
*** User 2024-04-18 11:08:29.936 ***🔗
alice_subscribe_2649@localhost/res1 out
<iq to='alice_subscribe_2649@localhost' id='pushee21478b1ccd4123' type='result'/>
*** User 2024-04-18 11:08:29.936 ***🔗
alice_subscribe_2649@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2649@localhost'/>
*** User 2024-04-18 11:08:29.942 ***🔗
alice_subscribe_2649@localhost/res1 in
<iq from='alice_subscribe_2649@localhost' to='alice_subscribe_2649@localhost/res1' id='push469066e3e73d2b02' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2649@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.942 ***🔗
alice_subscribe_2649@localhost/res1 out
<iq to='alice_subscribe_2649@localhost' id='push469066e3e73d2b02' type='result'/>
*** User 2024-04-18 11:08:29.942 ***🔗
bob_subscribe_2649@localhost/res1 in
<presence from='alice_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' type='subscribe'/>
*** User 2024-04-18 11:08:29.942 ***🔗
bob_subscribe_2649@localhost/res1 out
<iq type='get' id='eee31749a43eba4b4cad773886cd3a7e'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-18 11:08:29.950 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='bob_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' id='eee31749a43eba4b4cad773886cd3a7e' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-18 11:08:29.950 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2649@localhost">>},
{<<"to">>,<<"bob_subscribe_2649@localhost/res1">>},
{<<"id">>,<<"eee31749a43eba4b4cad773886cd3a7e">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-18 11:08:29.950 ***🔗
bob_subscribe_2649@localhost/res1 out
<iq type='set' id='64d3a8574f6a0aec563478b7f0b90ee3'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2649@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.960 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='bob_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' id='pushf1a66409b8d390bc' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2649@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.960 ***🔗
bob_subscribe_2649@localhost/res1 out
<iq to='bob_subscribe_2649@localhost' id='pushf1a66409b8d390bc' type='result'/>
*** User 2024-04-18 11:08:29.960 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='bob_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' id='64d3a8574f6a0aec563478b7f0b90ee3' type='result'/>
*** User 2024-04-18 11:08:29.960 ***🔗
bob_subscribe_2649@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2649@localhost'/>
*** User 2024-04-18 11:08:29.969 ***🔗
alice_subscribe_2649@localhost/res1 in
<iq from='alice_subscribe_2649@localhost' to='alice_subscribe_2649@localhost/res1' id='push3f5ed52fbd20c382' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2649@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.969 ***🔗
alice_subscribe_2649@localhost/res1 in
<presence from='bob_subscribe_2649@localhost' to='alice_subscribe_2649@localhost/res1' type='subscribed'/>
*** User 2024-04-18 11:08:29.969 ***🔗
alice_subscribe_2649@localhost/res1 in
<presence from='bob_subscribe_2649@localhost/res1' to='alice_subscribe_2649@localhost/res1'/>
*** User 2024-04-18 11:08:29.969 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='bob_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' id='push22cfdaafa34aa948' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2649@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.969 ***🔗
bob_subscribe_2649@localhost/res1 out
<iq type='get' id='f3de12c3b918dccb641ffd148c6cb418'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-18 11:08:29.974 ***🔗
bob_subscribe_2649@localhost/res1 in
<iq from='bob_subscribe_2649@localhost' to='bob_subscribe_2649@localhost/res1' id='f3de12c3b918dccb641ffd148c6cb418' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2649@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-18 11:08:29.974 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2649@localhost">>},
{<<"to">>,<<"bob_subscribe_2649@localhost/res1">>},
{<<"id">>,<<"f3de12c3b918dccb641ffd148c6cb418">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2649@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-18 11:08:29.974 ***🔗
bob_subscribe_2649@localhost/res1 out
<presence/>
*** User 2024-04-18 11:08:29.975 ***🔗
alice_subscribe_2649@localhost/res1 in
<presence from='bob_subscribe_2649@localhost/res1' to='alice_subscribe_2649@localhost/res1'/>
*** User 2024-04-18 11:08:29.975 ***🔗
bob_subscribe_2649@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-18 11:08:29.975 ***🔗
alice_subscribe_2649@localhost/res1 in
<presence from='bob_subscribe_2649@localhost/res1' to='alice_subscribe_2649@localhost/res1' type='unavailable'/>
*** User 2024-04-18 11:08:29.975 ***🔗
bob_subscribe_2649@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:08:29.976 ***🔗
bob_subscribe_2649@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:08:29.976 ***🔗
alice_subscribe_2649@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:08:29.976 ***🔗
alice_subscribe_2649@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-18 11:08:30
=== successfully completed test case
=== === Returned value: ok