=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.8229.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,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.19/rest_suite.befriend_and_alienate.150530.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.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@ebe8a8f9fc53.2022-01-25_16.21.59"
=== Started at 2022-01-25 16:34:20
*** User 2022-01-25 16:34:20.976 ***
alicE_befriend_and_alienate_2212@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-01-25 16:34:20.977 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abafa86f4dc32834' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.977 ***
alicE_befriend_and_alienate_2212@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-01-25 16:34:20.977 ***
alicE_befriend_and_alienate_2212@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yMjEyAG1hdHlncnlzYQ==</auth>
*** User 2022-01-25 16:34:20.978 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:20.978 ***
alicE_befriend_and_alienate_2212@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-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94511a4c06e037fd' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@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-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@localhost/res1 out
<iq type='set' id='4131a36f146ace85e83a01f15e4e9317'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq id='4131a36f146ace85e83a01f15e4e9317' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_befriend_and_alienate_2212@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@localhost/res1 out
<iq type='set' id='01596d737089c19234d0d459b5a54095'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.979 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq type='result' id='01596d737089c19234d0d459b5a54095'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.980 ***
alicE_befriend_and_alienate_2212@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:20.982 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2212@localhost/res1' to='alice_befriend_and_alienate_2212@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:20.982 ***
bOb_befriend_and_alienate_2212@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-01-25 16:34:20.983 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='48c02a532ec778d6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.983 ***
bOb_befriend_and_alienate_2212@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-01-25 16:34:20.983 ***
bOb_befriend_and_alienate_2212@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjIxMgBtYWtyb2xpa2E=</auth>
*** User 2022-01-25 16:34:20.984 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:20.984 ***
bOb_befriend_and_alienate_2212@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-01-25 16:34:20.984 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6d454e8f9e33d90' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.984 ***
bOb_befriend_and_alienate_2212@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-01-25 16:34:20.984 ***
bOb_befriend_and_alienate_2212@localhost/res1 out
<iq type='set' id='886fc6ec053a3824955048fe9fcea64b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:20.985 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq id='886fc6ec053a3824955048fe9fcea64b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_befriend_and_alienate_2212@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:20.985 ***
bOb_befriend_and_alienate_2212@localhost/res1 out
<iq type='set' id='814457d99a503f012be33b3da0f0a354'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.985 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq type='result' id='814457d99a503f012be33b3da0f0a354'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.985 ***
bOb_befriend_and_alienate_2212@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:20.988 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2212@localhost/res1' to='bob_befriend_and_alienate_2212@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:20.991 ***
REST request:
Code: 200
Req: {<0.8290.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"27804da06896c8fc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2038}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:20.994 ***
REST request:
Code: 200
Req: {<0.8294.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b31c27a8caf742c6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1625}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.000 ***
REST request:
Code: 204
Req: {<0.8302.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0ea049d6e7cbc4eb">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2212@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,5358}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_2212@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.005 ***
REST request:
Code: 204
Req: {<0.8317.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d043a14f7582a782">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2212@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,3505}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2212@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.011 ***
REST request:
Code: 200
Req: {<0.8324.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98b9b83a0c785b39">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
213,4433}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.030 ***
REST request:
Code: 200
Req: {<0.8334.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9583d6d15dd3333c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
211,18997}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.040 ***
REST request:
Code: 204
Req: {<0.8342.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b49ada8870708197">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,8749}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.045 ***
REST request:
Code: 200
Req: {<0.8344.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"247bdf29e2d640bc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2212@localhost\",\"ask\":\"out\"}]">>,
210,3764}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.053 ***
REST request:
Code: 204
Req: {<0.8346.2>,
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29d6a9a42fbdf861">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,6728}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.055 ***
REST request:
Code: 200
Req: {<0.8352.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4bec5beaa25d7d5f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
209,1403}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.058 ***
REST request:
Code: 200
Req: {<0.8356.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"325b6654cb39ba75">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
213,2077}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.066 ***
REST request:
Code: 204
Req: {<0.8358.2>,
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"629183308fe70422">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,7134}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.072 ***
REST request:
Code: 200
Req: {<0.8360.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2ae30f7a3e4d7a8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2212@localhost\",\"ask\":\"out\"}]">>,
212,4070}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.079 ***
REST request:
Code: 204
Req: {<0.8362.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1463c003c0ea6411">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,6397}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.082 ***
REST request:
Code: 200
Req: {<0.8368.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f8c9dcec48081c0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
211,1818}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.085 ***
REST request:
Code: 200
Req: {<0.8370.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6226c9506aa8ba25">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
213,1573}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.096 ***
REST request:
Code: 204
Req: {<0.8372.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51b23b9bdaf65120">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,10206}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.098 ***
REST request:
Code: 200
Req: {<0.8374.2>,
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"045594ade2431ddc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1417}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.101 ***
REST request:
Code: 200
Req: {<0.8376.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c7599f1b07485a7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2212@localhost\",\"ask\":\"none\"}]">>,
213,1298}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.104 ***
REST request:
Code: 204
Req: {<0.8378.2>,
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0a13c016522a9992">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2948}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2212@localhost/alice_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.106 ***
REST request:
Code: 200
Req: {<0.8380.2>,<<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba0e72d9c2eda02a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1174}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2212@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='push0719a8b52afd13dc' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='push870f947d8b157fa3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2212@localhost/res1' to='alice_befriend_and_alienate_2212@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='pushee11b817f94afd0c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<presence from='bob_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' type='subscribed'/>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='push12d1d7b564b6f978' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<presence from='bob_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' type='subscribe'/>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='pushe842a93fea83a870' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<iq from='alice_befriend_and_alienate_2212@localhost' to='alice_befriend_and_alienate_2212@localhost/res1' id='pushc439dafee0635619' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:21.107 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2212@localhost/res1' to='alice_befriend_and_alienate_2212@localhost/res1' type='unavailable'/>
*** User 2022-01-25 16:34:26.108 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push88f928b7bd26b3a9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alice_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' type='subscribe'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='pushc9d91cb69a455b70' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push6fd4af3e9840a24d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2212@localhost/res1' to='bob_befriend_and_alienate_2212@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push5ac1edfc428688a1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alice_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' type='subscribed'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2212@localhost/res1' to='bob_befriend_and_alienate_2212@localhost/res1' type='unavailable'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push101f949765076b5c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alice_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' type='unsubscribe'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push7d0e9f02d63d8399' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<presence from='alice_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' type='unsubscribed'/>
*** User 2022-01-25 16:34:26.109 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
<iq from='bob_befriend_and_alienate_2212@localhost' to='bob_befriend_and_alienate_2212@localhost/res1' id='push73dc9f5d27de10ff' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2212@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:31.110 ***
bOb_befriend_and_alienate_2212@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:31.111 ***
bOb_befriend_and_alienate_2212@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:31.111 ***
alicE_befriend_and_alienate_2212@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:31.111 ***
alicE_befriend_and_alienate_2212@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-25 16:34:31
=== successfully completed test case
=== === Returned value: ok