=== Test case: rest_SUITE:befriend_and_alienate_auto/1 (click for source code)
=== Config value:
[{watchdog,<0.10956.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/rest_suite.befriend_and_alienate_auto.116867.html"},
{tc_group_properties,[{name,roster},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/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@43f5552376e6.2022-03-04_11.16.18"
=== Started at 2022-03-04 11:27:37
*** User 2022-03-04 11:27:37.805 ***
alicE_befriend_and_alienate_auto_1999@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-03-04 11:27:37.805 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6e6fe01eb68d924' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.805 ***
alicE_befriend_and_alienate_auto_1999@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-03-04 11:27:37.806 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV9hdXRvXzE5OTkAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:27:37.806 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:37.806 ***
alicE_befriend_and_alienate_auto_1999@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-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f58ca1d44939cb32' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@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-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 out
<iq type='set' id='44b5d1c2a4da1ac66cc841d8af027581'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq id='44b5d1c2a4da1ac66cc841d8af027581' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_befriend_and_alienate_auto_1999@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 out
<iq type='set' id='dc71a2143ebdfcd6676e20a31c4f8ad3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq type='result' id='dc71a2143ebdfcd6676e20a31c4f8ad3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.807 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:37.809 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_1999@localhost/res1' to='alice_befriend_and_alienate_auto_1999@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:37.810 ***
bOb_befriend_and_alienate_auto_1999@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-03-04 11:27:37.810 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5e887acba1aff601' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.810 ***
bOb_befriend_and_alienate_auto_1999@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-03-04 11:27:37.810 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfYXV0b18xOTk5AG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:27:37.811 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:37.811 ***
bOb_befriend_and_alienate_auto_1999@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-03-04 11:27:37.811 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a36ccb59c553a145' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.811 ***
bOb_befriend_and_alienate_auto_1999@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-03-04 11:27:37.811 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 out
<iq type='set' id='9ffb112ab3214448792c91f4c52f74bb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:37.812 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq id='9ffb112ab3214448792c91f4c52f74bb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_befriend_and_alienate_auto_1999@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:37.812 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 out
<iq type='set' id='443256fb4f9904ac7331499b02bf2112'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.812 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq type='result' id='443256fb4f9904ac7331499b02bf2112'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.812 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:37.814 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_1999@localhost/res1' to='bob_befriend_and_alienate_auto_1999@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:37.816 ***
REST request:
Code: 200
Req: {<0.11015.2>,
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78b81fbc6a5d7885">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1481}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.818 ***
REST request:
Code: 200
Req: {<0.11021.2>,
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5a0eaf16a9900c00">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1027}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.838 ***
REST request:
Code: 204
Req: {<0.11029.2>,
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost/bob_befriend_and_alienate_auto_1999@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a752daa8b620607">>}],
<<"{\"action\":\"connect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,18967}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost/bob_befriend_and_alienate_auto_1999@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.841 ***
REST request:
Code: 200
Req: {<0.11068.2>,
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b9e3117bc74c0f0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"92">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_auto_1999@localhost\",\"ask\":\"none\"}]">>,
216,1720}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.843 ***
REST request:
Code: 200
Req: {<0.11075.2>,
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2cc781cbd9ae4d3f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_auto_1999@localhost\",\"ask\":\"none\"}]">>,
218,1211}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.853 ***
REST request:
Code: 204
Req: {<0.11081.2>,
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost/bob_befriend_and_alienate_auto_1999@localhost/manage">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92de5682c68a831e">>}],
<<"{\"action\":\"disconnect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,9076}
Params: #{body => <<"{\"action\":\"disconnect\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost/bob_befriend_and_alienate_auto_1999@localhost/manage">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.855 ***
REST request:
Code: 200
Req: {<0.11089.2>,
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a366b9b2294346d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1129}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.857 ***
REST request:
Code: 200
Req: {<0.11091.2>,
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3af7560ea0305a79">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,913}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_auto_1999@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='push2121db74bab609c9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='pushc4ed9d839006e7b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='pushbcacadc0e38313e3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='bob_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' type='subscribe'/>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_1999@localhost/res1' to='alice_befriend_and_alienate_auto_1999@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='pushae839518710f41c8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='bob_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' type='subscribed'/>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='push4e160487da831a3a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_1999@localhost' to='alice_befriend_and_alienate_auto_1999@localhost/res1' id='push89451cf4939438f8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:37.857 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_1999@localhost/res1' to='alice_befriend_and_alienate_auto_1999@localhost/res1' type='unavailable'/>
*** User 2022-03-04 11:27:42.858 ***
APushes: [{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"push2121db74bab609c9">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushc4ed9d839006e7b9">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushbcacadc0e38313e3">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushae839518710f41c8">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"push4e160487da831a3a">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"both">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"alice_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"push89451cf4939438f8">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"remove">>},
{<<"jid">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]}]
*** User 2022-03-04 11:27:42.858 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='pushcfa2188eb3c09518' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.858 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' type='subscribe'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='pushf0f5a0583df82eda' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='push54178ef1bb2e6326' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_1999@localhost/res1' to='bob_befriend_and_alienate_auto_1999@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='pushc5da712684d244f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' type='subscribed'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_1999@localhost/res1' to='bob_befriend_and_alienate_auto_1999@localhost/res1' type='unavailable'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='pusheeb81c4ac00ba56b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' type='unsubscribe'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='pushdf82108cf8c89307' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' type='unsubscribed'/>
*** User 2022-03-04 11:27:42.859 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_1999@localhost' to='bob_befriend_and_alienate_auto_1999@localhost/res1' id='push60010f4f16950011' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_auto_1999@localhost'/>
</query>
</iq>
*** User 2022-03-04 11:27:47.860 ***
BPushes: [{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushcfa2188eb3c09518">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushf0f5a0583df82eda">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"push54178ef1bb2e6326">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"ask">>,<<"subscribe">>},
{<<"subscription">>,<<"from">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushc5da712684d244f6">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"both">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pusheeb81c4ac00ba56b">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"to">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"pushdf82108cf8c89307">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"none">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]},
{xmlel,<<"iq">>,
[{<<"from">>,
<<"bob_befriend_and_alienate_auto_1999@localhost">>},
{<<"to">>,
<<"bob_befriend_and_alienate_auto_1999@localhost/res1">>},
{<<"id">>,<<"push60010f4f16950011">>},
{<<"type">>,<<"set">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:roster">>}],
[{xmlel,<<"item">>,
[{<<"subscription">>,<<"remove">>},
{<<"jid">>,
<<"alice_befriend_and_alienate_auto_1999@localhost">>}],
[]}]}]}]
*** User 2022-03-04 11:27:47.860 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:47.861 ***
bOb_befriend_and_alienate_auto_1999@localhost/res1 in
</stream:stream>
*** User 2022-03-04 11:27:47.861 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:47.862 ***
alicE_befriend_and_alienate_auto_1999@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:27:47
=== successfully completed test case
=== === Returned value: ok