=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.79723.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@0bedb54988af.2024-04-17_15.41.47/big_tests.tests.presence_SUITE.logs/run.2024-04-17_15.56.02/presence_suite.subscribe.144259.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@0bedb54988af.2024-04-17_15.41.47/big_tests.tests.presence_SUITE.logs/run.2024-04-17_15.56.02/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@0bedb54988af.2024-04-17_15.41.47"
=== Started at 2024-04-17 15:56:04
*** User 2024-04-17 15:56:04.851 ***🔗
alicE_subscribe_2997@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-17 15:56:04.852 ***🔗
alicE_subscribe_2997@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff958b05f61b7df7' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-17 15:56:04.852 ***🔗
alicE_subscribe_2997@localhost/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-17 15:56:04.852 ***🔗
alicE_subscribe_2997@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTk3AG1hdHlncnlzYQ==</auth>
*** User 2024-04-17 15:56:04.853 ***🔗
alicE_subscribe_2997@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-17 15:56:04.853 ***🔗
alicE_subscribe_2997@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-17 15:56:04.853 ***🔗
alicE_subscribe_2997@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d719860050104fd1' from='localhost' version='1.0' xml:lang='en' to='alice_subscribe_2997@localhost'>
*** User 2024-04-17 15:56:04.853 ***🔗
alicE_subscribe_2997@localhost/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-17 15:56:04.853 ***🔗
alicE_subscribe_2997@localhost/res1 out
<iq type='set' id='f3ed0aa429b2564e9e15b13d71f158e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-17 15:56:04.854 ***🔗
alicE_subscribe_2997@localhost/res1 in
<iq id='f3ed0aa429b2564e9e15b13d71f158e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2997@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-17 15:56:04.854 ***🔗
alice_subscribe_2997@localhost/res1 out
<iq type='set' id='ad4b766da3c579d9b3b0dfdb90322744'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-17 15:56:04.869 ***🔗
alice_subscribe_2997@localhost/res1 in
<iq from='localhost' to='alice_subscribe_2997@localhost/res1' id='ad4b766da3c579d9b3b0dfdb90322744' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-17 15:56:04.870 ***🔗
alice_subscribe_2997@localhost/res1 out
<presence/>
*** User 2024-04-17 15:56:04.871 ***🔗
alice_subscribe_2997@localhost/res1 in
<presence from='alice_subscribe_2997@localhost/res1' to='alice_subscribe_2997@localhost/res1'/>
*** User 2024-04-17 15:56:04.873 ***🔗
bOb_subscribe_2997@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-17 15:56:04.873 ***🔗
bOb_subscribe_2997@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7d0adc82a5bbb49' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-17 15:56:04.873 ***🔗
bOb_subscribe_2997@localhost/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-17 15:56:04.873 ***🔗
bOb_subscribe_2997@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjk5NwBtYWtyb2xpa2E=</auth>
*** User 2024-04-17 15:56:04.875 ***🔗
bOb_subscribe_2997@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-17 15:56:04.875 ***🔗
bOb_subscribe_2997@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-17 15:56:04.875 ***🔗
bOb_subscribe_2997@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b36176490d49fd2' from='localhost' version='1.0' xml:lang='en' to='bob_subscribe_2997@localhost'>
*** User 2024-04-17 15:56:04.875 ***🔗
bOb_subscribe_2997@localhost/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-17 15:56:04.876 ***🔗
bOb_subscribe_2997@localhost/res1 out
<iq type='set' id='bb8afeb4b17f795b98503b76286757bd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-17 15:56:04.876 ***🔗
bOb_subscribe_2997@localhost/res1 in
<iq id='bb8afeb4b17f795b98503b76286757bd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2997@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-17 15:56:04.876 ***🔗
bob_subscribe_2997@localhost/res1 out
<iq type='set' id='69aca2e1888538a37576daf5d0bd8760'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-17 15:56:04.877 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='localhost' to='bob_subscribe_2997@localhost/res1' id='69aca2e1888538a37576daf5d0bd8760' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-17 15:56:04.877 ***🔗
bob_subscribe_2997@localhost/res1 out
<presence/>
*** User 2024-04-17 15:56:04.880 ***🔗
bob_subscribe_2997@localhost/res1 in
<presence from='bob_subscribe_2997@localhost/res1' to='bob_subscribe_2997@localhost/res1'/>
*** User 2024-04-17 15:56:04.880 ***🔗
alice_subscribe_2997@localhost/res1 out
<iq type='set' id='f16dd21b0ba2e49ccc428ea3ff4d9a61'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2997@localhost' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.884 ***🔗
alice_subscribe_2997@localhost/res1 in
<iq from='alice_subscribe_2997@localhost' to='alice_subscribe_2997@localhost/res1' id='pushe06437c1fedae97f' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2997@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.884 ***🔗
alice_subscribe_2997@localhost/res1 in
<iq from='alice_subscribe_2997@localhost' to='alice_subscribe_2997@localhost/res1' id='f16dd21b0ba2e49ccc428ea3ff4d9a61' type='result'/>
*** User 2024-04-17 15:56:04.884 ***🔗
alice_subscribe_2997@localhost/res1 out
<iq to='alice_subscribe_2997@localhost' id='pushe06437c1fedae97f' type='result'/>
*** User 2024-04-17 15:56:04.884 ***🔗
alice_subscribe_2997@localhost/res1 out
<presence type='subscribe' to='bob_subscribe_2997@localhost'/>
*** User 2024-04-17 15:56:04.889 ***🔗
alice_subscribe_2997@localhost/res1 in
<iq from='alice_subscribe_2997@localhost' to='alice_subscribe_2997@localhost/res1' id='push2d6d6ca71e4ad2e3' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2997@localhost' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.889 ***🔗
alice_subscribe_2997@localhost/res1 out
<iq to='alice_subscribe_2997@localhost' id='push2d6d6ca71e4ad2e3' type='result'/>
*** User 2024-04-17 15:56:04.889 ***🔗
bob_subscribe_2997@localhost/res1 in
<presence from='alice_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' type='subscribe'/>
*** User 2024-04-17 15:56:04.889 ***🔗
bob_subscribe_2997@localhost/res1 out
<iq type='get' id='ceb325c2c565222d5c9495a021a1a0d8'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-17 15:56:04.893 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='bob_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' id='ceb325c2c565222d5c9495a021a1a0d8' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-17 15:56:04.893 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2997@localhost">>},
{<<"to">>,<<"bob_subscribe_2997@localhost/res1">>},
{<<"id">>,<<"ceb325c2c565222d5c9495a021a1a0d8">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-17 15:56:04.893 ***🔗
bob_subscribe_2997@localhost/res1 out
<iq type='set' id='b3cd9ccdadaa99eeccceaf8306797723'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2997@localhost' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.895 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='bob_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' id='pushf9d0096a25e03f39' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2997@localhost' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.896 ***🔗
bob_subscribe_2997@localhost/res1 out
<iq to='bob_subscribe_2997@localhost' id='pushf9d0096a25e03f39' type='result'/>
*** User 2024-04-17 15:56:04.896 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='bob_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' id='b3cd9ccdadaa99eeccceaf8306797723' type='result'/>
*** User 2024-04-17 15:56:04.896 ***🔗
bob_subscribe_2997@localhost/res1 out
<presence type='subscribed' to='alice_subscribe_2997@localhost'/>
*** User 2024-04-17 15:56:04.899 ***🔗
alice_subscribe_2997@localhost/res1 in
<iq from='alice_subscribe_2997@localhost' to='alice_subscribe_2997@localhost/res1' id='push196c959b1b82f267' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2997@localhost' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.900 ***🔗
alice_subscribe_2997@localhost/res1 in
<presence from='bob_subscribe_2997@localhost' to='alice_subscribe_2997@localhost/res1' type='subscribed'/>
*** User 2024-04-17 15:56:04.900 ***🔗
alice_subscribe_2997@localhost/res1 in
<presence from='bob_subscribe_2997@localhost/res1' to='alice_subscribe_2997@localhost/res1'/>
*** User 2024-04-17 15:56:04.900 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='bob_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' id='pushd2a3eb453c327581' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2997@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.900 ***🔗
bob_subscribe_2997@localhost/res1 out
<iq type='get' id='f8725c7aeef27fc2f746f5e215a1ceeb'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-17 15:56:04.901 ***🔗
bob_subscribe_2997@localhost/res1 in
<iq from='bob_subscribe_2997@localhost' to='bob_subscribe_2997@localhost/res1' id='f8725c7aeef27fc2f746f5e215a1ceeb' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2997@localhost' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-17 15:56:04.901 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2997@localhost">>},
{<<"to">>,<<"bob_subscribe_2997@localhost/res1">>},
{<<"id">>,<<"f8725c7aeef27fc2f746f5e215a1ceeb">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,<<"alice_subscribe_2997@localhost">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-17 15:56:04.901 ***🔗
bob_subscribe_2997@localhost/res1 out
<presence/>
*** User 2024-04-17 15:56:04.902 ***🔗
alice_subscribe_2997@localhost/res1 in
<presence from='bob_subscribe_2997@localhost/res1' to='alice_subscribe_2997@localhost/res1'/>
*** User 2024-04-17 15:56:04.902 ***🔗
bob_subscribe_2997@localhost/res1 out
<presence type='unavailable'/>
*** User 2024-04-17 15:56:04.902 ***🔗
alice_subscribe_2997@localhost/res1 in
<presence from='bob_subscribe_2997@localhost/res1' to='alice_subscribe_2997@localhost/res1' type='unavailable'/>
*** User 2024-04-17 15:56:04.902 ***🔗
bob_subscribe_2997@localhost/res1 out
</stream:stream>
*** User 2024-04-17 15:56:04.902 ***🔗
bob_subscribe_2997@localhost/res1 in
</stream:stream>
*** User 2024-04-17 15:56:04.903 ***🔗
alice_subscribe_2997@localhost/res1 out
</stream:stream>
*** User 2024-04-17 15:56:04.903 ***🔗
alice_subscribe_2997@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-17 15:56:04
=== successfully completed test case
=== === Returned value: ok