=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.72325.0>},
{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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.presence_SUITE.logs/run.2024-04-16_11.12.56/presence_suite.subscribe.118148.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@2fae5249a3b3.2024-04-16_10.56.49/big_tests.tests.presence_SUITE.logs/run.2024-04-16_11.12.56/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@2fae5249a3b3.2024-04-16_10.56.49"
=== Started at 2024-04-16 11:12:58
*** User 2024-04-16 11:12:58.656 ***🔗
alicE_subscribe_3278@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-04-16 11:12:58.656 ***🔗
alicE_subscribe_3278@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fc4f33096f1d5e3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:12:58.656 ***🔗
alicE_subscribe_3278@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-04-16 11:12:58.656 ***🔗
alicE_subscribe_3278@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8zMjc4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 11:12:58.657 ***🔗
alicE_subscribe_3278@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:12:58.657 ***🔗
alicE_subscribe_3278@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-04-16 11:12:58.657 ***🔗
alicE_subscribe_3278@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c076ec29d43ef4a1' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_3278@domain.example.com'>
*** User 2024-04-16 11:12:58.658 ***🔗
alicE_subscribe_3278@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-04-16 11:12:58.658 ***🔗
alicE_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='d6f8a79aae849aea8c2fdf21559c7336'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:12:58.658 ***🔗
alicE_subscribe_3278@domain.example.com/res1 in
<iq id='d6f8a79aae849aea8c2fdf21559c7336' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_3278@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:12:58.658 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='e5518e012ebe1d72e8c3ba35ffa39f1d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:12:58.658 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' id='e5518e012ebe1d72e8c3ba35ffa39f1d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:12:58.659 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 11:12:58.660 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<presence from='alice_subscribe_3278@domain.example.com/res1' to='alice_subscribe_3278@domain.example.com/res1'/>
*** User 2024-04-16 11:12:58.660 ***🔗
bOb_subscribe_3278@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-04-16 11:12:58.661 ***🔗
bOb_subscribe_3278@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='790f8a7a7de409c1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:12:58.661 ***🔗
bOb_subscribe_3278@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-04-16 11:12:58.661 ***🔗
bOb_subscribe_3278@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMzI3OABtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:12:58.662 ***🔗
bOb_subscribe_3278@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:12:58.662 ***🔗
bOb_subscribe_3278@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-04-16 11:12:58.662 ***🔗
bOb_subscribe_3278@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56dc7105faba9846' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_3278@domain.example.com'>
*** User 2024-04-16 11:12:58.662 ***🔗
bOb_subscribe_3278@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-04-16 11:12:58.662 ***🔗
bOb_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='66f72e8d05e4c1cb46d4b32a06150cd1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:12:58.663 ***🔗
bOb_subscribe_3278@domain.example.com/res1 in
<iq id='66f72e8d05e4c1cb46d4b32a06150cd1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_3278@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:12:58.663 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='6a1efaa8e138bcb0fc1a7e3a5ddb9e35'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:12:58.663 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='6a1efaa8e138bcb0fc1a7e3a5ddb9e35' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:12:58.663 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 11:12:58.664 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<presence from='bob_subscribe_3278@domain.example.com/res1' to='bob_subscribe_3278@domain.example.com/res1'/>
*** User 2024-04-16 11:12:58.664 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='c11e0e66a243b5ecc9af571eea55df0d'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_3278@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.668 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<iq from='alice_subscribe_3278@domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' id='push86aa620794ee9c1a' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_3278@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.668 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<iq from='alice_subscribe_3278@domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' id='c11e0e66a243b5ecc9af571eea55df0d' type='result'/>
*** User 2024-04-16 11:12:58.668 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<iq to='alice_subscribe_3278@domain.example.com' id='push86aa620794ee9c1a' type='result'/>
*** User 2024-04-16 11:12:58.668 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_3278@domain.example.com'/>
*** User 2024-04-16 11:12:58.672 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<iq from='alice_subscribe_3278@domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' id='push6c6e321c250d13c1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_3278@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.672 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
<iq to='alice_subscribe_3278@domain.example.com' id='push6c6e321c250d13c1' type='result'/>
*** User 2024-04-16 11:12:58.672 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<presence from='alice_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 11:12:58.672 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<iq type='get' id='addc741abced6d09199b2231f5cc8173'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 11:12:58.675 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='bob_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='addc741abced6d09199b2231f5cc8173' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 11:12:58.675 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_3278@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_3278@domain.example.com/res1">>},
{<<"id">>,<<"addc741abced6d09199b2231f5cc8173">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-16 11:12:58.675 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<iq type='set' id='30a298f3e197b8a3d6584074e7d023f9'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_3278@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.707 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='bob_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='push559572ec99e35cd5' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_3278@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.707 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<iq to='bob_subscribe_3278@domain.example.com' id='push559572ec99e35cd5' type='result'/>
*** User 2024-04-16 11:12:58.708 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='bob_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='30a298f3e197b8a3d6584074e7d023f9' type='result'/>
*** User 2024-04-16 11:12:58.708 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_3278@domain.example.com'/>
*** User 2024-04-16 11:12:58.711 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<iq from='alice_subscribe_3278@domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' id='push63b19b4afc23f01a' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_3278@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.711 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<presence from='bob_subscribe_3278@domain.example.com' to='alice_subscribe_3278@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 11:12:58.711 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<presence from='bob_subscribe_3278@domain.example.com/res1' to='alice_subscribe_3278@domain.example.com/res1'/>
*** User 2024-04-16 11:12:58.711 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='bob_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='push95786830fbc6efa1' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_3278@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.712 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<iq type='get' id='dcad7a8e50d2fc0a04db4e912e22f776'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-16 11:12:58.713 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
<iq from='bob_subscribe_3278@domain.example.com' to='bob_subscribe_3278@domain.example.com/res1' id='dcad7a8e50d2fc0a04db4e912e22f776' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_3278@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-16 11:12:58.713 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_3278@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_3278@domain.example.com/res1">>},
{<<"id">>,<<"dcad7a8e50d2fc0a04db4e912e22f776">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_3278@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-16 11:12:58.713 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 11:12:58.714 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<presence from='bob_subscribe_3278@domain.example.com/res1' to='alice_subscribe_3278@domain.example.com/res1'/>
*** User 2024-04-16 11:12:58.714 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-04-16 11:12:58.714 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
<presence from='bob_subscribe_3278@domain.example.com/res1' to='alice_subscribe_3278@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-16 11:12:58.714 ***🔗
bob_subscribe_3278@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 11:12:58.715 ***🔗
bob_subscribe_3278@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 11:12:58.715 ***🔗
alice_subscribe_3278@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 11:12:58.715 ***🔗
alice_subscribe_3278@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 11:12:58
=== successfully completed test case
=== === Returned value: ok