=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.72498.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.presence_SUITE.logs/run.2024-04-15_16.05.04/presence_suite.subscribe.147459.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.presence_SUITE.logs/run.2024-04-15_16.05.04/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@82e417e9e7f3.2024-04-15_15.52.32"
=== Started at 2024-04-15 16:05:06
*** User 2024-04-15 16:05:06.832 ***🔗
alicE_subscribe_2869@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 2024-04-15 16:05:06.833 ***🔗
alicE_subscribe_2869@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4791bec3422cc79' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:05:06.833 ***🔗
alicE_subscribe_2869@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 2024-04-15 16:05:06.833 ***🔗
alicE_subscribe_2869@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yODY5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-15 16:05:06.834 ***🔗
alicE_subscribe_2869@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:05:06.834 ***🔗
alicE_subscribe_2869@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 2024-04-15 16:05:06.834 ***🔗
alicE_subscribe_2869@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44e667de30edd710' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2869@domain.example.com'>
*** User 2024-04-15 16:05:06.834 ***🔗
alicE_subscribe_2869@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 2024-04-15 16:05:06.834 ***🔗
alicE_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='829eb1bd3b22c173c02713978e8c71fd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:05:06.835 ***🔗
alicE_subscribe_2869@domain.example.com/res1 in
<iq id='829eb1bd3b22c173c02713978e8c71fd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2869@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:05:06.835 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='1c5ff6fe2ee71d1f3f81ba73048729a9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:05:06.835 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' id='1c5ff6fe2ee71d1f3f81ba73048729a9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:05:06.836 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<presence/>
*** User 2024-04-15 16:05:06.837 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<presence from='alice_subscribe_2869@domain.example.com/res1' to='alice_subscribe_2869@domain.example.com/res1'/>
*** User 2024-04-15 16:05:06.837 ***🔗
bOb_subscribe_2869@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 2024-04-15 16:05:06.838 ***🔗
bOb_subscribe_2869@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1bc9c71bb02dc076' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:05:06.838 ***🔗
bOb_subscribe_2869@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 2024-04-15 16:05:06.838 ***🔗
bOb_subscribe_2869@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjg2OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-15 16:05:06.839 ***🔗
bOb_subscribe_2869@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:05:06.839 ***🔗
bOb_subscribe_2869@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 2024-04-15 16:05:06.839 ***🔗
bOb_subscribe_2869@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c4c0a1f005ed889' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2869@domain.example.com'>
*** User 2024-04-15 16:05:06.839 ***🔗
bOb_subscribe_2869@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 2024-04-15 16:05:06.840 ***🔗
bOb_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='995c0b934129725083817499f1dcaec2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:05:06.840 ***🔗
bOb_subscribe_2869@domain.example.com/res1 in
<iq id='995c0b934129725083817499f1dcaec2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2869@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:05:06.840 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='99b9a0c6c39db84654ad066014885f63'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:05:06.840 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='99b9a0c6c39db84654ad066014885f63' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:05:06.841 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<presence/>
*** User 2024-04-15 16:05:06.842 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<presence from='bob_subscribe_2869@domain.example.com/res1' to='bob_subscribe_2869@domain.example.com/res1'/>
*** User 2024-04-15 16:05:06.842 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='10d66146659312cb4b59074094adc308'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2869@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.848 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<iq from='alice_subscribe_2869@domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' id='push2cf4687a0807daa2' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2869@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.848 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<iq from='alice_subscribe_2869@domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' id='10d66146659312cb4b59074094adc308' type='result'/>
*** User 2024-04-15 16:05:06.848 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<iq to='alice_subscribe_2869@domain.example.com' id='push2cf4687a0807daa2' type='result'/>
*** User 2024-04-15 16:05:06.848 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2869@domain.example.com'/>
*** User 2024-04-15 16:05:06.873 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<iq from='alice_subscribe_2869@domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' id='push3d32cb305ae5cbf9' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2869@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.873 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
<iq to='alice_subscribe_2869@domain.example.com' id='push3d32cb305ae5cbf9' type='result'/>
*** User 2024-04-15 16:05:06.873 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<presence from='alice_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-15 16:05:06.873 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<iq type='get' id='47f37410437a897bef917d8955bae002'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-15 16:05:06.880 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='bob_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='47f37410437a897bef917d8955bae002' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-15 16:05:06.880 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2869@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2869@domain.example.com/res1">>},
{<<"id">>,<<"47f37410437a897bef917d8955bae002">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-04-15 16:05:06.880 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<iq type='set' id='9b18ab670dc62e4b61d004ddb2ff7018'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2869@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.883 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='bob_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='pushb6a1f154cb4a3fdd' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2869@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.883 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<iq to='bob_subscribe_2869@domain.example.com' id='pushb6a1f154cb4a3fdd' type='result'/>
*** User 2024-04-15 16:05:06.883 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='bob_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='9b18ab670dc62e4b61d004ddb2ff7018' type='result'/>
*** User 2024-04-15 16:05:06.884 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2869@domain.example.com'/>
*** User 2024-04-15 16:05:06.888 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<iq from='alice_subscribe_2869@domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' id='push92de60cc7d13ef6f' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2869@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.888 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<presence from='bob_subscribe_2869@domain.example.com' to='alice_subscribe_2869@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-15 16:05:06.888 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<presence from='bob_subscribe_2869@domain.example.com/res1' to='alice_subscribe_2869@domain.example.com/res1'/>
*** User 2024-04-15 16:05:06.888 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='bob_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='push16c98db19c942692' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2869@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.888 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<iq type='get' id='d29feaa4ae9446b617974c059f98b955'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-04-15 16:05:06.889 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
<iq from='bob_subscribe_2869@domain.example.com' to='bob_subscribe_2869@domain.example.com/res1' id='d29feaa4ae9446b617974c059f98b955' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2869@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-04-15 16:05:06.890 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2869@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2869@domain.example.com/res1">>},
{<<"id">>,<<"d29feaa4ae9446b617974c059f98b955">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2869@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-04-15 16:05:06.890 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<presence/>
*** User 2024-04-15 16:05:06.891 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<presence from='bob_subscribe_2869@domain.example.com/res1' to='alice_subscribe_2869@domain.example.com/res1'/>
*** User 2024-04-15 16:05:06.891 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-04-15 16:05:06.892 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
<presence from='bob_subscribe_2869@domain.example.com/res1' to='alice_subscribe_2869@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-15 16:05:06.892 ***🔗
bob_subscribe_2869@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-15 16:05:06.892 ***🔗
bob_subscribe_2869@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-15 16:05:06.892 ***🔗
alice_subscribe_2869@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-15 16:05:06.892 ***🔗
alice_subscribe_2869@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:05:06
=== successfully completed test case
=== === Returned value: ok