=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.16577.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/presence_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.presence_SUITE.logs/run.2022-06-22_09.27.19/presence_suite.subscribe.61955.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@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.presence_SUITE.logs/run.2022-06-22_09.27.19/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07"
=== Started at 2022-06-22 09:27:20
*** User 2022-06-22 09:27:20.693 ***🔗
alicE_subscribe_1371@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:27:20.693 ***🔗
alicE_subscribe_1371@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88c34e04490c109f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:20.693 ***🔗
alicE_subscribe_1371@localhost/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-06-22 09:27:20.693 ***🔗
alicE_subscribe_1371@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8xMzcxAG1hdHlncnlzYQ==</auth>
*** User 2022-06-22 09:27:20.694 ***🔗
alicE_subscribe_1371@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:27:20.694 ***🔗
alicE_subscribe_1371@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:27:20.694 ***🔗
alicE_subscribe_1371@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f69afb35aa4c7a7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:20.694 ***🔗
alicE_subscribe_1371@localhost/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-06-22 09:27:20.694 ***🔗
alicE_subscribe_1371@localhost/res1 out
<iq type='set' id='74f5cbe773e70c0246d95104c650fca7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:27:20.695 ***🔗
alicE_subscribe_1371@localhost/res1 in
<iq id='74f5cbe773e70c0246d95104c650fca7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_1371@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:27:20.695 ***🔗
alice_subscribe_1371@localhost/res1 out
<iq type='set' id='962c2cc1ffcc625bc41346a5c31a886b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:20.695 ***🔗
alice_subscribe_1371@localhost/res1 in
<iq type='result' id='962c2cc1ffcc625bc41346a5c31a886b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:20.695 ***🔗
alice_subscribe_1371@localhost/res1 out
<presence/>
*** User 2022-06-22 09:27:20.696 ***🔗
alice_subscribe_1371@localhost/res1 in
<presence from='alice_subscribe_1371@localhost/res1' to='alice_subscribe_1371@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:20.697 ***🔗
bOb_subscribe_1371@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:27:20.697 ***🔗
bOb_subscribe_1371@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='22bdd8e9d44e8595' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:20.697 ***🔗
bOb_subscribe_1371@localhost/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-06-22 09:27:20.698 ***🔗
bOb_subscribe_1371@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMTM3MQBtYWtyb2xpa2E=</auth>
*** User 2022-06-22 09:27:20.699 ***🔗
bOb_subscribe_1371@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:27:20.699 ***🔗
bOb_subscribe_1371@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-06-22 09:27:20.700 ***🔗
bOb_subscribe_1371@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17312845b530fc6d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:27:20.700 ***🔗
bOb_subscribe_1371@localhost/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-06-22 09:27:20.700 ***🔗
bOb_subscribe_1371@localhost/res1 out
<iq type='set' id='fcc389469fa879b38e91d861cca5690a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:27:20.700 ***🔗
bOb_subscribe_1371@localhost/res1 in
<iq id='fcc389469fa879b38e91d861cca5690a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_1371@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:27:20.700 ***🔗
bob_subscribe_1371@localhost/res1 out
<iq type='set' id='6345fb64801cd3a7758eaf5389f2d60d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:20.700 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq type='result' id='6345fb64801cd3a7758eaf5389f2d60d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:27:20.701 ***🔗
bob_subscribe_1371@localhost/res1 out
<presence/>
*** User 2022-06-22 09:27:20.701 ***🔗
bob_subscribe_1371@localhost/res1 in
<presence from='bob_subscribe_1371@localhost/res1' to='bob_subscribe_1371@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:20.701 ***🔗
alice_subscribe_1371@localhost/res1 out
<iq type='set' id='df6cb83e118036f3b0b6b98bec47fe39'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_1371@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.703 ***🔗
alice_subscribe_1371@localhost/res1 in
<iq from='alice_subscribe_1371@localhost' to='alice_subscribe_1371@localhost/res1' id='push8dcd27ac81898822' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Bobby' jid='bob_subscribe_1371@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.703 ***🔗
alice_subscribe_1371@localhost/res1 in
<iq from='alice_subscribe_1371@localhost' to='alice_subscribe_1371@localhost/res1' id='df6cb83e118036f3b0b6b98bec47fe39' type='result'/>
*** User 2022-06-22 09:27:20.703 ***🔗
alice_subscribe_1371@localhost/res1 out
<iq to='alice_subscribe_1371@localhost' id='push8dcd27ac81898822' type='result'/>
*** User 2022-06-22 09:27:20.703 ***🔗
alice_subscribe_1371@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_1371@localhost'/>
*** User 2022-06-22 09:27:20.704 ***🔗
alice_subscribe_1371@localhost/res1 in
<iq from='alice_subscribe_1371@localhost' to='alice_subscribe_1371@localhost/res1' id='pushb23800591d93cbbb' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' name='Bobby' jid='bob_subscribe_1371@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.704 ***🔗
alice_subscribe_1371@localhost/res1 out
<iq to='alice_subscribe_1371@localhost' id='pushb23800591d93cbbb' type='result'/>
*** User 2022-06-22 09:27:20.705 ***🔗
bob_subscribe_1371@localhost/res1 in
<presence from='alice_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' xml:lang='en' type='subscribe'/>
*** User 2022-06-22 09:27:20.705 ***🔗
bob_subscribe_1371@localhost/res1 out
<iq type='get' id='510c7821ec75d35751e36baf7d57dd2e'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 09:27:20.706 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq from='bob_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' id='510c7821ec75d35751e36baf7d57dd2e' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 09:27:20.707 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1371@localhost">>},
{<<"to">>,<<"bob_subscribe_1371@localhost/res1">>},
{<<"id">>,<<"510c7821ec75d35751e36baf7d57dd2e">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2022-06-22 09:27:20.707 ***🔗
bob_subscribe_1371@localhost/res1 out
<iq type='set' id='a3f7f1cd86790d1856e676bffaa9d037'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_1371@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.708 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq from='bob_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' id='push76b7ec07000cc97e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alice' jid='alice_subscribe_1371@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.708 ***🔗
bob_subscribe_1371@localhost/res1 out
<iq to='bob_subscribe_1371@localhost' id='push76b7ec07000cc97e' type='result'/>
*** User 2022-06-22 09:27:20.708 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq from='bob_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' id='a3f7f1cd86790d1856e676bffaa9d037' type='result'/>
*** User 2022-06-22 09:27:20.709 ***🔗
bob_subscribe_1371@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_1371@localhost'/>
*** User 2022-06-22 09:27:20.710 ***🔗
alice_subscribe_1371@localhost/res1 in
<iq from='alice_subscribe_1371@localhost' to='alice_subscribe_1371@localhost/res1' id='push9e5d8b192be344e1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' name='Bobby' jid='bob_subscribe_1371@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.710 ***🔗
alice_subscribe_1371@localhost/res1 in
<presence from='bob_subscribe_1371@localhost' to='alice_subscribe_1371@localhost/res1' xml:lang='en' type='subscribed'/>
*** User 2022-06-22 09:27:20.710 ***🔗
alice_subscribe_1371@localhost/res1 in
<presence from='bob_subscribe_1371@localhost/res1' to='alice_subscribe_1371@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:20.710 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq from='bob_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' id='push085802fe61fa6b9d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1371@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.710 ***🔗
bob_subscribe_1371@localhost/res1 out
<iq type='get' id='29d0edcb52f2162309e83b3f27592a3f'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2022-06-22 09:27:20.711 ***🔗
bob_subscribe_1371@localhost/res1 in
<iq from='bob_subscribe_1371@localhost' to='bob_subscribe_1371@localhost/res1' id='29d0edcb52f2162309e83b3f27592a3f' type='result'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' name='Alice' jid='alice_subscribe_1371@localhost'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2022-06-22 09:27:20.711 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_1371@localhost">>},
{<<"to">>,<<"bob_subscribe_1371@localhost/res1">>},
{<<"id">>,<<"29d0edcb52f2162309e83b3f27592a3f">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"from">>},
{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_1371@localhost">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2022-06-22 09:27:20.711 ***🔗
bob_subscribe_1371@localhost/res1 out
<presence/>
*** User 2022-06-22 09:27:20.712 ***🔗
alice_subscribe_1371@localhost/res1 in
<presence from='bob_subscribe_1371@localhost/res1' to='alice_subscribe_1371@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:27:20.712 ***🔗
bob_subscribe_1371@localhost/res1 out
<presence type='unavailable'/>
*** User 2022-06-22 09:27:20.712 ***🔗
alice_subscribe_1371@localhost/res1 in
<presence from='bob_subscribe_1371@localhost/res1' to='alice_subscribe_1371@localhost/res1' xml:lang='en' type='unavailable'/>
*** User 2022-06-22 09:27:20.713 ***🔗
bob_subscribe_1371@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:27:20.713 ***🔗
bob_subscribe_1371@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:27:20.713 ***🔗
alice_subscribe_1371@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:27:20.713 ***🔗
alice_subscribe_1371@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 09:27:20
=== successfully completed test case
=== === Returned value: ok