=== Test case: presence_SUITE:subscribe/1 (click for source code)
=== Config value:
[{watchdog,<0.72366.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.presence_SUITE.logs/run.2024-03-18_09.38.18/presence_suite.subscribe.153859.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@a950b60ae868.2024-03-18_09.25.02/big_tests.tests.presence_SUITE.logs/run.2024-03-18_09.38.18/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@a950b60ae868.2024-03-18_09.25.02"
=== Started at 2024-03-18 09:38:20
*** User 2024-03-18 09:38:20.155 ***🔗
alicE_subscribe_2904@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-03-18 09:38:20.156 ***🔗
alicE_subscribe_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='604dae3eac4698ce' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:20.156 ***🔗
alicE_subscribe_2904@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-03-18 09:38:20.156 ***🔗
alicE_subscribe_2904@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3N1YnNjcmliZV8yOTA0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-18 09:38:20.157 ***🔗
alicE_subscribe_2904@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:20.157 ***🔗
alicE_subscribe_2904@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-03-18 09:38:20.157 ***🔗
alicE_subscribe_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66b221b3e6d10de7' from='domain.example.com' version='1.0' xml:lang='en' to='alice_subscribe_2904@domain.example.com'>
*** User 2024-03-18 09:38:20.157 ***🔗
alicE_subscribe_2904@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-03-18 09:38:20.157 ***🔗
alicE_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='26fc18b2f85875a84281afa5d001d63d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:20.158 ***🔗
alicE_subscribe_2904@domain.example.com/res1 in
<iq id='26fc18b2f85875a84281afa5d001d63d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_subscribe_2904@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:20.158 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='7a80c53bd7a8ba9a91a3eb0cb2be5bbf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:20.158 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' id='7a80c53bd7a8ba9a91a3eb0cb2be5bbf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:20.158 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:20.159 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<presence from='alice_subscribe_2904@domain.example.com/res1' to='alice_subscribe_2904@domain.example.com/res1'/>
*** User 2024-03-18 09:38:20.160 ***🔗
bOb_subscribe_2904@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-03-18 09:38:20.160 ***🔗
bOb_subscribe_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96bcb5156e5e1909' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-18 09:38:20.161 ***🔗
bOb_subscribe_2904@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-03-18 09:38:20.161 ***🔗
bOb_subscribe_2904@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zdWJzY3JpYmVfMjkwNABtYWtyb2xpa2E=</auth>
*** User 2024-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@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-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ecd13065a516ec47' from='domain.example.com' version='1.0' xml:lang='en' to='bob_subscribe_2904@domain.example.com'>
*** User 2024-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@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-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='bcaa8153aa57b9f7dd2870f4e48e1bca'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-18 09:38:20.162 ***🔗
bOb_subscribe_2904@domain.example.com/res1 in
<iq id='bcaa8153aa57b9f7dd2870f4e48e1bca' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_subscribe_2904@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-18 09:38:20.162 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='a188cd46c40aa202cbb9293341b73841'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:20.163 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='a188cd46c40aa202cbb9293341b73841' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-18 09:38:20.163 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:20.164 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<presence from='bob_subscribe_2904@domain.example.com/res1' to='bob_subscribe_2904@domain.example.com/res1'/>
*** User 2024-03-18 09:38:20.164 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='ac04a88dbe508825cb07a323ad8a6cd1'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_subscribe_2904@domain.example.com' name='Bobby'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.166 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<iq from='alice_subscribe_2904@domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' id='push417926ae923f9107' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2904@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.166 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<iq from='alice_subscribe_2904@domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' id='ac04a88dbe508825cb07a323ad8a6cd1' type='result'/>
*** User 2024-03-18 09:38:20.166 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<iq to='alice_subscribe_2904@domain.example.com' id='push417926ae923f9107' type='result'/>
*** User 2024-03-18 09:38:20.166 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<presence type='subscribe' to='bob_subscribe_2904@domain.example.com'/>
*** User 2024-03-18 09:38:20.172 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<iq from='alice_subscribe_2904@domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' id='push2ef381ad7bff5968' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' ask='subscribe' jid='bob_subscribe_2904@domain.example.com' subscription='none'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.172 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
<iq to='alice_subscribe_2904@domain.example.com' id='push2ef381ad7bff5968' type='result'/>
*** User 2024-03-18 09:38:20.172 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<presence from='alice_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-18 09:38:20.172 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<iq type='get' id='e0070d96302212bd486d990bc38c0046'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-18 09:38:20.176 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='bob_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='e0070d96302212bd486d990bc38c0046' type='result'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-18 09:38:20.176 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2904@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2904@domain.example.com/res1">>},
{<<"id">>,<<"e0070d96302212bd486d990bc38c0046">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[]}]}
*** User 2024-03-18 09:38:20.176 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<iq type='set' id='3827709a1aa9c251bb2545a7190d1a84'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_subscribe_2904@domain.example.com' name='Alice'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.179 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='bob_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='push04d76917b25987b0' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2904@domain.example.com' subscription='none'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.179 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<iq to='bob_subscribe_2904@domain.example.com' id='push04d76917b25987b0' type='result'/>
*** User 2024-03-18 09:38:20.200 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='bob_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='3827709a1aa9c251bb2545a7190d1a84' type='result'/>
*** User 2024-03-18 09:38:20.201 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<presence type='subscribed' to='alice_subscribe_2904@domain.example.com'/>
*** User 2024-03-18 09:38:20.206 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<iq from='alice_subscribe_2904@domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' id='push1982614160cd6009' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Bobby' jid='bob_subscribe_2904@domain.example.com' subscription='to'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.206 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<presence from='bob_subscribe_2904@domain.example.com' to='alice_subscribe_2904@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-18 09:38:20.206 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<presence from='bob_subscribe_2904@domain.example.com/res1' to='alice_subscribe_2904@domain.example.com/res1'/>
*** User 2024-03-18 09:38:20.206 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='bob_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='push008dfa7f78e70801' type='set'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2904@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.206 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<iq type='get' id='32083529cb97b575c578f9a12b732e54'>
<query xmlns='jabber:iq:roster'/>
</iq>
*** User 2024-03-18 09:38:20.208 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
<iq from='bob_subscribe_2904@domain.example.com' to='bob_subscribe_2904@domain.example.com/res1' id='32083529cb97b575c578f9a12b732e54' type='result'>
<query xmlns='jabber:iq:roster'>
<item name='Alice' jid='alice_subscribe_2904@domain.example.com' subscription='from'>
<group>enemies</group>
</item>
</query>
</iq>
*** User 2024-03-18 09:38:20.208 ***🔗
Roster: {xmlel,<<"iq">>,
[{<<"from">>,<<"bob_subscribe_2904@domain.example.com">>},
{<<"to">>,<<"bob_subscribe_2904@domain.example.com/res1">>},
{<<"id">>,<<"32083529cb97b575c578f9a12b732e54">>},
{<<"type">>,<<"result">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"name">>,<<"Alice">>},
{<<"jid">>,
<<"alice_subscribe_2904@domain.example.com">>},
{<<"subscription">>,<<"from">>}],
[{xmlel,<<"group">>,[],[{xmlcdata,<<"enemies">>}]}]}]}]}
*** User 2024-03-18 09:38:20.208 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<presence/>
*** User 2024-03-18 09:38:20.209 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<presence from='bob_subscribe_2904@domain.example.com/res1' to='alice_subscribe_2904@domain.example.com/res1'/>
*** User 2024-03-18 09:38:20.209 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
<presence type='unavailable'/>
*** User 2024-03-18 09:38:20.210 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
<presence from='bob_subscribe_2904@domain.example.com/res1' to='alice_subscribe_2904@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-18 09:38:20.210 ***🔗
bob_subscribe_2904@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:20.210 ***🔗
bob_subscribe_2904@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-18 09:38:20.210 ***🔗
alice_subscribe_2904@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-18 09:38:20.211 ***🔗
alice_subscribe_2904@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-18 09:38:20
=== successfully completed test case
=== === Returned value: ok