=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.68359.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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.22.45/presence_suite.subscribe.88580.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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.presence_SUITE.logs/run.2023-11-17_15.22.45/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@9f12fc69b406.2023-11-17_15.10.18"
=== Started at 2023-11-17 15:22:47
*** User 2023-11-17 15:22:47.400 ***🔗
alicE_subscribe_2608@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-11-17 15:22:47.401 ***🔗
alicE_subscribe_2608@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8b1e9529c881e1e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:47.401 ***🔗
alicE_subscribe_2608@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-11-17 15:22:47.401 ***🔗
alicE_subscribe_2608@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yNjA4AG1hdHlncnlzYQ==</auth>
*** User 2023-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@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-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b8d6d9defebde8dd' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2608@domain.example.com'>
*** User 2023-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@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-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='dc1b614b263958d6d9183a022f269876'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:47.402 ***🔗
alicE_subscribe_2608@domain.example.com/res1 in
<iq id='dc1b614b263958d6d9183a022f269876' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2608@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:47.403 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='19e8bfb202147b181a1ef27703fcdccf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:47.403 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' id='19e8bfb202147b181a1ef27703fcdccf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:47.403 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:47.404 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<presence from='alice_subscribe_2608@domain.example.com/res1' to='alice_subscribe_2608@domain.example.com/res1'/>
*** User 2023-11-17 15:22:47.404 ***🔗
bOb_subscribe_2608@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-11-17 15:22:47.405 ***🔗
bOb_subscribe_2608@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0dd23e04440604d5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:47.405 ***🔗
bOb_subscribe_2608@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-11-17 15:22:47.405 ***🔗
bOb_subscribe_2608@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjYwOABtYWtyb2xpa2E=</auth>
*** User 2023-11-17 15:22:47.405 ***🔗
bOb_subscribe_2608@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:47.405 ***🔗
bOb_subscribe_2608@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-11-17 15:22:47.406 ***🔗
bOb_subscribe_2608@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cce6b432e526413f' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2608@domain.example.com'>
*** User 2023-11-17 15:22:47.406 ***🔗
bOb_subscribe_2608@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-11-17 15:22:47.406 ***🔗
bOb_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='f672282e61b4267d1ad9a95e5418f303'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:47.406 ***🔗
bOb_subscribe_2608@domain.example.com/res1 in
<iq id='f672282e61b4267d1ad9a95e5418f303' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2608@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:47.406 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='4a6cefa77ea5cf33b40a4b09fb6c57fd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:47.406 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='4a6cefa77ea5cf33b40a4b09fb6c57fd' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:47.406 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:47.407 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<presence from='bob_subscribe_2608@domain.example.com/res1' to='bob_subscribe_2608@domain.example.com/res1'/>
*** User 2023-11-17 15:22:47.407 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='b419bf03a937562b2f87b9654fff8cd1'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2608@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.410 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<iq from='alice_subscribe_2608@domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' id='push6483e932cd323256' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_2608@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.410 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<iq from='alice_subscribe_2608@domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' id='b419bf03a937562b2f87b9654fff8cd1' type='result'/>
*** User 2023-11-17 15:22:47.410 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<iq to='alice_subscribe_2608@domain.example.com' id='push6483e932cd323256' type='result'/>
*** User 2023-11-17 15:22:47.410 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2608@domain.example.com'/>
*** User 2023-11-17 15:22:47.414 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<iq from='alice_subscribe_2608@domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' id='pushc79224689b5faea7' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_2608@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.415 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
<iq to='alice_subscribe_2608@domain.example.com' id='pushc79224689b5faea7' type='result'/>
*** User 2023-11-17 15:22:47.415 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<presence from='alice_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-17 15:22:47.415 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<iq type='get' id='2fe552bd75c9358d7a5f04a15c16ec20'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-11-17 15:22:47.422 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='bob_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='2fe552bd75c9358d7a5f04a15c16ec20' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-11-17 15:22:47.422 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2608@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2608@domain.example.com/res1">>},
{<<"id">>,<<"2fe552bd75c9358d7a5f04a15c16ec20">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2023-11-17 15:22:47.422 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<iq type='set' id='bd93216dbc00e43202eb588e1dd1f0b1'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2608@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.440 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='bob_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='push204d38ded263d8ef' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_2608@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.440 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<iq to='bob_subscribe_2608@domain.example.com' id='push204d38ded263d8ef' type='result'/>
*** User 2023-11-17 15:22:47.440 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='bob_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='bd93216dbc00e43202eb588e1dd1f0b1' type='result'/>
*** User 2023-11-17 15:22:47.440 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2608@domain.example.com'/>
*** User 2023-11-17 15:22:47.445 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<iq from='alice_subscribe_2608@domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' id='push32947a53915258f8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_2608@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.445 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<presence from='bob_subscribe_2608@domain.example.com' to='alice_subscribe_2608@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-17 15:22:47.446 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<presence from='bob_subscribe_2608@domain.example.com/res1' to='alice_subscribe_2608@domain.example.com/res1'/>
*** User 2023-11-17 15:22:47.446 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='bob_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='push95eee24c7f0ff868' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2608@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.446 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<iq type='get' id='4743e1ba42535af37e52b9e8d4761f7b'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2023-11-17 15:22:47.447 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
<iq from='bob_subscribe_2608@domain.example.com' to='bob_subscribe_2608@domain.example.com/res1' id='4743e1ba42535af37e52b9e8d4761f7b' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_2608@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2023-11-17 15:22:47.447 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2608@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2608@domain.example.com/res1">>},
{<<"id">>,<<"4743e1ba42535af37e52b9e8d4761f7b">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2608@domain.example.com">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2023-11-17 15:22:47.447 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:47.448 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<presence from='bob_subscribe_2608@domain.example.com/res1' to='alice_subscribe_2608@domain.example.com/res1'/>
*** User 2023-11-17 15:22:47.448 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2023-11-17 15:22:47.449 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
<presence from='bob_subscribe_2608@domain.example.com/res1' to='alice_subscribe_2608@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-17 15:22:47.449 ***🔗
bob_subscribe_2608@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:47.449 ***🔗
bob_subscribe_2608@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:22:47.449 ***🔗
alice_subscribe_2608@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:47.449 ***🔗
alice_subscribe_2608@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:22:47
=== successfully completed test case
=== === Returned value: ok