=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.11228.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@f35493351768.2022-03-18_10.50.10/big_tests.tests.rest_SUITE.logs/run.2022-03-18_11.03.11/rest_suite.befriend_and_alienate.71172.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@f35493351768.2022-03-18_10.50.10/big_tests.tests.rest_SUITE.logs/run.2022-03-18_11.03.11/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{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@f35493351768.2022-03-18_10.50.10"
=== Started at 2022-03-18 11:03:12
*** User 2022-03-18 11:03:12.654 ***
alicE_befriend_and_alienate_2487@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-18 11:03:12.654 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='598f7d0283eb7524' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 11:03:12.655 ***
alicE_befriend_and_alienate_2487@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-18 11:03:12.655 ***
alicE_befriend_and_alienate_2487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNDg3AG1hdHlncnlzYQ==</auth>
*** User 2022-03-18 11:03:12.655 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 11:03:12.656 ***
alicE_befriend_and_alienate_2487@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-18 11:03:12.656 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6883c119c90e0878' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 11:03:12.656 ***
alicE_befriend_and_alienate_2487@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-18 11:03:12.656 ***
alicE_befriend_and_alienate_2487@localhost/res1 out
<iq type='set' id='d01c5a609a47d6dbd4366ca971d30f06'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 11:03:12.656 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq id='d01c5a609a47d6dbd4366ca971d30f06' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_befriend_and_alienate_2487@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 11:03:12.657 ***
alicE_befriend_and_alienate_2487@localhost/res1 out
<iq type='set' id='551102327b0e341968d84492946674f3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 11:03:12.657 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq type='result' id='551102327b0e341968d84492946674f3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 11:03:12.657 ***
alicE_befriend_and_alienate_2487@localhost/res1 out
<presence/>
*** User 2022-03-18 11:03:12.660 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2487@localhost/res1' to='alice_befriend_and_alienate_2487@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 11:03:12.660 ***
bOb_befriend_and_alienate_2487@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-18 11:03:12.661 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a03e29d668801d05' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 11:03:12.661 ***
bOb_befriend_and_alienate_2487@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-18 11:03:12.661 ***
bOb_befriend_and_alienate_2487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjQ4NwBtYWtyb2xpa2E=</auth>
*** User 2022-03-18 11:03:12.662 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 11:03:12.662 ***
bOb_befriend_and_alienate_2487@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-18 11:03:12.662 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44a5dfb7c5681228' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 11:03:12.662 ***
bOb_befriend_and_alienate_2487@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-18 11:03:12.662 ***
bOb_befriend_and_alienate_2487@localhost/res1 out
<iq type='set' id='c396f655436e80d65b931dfee4c1ba60'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 11:03:12.663 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq id='c396f655436e80d65b931dfee4c1ba60' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_befriend_and_alienate_2487@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 11:03:12.663 ***
bOb_befriend_and_alienate_2487@localhost/res1 out
<iq type='set' id='9824b39713475e38aa948f402bb880bf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 11:03:12.663 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq type='result' id='9824b39713475e38aa948f402bb880bf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 11:03:12.663 ***
bOb_befriend_and_alienate_2487@localhost/res1 out
<presence/>
*** User 2022-03-18 11:03:12.666 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2487@localhost/res1' to='bob_befriend_and_alienate_2487@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 11:03:12.669 ***
REST request:
Code: 200
Req: {<0.11283.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c0948f3bbfe5df50">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2263}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.673 ***
REST request:
Code: 200
Req: {<0.11291.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29b65383cf9058f6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2488}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.682 ***
REST request:
Code: 204
Req: {<0.11305.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"31fc71e62766d9c4">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2487@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,7878}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_2487@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.690 ***
REST request:
Code: 204
Req: {<0.11309.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c9ce557b3baccf56">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2487@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,6566}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2487@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.697 ***
REST request:
Code: 200
Req: {<0.11321.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea17fdab767f1a53">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
213,6631}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.704 ***
REST request:
Code: 200
Req: {<0.11330.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b40ae83c951d8b77">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
211,4973}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.714 ***
REST request:
Code: 204
Req: {<0.11333.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bde6f37a96e9f7b7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,8895}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.717 ***
REST request:
Code: 200
Req: {<0.11335.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"408adb7aa44dd987">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2487@localhost\",\"ask\":\"out\"}]">>,
210,1951}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.726 ***
REST request:
Code: 204
Req: {<0.11339.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2330f7f652dad540">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,8324}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.731 ***
REST request:
Code: 200
Req: {<0.11343.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3c73abe1c205c969">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
209,3814}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.736 ***
REST request:
Code: 200
Req: {<0.11347.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"82f9f793ad16cc1c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
213,3472}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.749 ***
REST request:
Code: 204
Req: {<0.11349.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86ff9164f5f7ba49">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,12447}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.753 ***
REST request:
Code: 200
Req: {<0.11353.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"248c00ad6fda8e3e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2487@localhost\",\"ask\":\"out\"}]">>,
212,2620}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.777 ***
REST request:
Code: 204
Req: {<0.11357.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d07ea59d92adfdac">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,22253}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.780 ***
REST request:
Code: 200
Req: {<0.11359.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"016086066fcfb5cf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
211,1752}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.784 ***
REST request:
Code: 200
Req: {<0.11361.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e8d30ab0bf81d9b5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
213,1870}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.798 ***
REST request:
Code: 204
Req: {<0.11363.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5962c1e87158d654">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,13233}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.801 ***
REST request:
Code: 200
Req: {<0.11365.2>,
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e847d7173053d155">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1764}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.804 ***
REST request:
Code: 200
Req: {<0.11367.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07cdd9792c469a5e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2487@localhost\",\"ask\":\"none\"}]">>,
213,1499}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.809 ***
REST request:
Code: 204
Req: {<0.11369.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0cfdd7b8477537fb">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,4414}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost/alice_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.812 ***
REST request:
Code: 200
Req: {<0.11371.2>,
<<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a3e29511b768b6dd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 11:03:12 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1950}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_2487@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='push34510590f610dbb3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='push17932020b4c802e3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2487@localhost/res1' to='alice_befriend_and_alienate_2487@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='pushd27fe601ac8c2394' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<presence from='bob_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' type='subscribed'/>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='push7c6defb65a34fe79' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<presence from='bob_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' type='subscribe'/>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='push6a6a61a23bf670f8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<iq from='alice_befriend_and_alienate_2487@localhost' to='alice_befriend_and_alienate_2487@localhost/res1' id='push8de8f7b732493b7f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:12.813 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2487@localhost/res1' to='alice_befriend_and_alienate_2487@localhost/res1' type='unavailable'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='push8c08cfdca79819f3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alice_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' type='subscribe'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='push0b450120f12d06dd' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='push038508d0e72db987' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2487@localhost/res1' to='bob_befriend_and_alienate_2487@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='push30727ed97d2563b2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alice_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' type='subscribed'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2487@localhost/res1' to='bob_befriend_and_alienate_2487@localhost/res1' type='unavailable'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='pushd055bd36440d91eb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alice_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' type='unsubscribe'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='push98290f0f408e3c60' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<presence from='alice_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' type='unsubscribed'/>
*** User 2022-03-18 11:03:17.814 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
<iq from='bob_befriend_and_alienate_2487@localhost' to='bob_befriend_and_alienate_2487@localhost/res1' id='pusha85e30257bd1e006' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2487@localhost'/>
</query>
</iq>
*** User 2022-03-18 11:03:22.815 ***
bOb_befriend_and_alienate_2487@localhost/res1 out
</stream:stream>
*** User 2022-03-18 11:03:22.815 ***
bOb_befriend_and_alienate_2487@localhost/res1 in
</stream:stream>
*** User 2022-03-18 11:03:22.815 ***
alicE_befriend_and_alienate_2487@localhost/res1 out
</stream:stream>
*** User 2022-03-18 11:03:22.816 ***
alicE_befriend_and_alienate_2487@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-18 11:03:22
=== successfully completed test case
=== === Returned value: ok