=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.68302.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.presence_SUITE.logs/run.2023-12-07_07.57.30/presence_suite.subscribe.162051.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.presence_SUITE.logs/run.2023-12-07_07.57.30/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@d3b7dd7159a8.2023-12-07_07.46.41"
=== Started at 2023-12-07 07:57:32
*** User 2023-12-07 07:57:32.130 ***🔗
alicE_subscribe_2499@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 2023-12-07 07:57:32.130 ***🔗
alicE_subscribe_2499@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5bd5c55bb1a45305' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:32.130 ***🔗
alicE_subscribe_2499@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 2023-12-07 07:57:32.130 ***🔗
alicE_subscribe_2499@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNDk5AG1hdHlncnlzYQ==</auth>
*** User 2023-12-07 07:57:32.131 ***🔗
alicE_subscribe_2499@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:57:32.131 ***🔗
alicE_subscribe_2499@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 2023-12-07 07:57:32.131 ***🔗
alicE_subscribe_2499@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c3fb088c5aee99b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2499@domain.example.com'>
*** User 2023-12-07 07:57:32.132 ***🔗
alicE_subscribe_2499@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 2023-12-07 07:57:32.132 ***🔗
alicE_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='739972f5997bcb2244abeecc1a3728d5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:57:32.132 ***🔗
alicE_subscribe_2499@domain.example.com/res1 in
<iq id='739972f5997bcb2244abeecc1a3728d5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2499@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:57:32.132 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='d83dfab1533c06da4d0d3c9aee502f2b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:32.133 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' id='d83dfab1533c06da4d0d3c9aee502f2b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:32.133 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:32.135 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<presence from='alice_subscribe_2499@domain.example.com/res1' to='alice_subscribe_2499@domain.example.com/res1'/>
*** User 2023-12-07 07:57:32.135 ***🔗
bOb_subscribe_2499@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 2023-12-07 07:57:32.136 ***🔗
bOb_subscribe_2499@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8789b771fbe05ad4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-07 07:57:32.136 ***🔗
bOb_subscribe_2499@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 2023-12-07 07:57:32.136 ***🔗
bOb_subscribe_2499@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjQ5OQBtYWtyb2xpa2E=</auth>
*** User 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@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 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1dc63246e68bd1a3' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2499@domain.example.com'>
*** User 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@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 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='62c614f11dde5cd57da19b2d25b2e930'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-07 07:57:32.137 ***🔗
bOb_subscribe_2499@domain.example.com/res1 in
<iq id='62c614f11dde5cd57da19b2d25b2e930' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2499@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-07 07:57:32.137 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='1a67ab88a3dc45cb2cd25e938776870c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:32.138 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='1a67ab88a3dc45cb2cd25e938776870c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-07 07:57:32.139 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:32.141 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<presence from='bob_subscribe_2499@domain.example.com/res1' to='bob_subscribe_2499@domain.example.com/res1'/>
*** User 2023-12-07 07:57:32.141 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='bf4c0931870431bae73bd85f1b7628e2'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2499@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.149 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<iq from='alice_subscribe_2499@domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' id='push9775e7e50de9c52d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_2499@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.149 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<iq from='alice_subscribe_2499@domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' id='bf4c0931870431bae73bd85f1b7628e2' type='result'/>
*** User 2023-12-07 07:57:32.149 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<iq to='alice_subscribe_2499@domain.example.com' id='push9775e7e50de9c52d' type='result'/>
*** User 2023-12-07 07:57:32.149 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2499@domain.example.com'/>
*** User 2023-12-07 07:57:32.154 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<iq from='alice_subscribe_2499@domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' id='pushd1f62d5f08454e90' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2499@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.155 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
<iq to='alice_subscribe_2499@domain.example.com' id='pushd1f62d5f08454e90' type='result'/>
*** User 2023-12-07 07:57:32.155 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<presence from='alice_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' type='subscribe'/>
*** User 2023-12-07 07:57:32.155 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<iq type='get' id='e97af8914106adbc2c1c120d6e6ad28d'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-12-07 07:57:32.161 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='bob_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='e97af8914106adbc2c1c120d6e6ad28d' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-12-07 07:57:32.161 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2499@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2499@domain.example.com/res1">>},
{<<"id">>,<<"e97af8914106adbc2c1c120d6e6ad28d">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2023-12-07 07:57:32.161 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<iq type='set' id='4267f3aa14a50fd36f2fc94854cdb90e'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2499@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.165 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='bob_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='pushd28a175e092b729e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_2499@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.166 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<iq to='bob_subscribe_2499@domain.example.com' id='pushd28a175e092b729e' type='result'/>
*** User 2023-12-07 07:57:32.166 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='bob_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='4267f3aa14a50fd36f2fc94854cdb90e' type='result'/>
*** User 2023-12-07 07:57:32.166 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2499@domain.example.com'/>
*** User 2023-12-07 07:57:32.171 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<iq from='alice_subscribe_2499@domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' id='push277c8a424887f916' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_2499@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.171 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<presence from='bob_subscribe_2499@domain.example.com' to='alice_subscribe_2499@domain.example.com/res1' type='subscribed'/>
*** User 2023-12-07 07:57:32.171 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<presence from='bob_subscribe_2499@domain.example.com/res1' to='alice_subscribe_2499@domain.example.com/res1'/>
*** User 2023-12-07 07:57:32.171 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='bob_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='push42f924c0c18ff2e4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2499@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.171 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<iq type='get' id='329ba0dcf475af67778bee311dfc779f'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-12-07 07:57:32.178 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
<iq from='bob_subscribe_2499@domain.example.com' to='bob_subscribe_2499@domain.example.com/res1' id='329ba0dcf475af67778bee311dfc779f' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2499@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-12-07 07:57:32.178 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2499@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2499@domain.example.com/res1">>},
{<<"id">>,<<"329ba0dcf475af67778bee311dfc779f">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2499@domain.example.com">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2023-12-07 07:57:32.178 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<presence/>
*** User 2023-12-07 07:57:32.181 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<presence from='bob_subscribe_2499@domain.example.com/res1' to='alice_subscribe_2499@domain.example.com/res1'/>
*** User 2023-12-07 07:57:32.181 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2023-12-07 07:57:32.182 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
<presence from='bob_subscribe_2499@domain.example.com/res1' to='alice_subscribe_2499@domain.example.com/res1' type='unavailable'/>
*** User 2023-12-07 07:57:32.182 ***🔗
bob_subscribe_2499@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:57:32.225 ***🔗
bob_subscribe_2499@domain.example.com/res1 in
</stream:stream>
*** User 2023-12-07 07:57:32.225 ***🔗
alice_subscribe_2499@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-07 07:57:32.225 ***🔗
alice_subscribe_2499@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-12-07 07:57:32
=== successfully completed test case
=== === Returned value: ok