=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.86739.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.14.55/rest_suite.befriend_and_alienate.240514.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@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.14.55/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}},
{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@263f7cbb53ed.2024-04-25_14.57.19"
=== Started at 2024-04-25 15:14:57
*** User 2024-04-25 15:14:57.434 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 15:14:57.434 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2556126e141b2f75' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 15:14:57.435 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 15:14:57.435 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzU3AG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 15:14:57.437 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 15:14:57.437 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 15:14:57.437 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6b2b51e5b11b75e7' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3357@localhost'>
*** User 2024-04-25 15:14:57.437 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 15:14:57.437 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 out
<iq type='set' id='15f017bc31d5b78b2ee64af48979dfce'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 15:14:57.438 ***🔗
alicE_befriend_and_alienate_3357@localhost/res1 in
<iq id='15f017bc31d5b78b2ee64af48979dfce' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3357@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 15:14:57.438 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 out
<iq type='set' id='563371a36a7450412c9b67a8bec15370'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:14:57.439 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='563371a36a7450412c9b67a8bec15370' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:14:57.439 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 out
<presence/>
*** User 2024-04-25 15:14:57.442 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost/res1' to='alice_befriend_and_alienate_3357@localhost/res1'/>
*** User 2024-04-25 15:14:57.443 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 15:14:57.445 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5f49f5047cf5d8bd' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 15:14:57.445 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 15:14:57.445 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM1NwBtYWtyb2xpa2E=</auth>
*** User 2024-04-25 15:14:57.447 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 15:14:57.447 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 15:14:57.447 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d73404e7274d2b2' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3357@localhost'>
*** User 2024-04-25 15:14:57.448 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 15:14:57.448 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 out
<iq type='set' id='5eb648c3f6ccc46940ca543a9ea54d52'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 15:14:57.448 ***🔗
bOb_befriend_and_alienate_3357@localhost/res1 in
<iq id='5eb648c3f6ccc46940ca543a9ea54d52' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3357@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 15:14:57.448 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 out
<iq type='set' id='85b982161ce0d3ef3708a60bdf021f61'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:14:57.449 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='85b982161ce0d3ef3708a60bdf021f61' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 15:14:57.449 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 out
<presence/>
*** User 2024-04-25 15:14:57.453 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='bob_befriend_and_alienate_3357@localhost/res1' to='bob_befriend_and_alienate_3357@localhost/res1'/>
*** User 2024-04-25 15:14:57.458 ***🔗
REST request:
Code: 200
Req: {<0.86854.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c1735c6860523ce">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3448}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.466 ***🔗
REST request:
Code: 200
Req: {<0.86858.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d572dd8a301a6c65">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,6885}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.476 ***🔗
REST request:
Code: 204
Req: {<0.86870.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4be951976be31707">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,7849}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:14:57.535 ***🔗
REST request:
Code: 204
Req: {<0.86876.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11bcdd28ab525108">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,57576}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:14:57.552 ***🔗
REST request:
Code: 204
Req: {<0.86878.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"384c943e71aaae94">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,16207}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-25 15:14:57.560 ***🔗
REST request:
Code: 200
Req: {<0.86880.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cfd0b8d64ff44195">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}]">>,
213,5677}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.565 ***🔗
REST request:
Code: 200
Req: {<0.86882.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1239612aa29e4b1d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}]">>,
211,3842}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.639 ***🔗
REST request:
Code: 204
Req: {<0.86884.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a10ef64f57cb5119">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,72641}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-25 15:14:57.654 ***🔗
REST request:
Code: 200
Req: {<0.86886.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f38c5638a2320bd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}]">>,
210,13159}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.667 ***🔗
REST request:
Code: 204
Req: {<0.86888.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"831979b67b45f30d">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,11698}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-25 15:14:57.674 ***🔗
REST request:
Code: 200
Req: {<0.86890.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"148e4bb16bbebc09">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}]">>,
209,5248}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.685 ***🔗
REST request:
Code: 200
Req: {<0.86894.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a37fe14014bafad7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}]">>,
213,9305}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.712 ***🔗
REST request:
Code: 204
Req: {<0.86898.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"900476f27228b48f">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,23565}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-25 15:14:57.719 ***🔗
REST request:
Code: 200
Req: {<0.86902.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b360e65c6ec0dbc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}]">>,
212,3361}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.738 ***🔗
REST request:
Code: 204
Req: {<0.86904.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"06a035a9ead4ccae">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,16849}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-25 15:14:57.743 ***🔗
REST request:
Code: 200
Req: {<0.86906.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"99cabe80b85ae1d1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3357@localhost\"}]">>,
211,2507}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.747 ***🔗
REST request:
Code: 200
Req: {<0.86910.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02b016efe25c198f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}]">>,
213,2221}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.769 ***🔗
REST request:
Code: 204
Req: {<0.86912.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5e4dc80821f79f18">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,19825}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-25 15:14:57.774 ***🔗
REST request:
Code: 200
Req: {<0.86916.0>,
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68a1f3c48b7e8218">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3102}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.778 ***🔗
REST request:
Code: 200
Req: {<0.86918.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52b012ba198e4b46">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3357@localhost\"}]">>,
213,2433}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.786 ***🔗
REST request:
Code: 204
Req: {<0.86920.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c6d222816877812">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>}],
<<>>,80,6024}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost/alice_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-25 15:14:57.790 ***🔗
REST request:
Code: 200
Req: {<0.86922.0>,
<<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d449cb64795540c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 15:14:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2611}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3357@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='push1423e25c542991fc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='pushc8dc5156d8295350' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='push9259a0fd55681163' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_3357@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<presence from='bob_befriend_and_alienate_3357@localhost/res1' to='alice_befriend_and_alienate_3357@localhost/res1'/>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='push36b6796b9c18948a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<presence from='bob_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' type='subscribed'/>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='push64cfdc5b26593795' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<presence from='bob_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' type='subscribe'/>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='pusha9a80c9af8b736e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<iq from='alice_befriend_and_alienate_3357@localhost' to='alice_befriend_and_alienate_3357@localhost/res1' id='pusha9489650a678047b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3357@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 15:14:57.791 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
<presence from='bob_befriend_and_alienate_3357@localhost/res1' to='alice_befriend_and_alienate_3357@localhost/res1' type='unavailable'/>
*** User 2024-04-25 15:15:02.792 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='pusha7c2bee97818587c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' type='subscribe'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='push5be5344dd34ee16e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='pushfa1e0d6904b0cbd8' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_3357@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost/res1' to='bob_befriend_and_alienate_3357@localhost/res1'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='push82813b5aa5480d6f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' type='subscribed'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost/res1' to='bob_befriend_and_alienate_3357@localhost/res1' type='unavailable'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='push7d8e99964952b5be' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' type='unsubscribe'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='push2ee103c9f75bffa3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<presence from='alice_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' type='unsubscribed'/>
*** User 2024-04-25 15:15:02.793 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
<iq from='bob_befriend_and_alienate_3357@localhost' to='bob_befriend_and_alienate_3357@localhost/res1' id='pushd4adbe23d792f920' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3357@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 15:15:07.794 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 out
</stream:stream>
*** User 2024-04-25 15:15:07.794 ***🔗
bob_befriend_and_alienate_3357@localhost/res1 in
</stream:stream>
*** User 2024-04-25 15:15:07.794 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 out
</stream:stream>
*** User 2024-04-25 15:15:07.794 ***🔗
alice_befriend_and_alienate_3357@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 15:15:07
=== successfully completed test case
=== === Returned value: ok