=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.7643.2>},
{preset,"pgsql_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@893c79bb0538.2024-03-20_18.07.18/big_tests.tests.presence_SUITE.logs/run.2024-03-20_18.21.09/presence_suite.subscribe.214786.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@893c79bb0538.2024-03-20_18.07.18/big_tests.tests.presence_SUITE.logs/run.2024-03-20_18.21.09/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@893c79bb0538.2024-03-20_18.07.18"
=== Started at 2024-03-20 18:21:11
*** User 2024-03-20 18:21:11.167 ***🔗
alicE_subscribe_2910@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-20 18:21:11.168 ***🔗
alicE_subscribe_2910@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95513a9b3681ae75' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-20 18:21:11.168 ***🔗
alicE_subscribe_2910@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-20 18:21:11.168 ***🔗
alicE_subscribe_2910@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTEwAG1hdHlncnlzYQ==</auth>
*** User 2024-03-20 18:21:11.169 ***🔗
alicE_subscribe_2910@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-20 18:21:11.170 ***🔗
alicE_subscribe_2910@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-20 18:21:11.170 ***🔗
alicE_subscribe_2910@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b37e7ee1a516de3' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2910@domain.example.com'>
*** User 2024-03-20 18:21:11.170 ***🔗
alicE_subscribe_2910@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-20 18:21:11.170 ***🔗
alicE_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='917649e4fa11ed90550d0857c685490e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-20 18:21:11.171 ***🔗
alicE_subscribe_2910@domain.example.com/res1 in
<iq id='917649e4fa11ed90550d0857c685490e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2910@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-20 18:21:11.171 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='b73c35a01ed4c1857e47c163b0956bfe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:21:11.172 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' id='b73c35a01ed4c1857e47c163b0956bfe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:21:11.172 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<presence/>
*** User 2024-03-20 18:21:11.173 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<presence from='alice_subscribe_2910@domain.example.com/res1' to='alice_subscribe_2910@domain.example.com/res1'/>
*** User 2024-03-20 18:21:11.174 ***🔗
bOb_subscribe_2910@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-20 18:21:11.174 ***🔗
bOb_subscribe_2910@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8aaf50185eaa1a50' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-20 18:21:11.174 ***🔗
bOb_subscribe_2910@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-20 18:21:11.174 ***🔗
bOb_subscribe_2910@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkxMABtYWtyb2xpa2E=</auth>
*** User 2024-03-20 18:21:11.175 ***🔗
bOb_subscribe_2910@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-20 18:21:11.175 ***🔗
bOb_subscribe_2910@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-20 18:21:11.176 ***🔗
bOb_subscribe_2910@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e5f8d562c86e9337' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2910@domain.example.com'>
*** User 2024-03-20 18:21:11.176 ***🔗
bOb_subscribe_2910@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-20 18:21:11.176 ***🔗
bOb_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='18c37bc735c2e325d624f9d69c5c8a45'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-20 18:21:11.176 ***🔗
bOb_subscribe_2910@domain.example.com/res1 in
<iq id='18c37bc735c2e325d624f9d69c5c8a45' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2910@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-20 18:21:11.176 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='7584ecbf4fda3f8cb2da06b2d7719a9f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:21:11.177 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='7584ecbf4fda3f8cb2da06b2d7719a9f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-20 18:21:11.177 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<presence/>
*** User 2024-03-20 18:21:11.178 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<presence from='bob_subscribe_2910@domain.example.com/res1' to='bob_subscribe_2910@domain.example.com/res1'/>
*** User 2024-03-20 18:21:11.178 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='693ee12988dc67305d40953e97d086d9'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2910@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.185 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<iq from='alice_subscribe_2910@domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' id='pushf101ee043dd6ba28' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2910@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.185 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<iq from='alice_subscribe_2910@domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' id='693ee12988dc67305d40953e97d086d9' type='result'/>
*** User 2024-03-20 18:21:11.185 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<iq to='alice_subscribe_2910@domain.example.com' id='pushf101ee043dd6ba28' type='result'/>
*** User 2024-03-20 18:21:11.185 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2910@domain.example.com'/>
*** User 2024-03-20 18:21:11.190 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<iq from='alice_subscribe_2910@domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' id='push1e75fff9e77dc417' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2910@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.190 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
<iq to='alice_subscribe_2910@domain.example.com' id='push1e75fff9e77dc417' type='result'/>
*** User 2024-03-20 18:21:11.190 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<presence from='alice_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-20 18:21:11.191 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<iq type='get' id='680e341bff739f75b7c2cad13f518695'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-20 18:21:11.195 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='bob_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='680e341bff739f75b7c2cad13f518695' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-20 18:21:11.195 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2910@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2910@domain.example.com/res1">>},
{<<"id">>,<<"680e341bff739f75b7c2cad13f518695">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-20 18:21:11.195 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<iq type='set' id='115aa935c9affec6d7d3522fce368f65'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2910@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.198 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='bob_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='push7d993e4efd19861d' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2910@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.198 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<iq to='bob_subscribe_2910@domain.example.com' id='push7d993e4efd19861d' type='result'/>
*** User 2024-03-20 18:21:11.198 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='bob_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='115aa935c9affec6d7d3522fce368f65' type='result'/>
*** User 2024-03-20 18:21:11.198 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2910@domain.example.com'/>
*** User 2024-03-20 18:21:11.234 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<iq from='alice_subscribe_2910@domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' id='push58ba190039ab0e95' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2910@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.234 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<presence from='bob_subscribe_2910@domain.example.com' to='alice_subscribe_2910@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-20 18:21:11.234 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<presence from='bob_subscribe_2910@domain.example.com/res1' to='alice_subscribe_2910@domain.example.com/res1'/>
*** User 2024-03-20 18:21:11.234 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='bob_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='push51dc78164d2eb4ae' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2910@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.234 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<iq type='get' id='e9718f73cae62902b949d0e7a64d2b2f'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-20 18:21:11.242 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
<iq from='bob_subscribe_2910@domain.example.com' to='bob_subscribe_2910@domain.example.com/res1' id='e9718f73cae62902b949d0e7a64d2b2f' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2910@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-20 18:21:11.242 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2910@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2910@domain.example.com/res1">>},
{<<"id">>,<<"e9718f73cae62902b949d0e7a64d2b2f">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2910@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-20 18:21:11.242 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<presence/>
*** User 2024-03-20 18:21:11.243 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<presence from='bob_subscribe_2910@domain.example.com/res1' to='alice_subscribe_2910@domain.example.com/res1'/>
*** User 2024-03-20 18:21:11.243 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-03-20 18:21:11.244 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
<presence from='bob_subscribe_2910@domain.example.com/res1' to='alice_subscribe_2910@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-20 18:21:11.244 ***🔗
bob_subscribe_2910@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-20 18:21:11.244 ***🔗
bob_subscribe_2910@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-20 18:21:11.244 ***🔗
alice_subscribe_2910@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-20 18:21:11.245 ***🔗
alice_subscribe_2910@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-20 18:21:11
=== successfully completed test case
=== === Returned value: ok