=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.73407.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@647ed17fbff4.2024-02-20_07.34.51/big_tests.tests.rest_SUITE.logs/run.2024-02-20_07.50.46/rest_suite.befriend_and_alienate.102404.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@647ed17fbff4.2024-02-20_07.34.51/big_tests.tests.rest_SUITE.logs/run.2024-02-20_07.50.46/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,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,<<"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@647ed17fbff4.2024-02-20_07.34.51"
=== Started at 2024-02-20 07:50:47
*** User 2024-02-20 07:50:47.748 ***🔗
alicE_befriend_and_alienate_2952@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 2024-02-20 07:50:47.748 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c10ee7484a82b408' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-20 07:50:47.748 ***🔗
alicE_befriend_and_alienate_2952@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 2024-02-20 07:50:47.748 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTUyAG1hdHlncnlzYQ==</auth>
*** User 2024-02-20 07:50:47.750 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 07:50:47.750 ***🔗
alicE_befriend_and_alienate_2952@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 2024-02-20 07:50:47.751 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36c20dc51c929d6f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2952@domain.example.com'>
*** User 2024-02-20 07:50:47.751 ***🔗
alicE_befriend_and_alienate_2952@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 2024-02-20 07:50:47.751 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 out
<iq type='set' id='5ce02e7c774404a5111a53c53afc34ac'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 07:50:47.751 ***🔗
alicE_befriend_and_alienate_2952@domain.example.com/res1 in
<iq id='5ce02e7c774404a5111a53c53afc34ac' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2952@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-20 07:50:47.751 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 out
<iq type='set' id='e6f182fe30852aa71a050cff4a8889e1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 07:50:47.752 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='e6f182fe30852aa71a050cff4a8889e1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 07:50:47.752 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 out
<presence/>
*** User 2024-02-20 07:50:47.754 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com/res1' to='alice_befriend_and_alienate_2952@domain.example.com/res1'/>
*** User 2024-02-20 07:50:47.755 ***🔗
bOb_befriend_and_alienate_2952@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 2024-02-20 07:50:47.755 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54619f87db6a6007' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-20 07:50:47.755 ***🔗
bOb_befriend_and_alienate_2952@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 2024-02-20 07:50:47.756 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk1MgBtYWtyb2xpa2E=</auth>
*** User 2024-02-20 07:50:47.757 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 07:50:47.757 ***🔗
bOb_befriend_and_alienate_2952@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 2024-02-20 07:50:47.757 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee6c15b9930288d8' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2952@domain.example.com'>
*** User 2024-02-20 07:50:47.757 ***🔗
bOb_befriend_and_alienate_2952@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 2024-02-20 07:50:47.757 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 out
<iq type='set' id='4c07fecb2efb2df9a6819d40267c61ad'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 07:50:47.758 ***🔗
bOb_befriend_and_alienate_2952@domain.example.com/res1 in
<iq id='4c07fecb2efb2df9a6819d40267c61ad' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2952@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-20 07:50:47.758 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 out
<iq type='set' id='8949fc8fb1fce50631e117c7b500bc83'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 07:50:47.759 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='8949fc8fb1fce50631e117c7b500bc83' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 07:50:47.759 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 out
<presence/>
*** User 2024-02-20 07:50:47.762 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2952@domain.example.com/res1' to='bob_befriend_and_alienate_2952@domain.example.com/res1'/>
*** User 2024-02-20 07:50:47.765 ***🔗
REST request:
Code: 200
Req: {<0.73514.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7517c87a71b23e1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2198}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.769 ***🔗
REST request:
Code: 200
Req: {<0.73520.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ed3122b963d2079">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1948}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.775 ***🔗
REST request:
Code: 204
Req: {<0.73528.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb4b4bee30c37f9c">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>}],
<<>>,80,4496}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.781 ***🔗
REST request:
Code: 204
Req: {<0.73540.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52a4d418048314e9">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>}],
<<>>,80,4952}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.789 ***🔗
REST request:
Code: 204
Req: {<0.73543.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7bf3f9eb4510381">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>}],
<<>>,80,6906}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.794 ***🔗
REST request:
Code: 200
Req: {<0.73548.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"adb2b1d1c40b01c2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}]">>,
222,3076}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.797 ***🔗
REST request:
Code: 200
Req: {<0.73550.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"43d3dacba318fc08">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}]">>,
220,2127}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.806 ***🔗
REST request:
Code: 204
Req: {<0.73552.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e7d68ddcb1e8b28c">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,7680}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.810 ***🔗
REST request:
Code: 200
Req: {<0.73554.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ba075c4956ffcad">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}]">>,
219,3033}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.820 ***🔗
REST request:
Code: 204
Req: {<0.73556.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"71c60a66f13deed7">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,8270}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.862 ***🔗
REST request:
Code: 200
Req: {<0.73564.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"acfd529a395e8b3d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}]">>,
218,40314}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.867 ***🔗
REST request:
Code: 200
Req: {<0.73566.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be887b445571f535">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}]">>,
222,3634}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.877 ***🔗
REST request:
Code: 204
Req: {<0.73568.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11d30d07559fa8b4">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,8597}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.881 ***🔗
REST request:
Code: 200
Req: {<0.73570.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e9695481df9ba66">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}]">>,
221,2487}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.891 ***🔗
REST request:
Code: 204
Req: {<0.73572.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7501d179c1aa1212">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,8748}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-02-20 07:50:47.895 ***🔗
REST request:
Code: 200
Req: {<0.73578.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b037f0cecf093d5b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2952@domain.example.com\"}]">>,
220,2631}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.899 ***🔗
REST request:
Code: 200
Req: {<0.73580.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8eb30b65ae10bad3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}]">>,
222,2747}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.918 ***🔗
REST request:
Code: 204
Req: {<0.73582.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c00c17743e6d6f74">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,18052}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.922 ***🔗
REST request:
Code: 200
Req: {<0.73584.0>,
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a196e5efe5aeebf8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2897}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.927 ***🔗
REST request:
Code: 200
Req: {<0.73586.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"63282a624d3fd7d6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2952@domain.example.com\"}]">>,
222,2838}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.932 ***🔗
REST request:
Code: 204
Req: {<0.73588.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"50f7eb72cc805c1b">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>}],
<<>>,80,4253}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com/alice_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.936 ***🔗
REST request:
Code: 200
Req: {<0.73590.0>,
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fea9aef92169d692">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 07:50:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2763}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2952@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='pushe7b41db2e8f12bb8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push0e45ae381574171d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push302ed2e47d80817a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2952@domain.example.com/res1' to='alice_befriend_and_alienate_2952@domain.example.com/res1'/>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push20bbf689023ec428' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' type='subscribed'/>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push8f66dab89fb20a3a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' type='subscribe'/>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push717230c7a92997b3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2952@domain.example.com' to='alice_befriend_and_alienate_2952@domain.example.com/res1' id='push0868bc7853b1c3ab' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:47.937 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2952@domain.example.com/res1' to='alice_befriend_and_alienate_2952@domain.example.com/res1' type='unavailable'/>
*** User 2024-02-20 07:50:52.938 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='pushd13770db04ddaf8b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.938 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' type='subscribe'/>
*** User 2024-02-20 07:50:52.938 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='push54aa969d81365447' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.938 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='pushdbb7faa7962d2a96' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com/res1' to='bob_befriend_and_alienate_2952@domain.example.com/res1'/>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='push838bfcda0a307e44' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' type='subscribed'/>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com/res1' to='bob_befriend_and_alienate_2952@domain.example.com/res1' type='unavailable'/>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='push3e66a660af4291a2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='push9c5dce47237f20c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-02-20 07:50:52.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2952@domain.example.com' to='bob_befriend_and_alienate_2952@domain.example.com/res1' id='push344f44d25e6ffbba' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2952@domain.example.com'/>
</query>
</iq>
*** User 2024-02-20 07:50:57.939 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-20 07:50:57.940 ***🔗
bob_befriend_and_alienate_2952@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-20 07:50:57.940 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-20 07:50:57.940 ***🔗
alice_befriend_and_alienate_2952@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-20 07:50:57
=== successfully completed test case
=== === Returned value: ok