=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.23402.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.presence_SUITE.logs/run.2022-02-02_15.14.43/presence_suite.subscribe.100867.html"},
{tc_group_properties,[{name,subscribe_group},
{repeat_until_all_ok,3},
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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.presence_SUITE.logs/run.2022-02-02_15.14.43/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@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:14:45
*** User 2022-02-02 15:14:45.659 ***
alicE_subscribe_1562@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 2022-02-02 15:14:45.660 ***
alicE_subscribe_1562@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bc525d3d55f3728' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:45.660 ***
alicE_subscribe_1562@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:14:45.660 ***
alicE_subscribe_1562@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xNTYyAG1hdHlncnlzYQ==</auth>
*** User 2022-02-02 15:14:45.661 ***
alicE_subscribe_1562@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:45.661 ***
alicE_subscribe_1562@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 2022-02-02 15:14:45.661 ***
alicE_subscribe_1562@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6333c981a18e8a17' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:45.661 ***
alicE_subscribe_1562@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:14:45.662 ***
alicE_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='f847cb580631bdd04ea06b82d668d601'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:45.662 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq id='f847cb580631bdd04ea06b82d668d601' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_subscribe_1562@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:45.662 ***
alicE_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='d0b447c0a67db210bcef4c841c3d458f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:45.663 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq type='result' id='d0b447c0a67db210bcef4c841c3d458f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:45.663 ***
alicE_subscribe_1562@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:45.664 ***
alicE_subscribe_1562@domain.example.com/res1 in
<presence from='alicE_subscribe_1562@domain.example.com/res1' to='alice_subscribe_1562@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:45.665 ***
bOb_subscribe_1562@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 2022-02-02 15:14:45.665 ***
bOb_subscribe_1562@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ff2630b7d954e52' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:45.665 ***
bOb_subscribe_1562@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:14:45.666 ***
bOb_subscribe_1562@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTU2MgBtYWtyb2xpa2E=</auth>
*** User 2022-02-02 15:14:45.666 ***
bOb_subscribe_1562@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:45.666 ***
bOb_subscribe_1562@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 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b936215a2b3f02fb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='d223109397c82c532fe6c298cdc7b6e2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq id='d223109397c82c532fe6c298cdc7b6e2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_subscribe_1562@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='c67ca56a44e2d9d667ec413956e098ee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:45.667 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq type='result' id='c67ca56a44e2d9d667ec413956e098ee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:45.668 ***
bOb_subscribe_1562@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:45.669 ***
bOb_subscribe_1562@domain.example.com/res1 in
<presence from='bOb_subscribe_1562@domain.example.com/res1' to='bob_subscribe_1562@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:45.669 ***
alicE_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='69f71a87c3344f4a41f9780278a5a71b'>
<query xmlns='jabber:iq:roster'>
<item jid='bOb_subscribe_1562@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.673 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq from='alicE_subscribe_1562@domain.example.com' to='alicE_subscribe_1562@domain.example.com/res1' id='push8e2ef76eea2daeab' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1562@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.673 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq from='alicE_subscribe_1562@domain.example.com' to='alicE_subscribe_1562@domain.example.com/res1' id='69f71a87c3344f4a41f9780278a5a71b' type='result'/>
*** User 2022-02-02 15:14:45.673 ***
alicE_subscribe_1562@domain.example.com/res1 out
<iq to='alicE_subscribe_1562@domain.example.com' id='push8e2ef76eea2daeab' type='result'/>
*** User 2022-02-02 15:14:45.674 ***
alicE_subscribe_1562@domain.example.com/res1 out
<presence type='subscribe' to='bOb_subscribe_1562@domain.example.com'/>
*** User 2022-02-02 15:14:45.677 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq from='alicE_subscribe_1562@domain.example.com' to='alicE_subscribe_1562@domain.example.com/res1' id='push1107d078f14a2069' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1562@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.677 ***
alicE_subscribe_1562@domain.example.com/res1 out
<iq to='alicE_subscribe_1562@domain.example.com' id='push1107d078f14a2069' type='result'/>
*** User 2022-02-02 15:14:45.677 ***
bOb_subscribe_1562@domain.example.com/res1 in
<presence from='alicE_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' xml:lang='en' type='subscribe'/>
*** User 2022-02-02 15:14:45.678 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq type='get' id='d8e76b1fe8405dcdeb32411a3d4213a0'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-02-02 15:14:45.683 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq from='bOb_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' id='d8e76b1fe8405dcdeb32411a3d4213a0' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-02-02 15:14:45.683 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1562@domain.example.com">>},
{<<"to">>,<<"bOb_subscribe_1562@domain.example.com/res1">>},
{<<"id">>,<<"d8e76b1fe8405dcdeb32411a3d4213a0">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-02-02 15:14:45.683 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq type='set' id='c5a5bccff0e37af302919e68dcc72f19'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_subscribe_1562@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.688 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq from='bOb_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' id='push7ff8152a2b9dcbea' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1562@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.689 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq to='bOb_subscribe_1562@domain.example.com' id='push7ff8152a2b9dcbea' type='result'/>
*** User 2022-02-02 15:14:45.689 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq from='bOb_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' id='c5a5bccff0e37af302919e68dcc72f19' type='result'/>
*** User 2022-02-02 15:14:45.689 ***
bOb_subscribe_1562@domain.example.com/res1 out
<presence type='subscribed' to='alicE_subscribe_1562@domain.example.com'/>
*** User 2022-02-02 15:14:45.693 ***
alicE_subscribe_1562@domain.example.com/res1 in
<iq from='alicE_subscribe_1562@domain.example.com' to='alicE_subscribe_1562@domain.example.com/res1' id='pushb8b0566a5c46755d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1562@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.693 ***
alicE_subscribe_1562@domain.example.com/res1 in
<presence from='bOb_subscribe_1562@domain.example.com' to='alicE_subscribe_1562@domain.example.com/res1' xml:lang='en' type='subscribed'/>
*** User 2022-02-02 15:14:45.693 ***
alicE_subscribe_1562@domain.example.com/res1 in
<presence from='bOb_subscribe_1562@domain.example.com/res1' to='alice_subscribe_1562@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:45.693 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq from='bOb_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' id='push9b54805024bf21f9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1562@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.693 ***
bOb_subscribe_1562@domain.example.com/res1 out
<iq type='get' id='b2bcccc5fbd6dbac0c9d8b242496890f'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-02-02 15:14:45.697 ***
bOb_subscribe_1562@domain.example.com/res1 in
<iq from='bOb_subscribe_1562@domain.example.com' to='bOb_subscribe_1562@domain.example.com/res1' id='b2bcccc5fbd6dbac0c9d8b242496890f' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1562@domain.example.com'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:45.698 ***
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bOb_subscribe_1562@domain.example.com">>},
{<<"to">>,<<"bOb_subscribe_1562@domain.example.com/res1">>},
{<<"id">>,<<"b2bcccc5fbd6dbac0c9d8b242496890f">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_1562@domain.example.com">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-02-02 15:14:45.698 ***
bOb_subscribe_1562@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:45.699 ***
alicE_subscribe_1562@domain.example.com/res1 in
<presence from='bOb_subscribe_1562@domain.example.com/res1' to='alice_subscribe_1562@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:45.699 ***
bOb_subscribe_1562@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2022-02-02 15:14:45.700 ***
alicE_subscribe_1562@domain.example.com/res1 in
<presence from='bOb_subscribe_1562@domain.example.com/res1' to='alice_subscribe_1562@domain.example.com/res1' xml:lang='en' type='unavailable'/>
*** User 2022-02-02 15:14:45.700 ***
bOb_subscribe_1562@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:45.700 ***
bOb_subscribe_1562@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:14:45.700 ***
alicE_subscribe_1562@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:45.700 ***
alicE_subscribe_1562@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:14:45
=== successfully completed test case
=== === Returned value: ok