=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.71340.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_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@cdb4b709e1db.2023-11-16_09.06.27/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.19.24/rest_suite.befriend_and_alienate.99460.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@cdb4b709e1db.2023-11-16_09.06.27/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.19.24/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cdb4b709e1db.2023-11-16_09.06.27"
=== Started at 2023-11-16 09:19:25
*** User 2023-11-16 09:19:25.733 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:19:25.734 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1d4b4b66948607e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:19:25.734 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-16 09:19:25.734 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzc2AG1hdHlncnlzYQ==</auth>
*** User 2023-11-16 09:19:25.735 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:19:25.735 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:19:25.736 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94608c7b52c94426' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2776@domain.example.com'>
*** User 2023-11-16 09:19:25.736 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-16 09:19:25.736 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 out
<iq type='set' id='594319799974c053ea0b4cf027405b6b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:19:25.736 ***🔗
alicE_befriend_and_alienate_2776@domain.example.com/res1 in
<iq id='594319799974c053ea0b4cf027405b6b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2776@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:19:25.737 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 out
<iq type='set' id='7b7b5bb6b1eb062488888521c01ef899'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:19:25.737 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='7b7b5bb6b1eb062488888521c01ef899' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:19:25.737 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 out
<presence/>
*** User 2023-11-16 09:19:25.738 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com/res1' to='alice_befriend_and_alienate_2776@domain.example.com/res1'/>
*** User 2023-11-16 09:19:25.739 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:19:25.739 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b9686e297c1ecdf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:19:25.739 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-16 09:19:25.739 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjc3NgBtYWtyb2xpa2E=</auth>
*** User 2023-11-16 09:19:25.740 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:19:25.740 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:19:25.740 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='953043ff46f063db' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2776@domain.example.com'>
*** User 2023-11-16 09:19:25.740 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-16 09:19:25.740 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 out
<iq type='set' id='f4bc3c86a6a12bb454a2e419399e19fd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:19:25.741 ***🔗
bOb_befriend_and_alienate_2776@domain.example.com/res1 in
<iq id='f4bc3c86a6a12bb454a2e419399e19fd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2776@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:19:25.741 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 out
<iq type='set' id='7a68f86d7c268843b2220d60a50ac9c6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:19:25.741 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='7a68f86d7c268843b2220d60a50ac9c6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:19:25.741 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 out
<presence/>
*** User 2023-11-16 09:19:25.743 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2776@domain.example.com/res1' to='bob_befriend_and_alienate_2776@domain.example.com/res1'/>
*** User 2023-11-16 09:19:25.745 ***🔗
REST request:
Code: 200
Req: {<0.71444.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b02bde16050ba4a3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1099}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.747 ***🔗
REST request:
Code: 200
Req: {<0.71450.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89ecf9eac4264261">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1215}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.751 ***🔗
REST request:
Code: 204
Req: {<0.71461.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb31908a46d3ac79">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,2953}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.755 ***🔗
REST request:
Code: 204
Req: {<0.71474.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a0f302a676143278">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,2931}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.758 ***🔗
REST request:
Code: 204
Req: {<0.71479.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c4ebe2a5a78e517b">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,1991}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.760 ***🔗
REST request:
Code: 200
Req: {<0.71481.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1fe1209858e04d10">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}]">>,
222,1027}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.762 ***🔗
REST request:
Code: 200
Req: {<0.71483.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e95bd58332c58c13">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}]">>,
220,1492}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.766 ***🔗
REST request:
Code: 204
Req: {<0.71485.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"169e67cd788cc7f2">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,3002}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.768 ***🔗
REST request:
Code: 200
Req: {<0.71489.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"071eeea2909747e3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}]">>,
219,882}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.772 ***🔗
REST request:
Code: 204
Req: {<0.71493.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0edb2a9ce731f7f1">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,3169}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.775 ***🔗
REST request:
Code: 200
Req: {<0.71497.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4db64cbc600b0935">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}]">>,
218,1553}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.823 ***🔗
REST request:
Code: 200
Req: {<0.71499.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c12d7e625e3c7688">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}]">>,
222,1417}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.827 ***🔗
REST request:
Code: 204
Req: {<0.71503.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5e1543f7b76711b5">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,3088}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.830 ***🔗
REST request:
Code: 200
Req: {<0.71507.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d139042dd6b268c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}]">>,
221,1382}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.834 ***🔗
REST request:
Code: 204
Req: {<0.71509.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b76214c056eb1cd0">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,2972}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:19:25.836 ***🔗
REST request:
Code: 200
Req: {<0.71511.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78d3dc6cb31811f8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2776@domain.example.com\"}]">>,
220,1084}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.838 ***🔗
REST request:
Code: 200
Req: {<0.71513.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c0d6a1f79fcc4095">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}]">>,
222,1068}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.844 ***🔗
REST request:
Code: 204
Req: {<0.71515.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"655d72f6ce1dd075">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,5352}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.846 ***🔗
REST request:
Code: 200
Req: {<0.71517.0>,
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"20c1e86cbcf73448">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,975}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.848 ***🔗
REST request:
Code: 200
Req: {<0.71519.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5281479c00251031">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2776@domain.example.com\"}]">>,
222,930}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.850 ***🔗
REST request:
Code: 204
Req: {<0.71521.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8793d838dfb8758d">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>}],
<<>>,80,1750}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com/alice_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.852 ***🔗
REST request:
Code: 200
Req: {<0.71523.0>,
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39987eace93d5cb2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:19:25 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1007}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2776@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='push5d89bbcbaf2bc96f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='push25fc25c7faf1f57b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='pusha399436d9ab68da5' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2776@domain.example.com/res1' to='alice_befriend_and_alienate_2776@domain.example.com/res1'/>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='push4695beede7958b23' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='pushfeba66155df5d3b1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.852 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-16 09:19:25.853 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='push7ddb821c127f785a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.853 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2776@domain.example.com' to='alice_befriend_and_alienate_2776@domain.example.com/res1' id='push0cead99d415c8b2c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:25.853 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2776@domain.example.com/res1' to='alice_befriend_and_alienate_2776@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-16 09:19:30.853 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='push58e28d36f79de542' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='push1d018349637f12c0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='pushc44313eb6e5412ba' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com/res1' to='bob_befriend_and_alienate_2776@domain.example.com/res1'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='push20b6299079f44314' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com/res1' to='bob_befriend_and_alienate_2776@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='push483ee26db77e027f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' type='unsubscribe'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='pushe38990a4ce6f8bd6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' type='unsubscribed'/>
*** User 2023-11-16 09:19:30.854 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2776@domain.example.com' to='bob_befriend_and_alienate_2776@domain.example.com/res1' id='pushce3a484de60864c5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2776@domain.example.com'/>
</query>
</iq>
*** User 2023-11-16 09:19:35.855 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-16 09:19:35.855 ***🔗
bob_befriend_and_alienate_2776@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-16 09:19:35.855 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-16 09:19:35.855 ***🔗
alice_befriend_and_alienate_2776@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:19:35
=== successfully completed test case
=== === Returned value: ok