=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75650.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@a0c40f52f50c.2024-03-21_07.45.55/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.00.22/rest_suite.befriend_and_alienate.225410.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@a0c40f52f50c.2024-03-21_07.45.55/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.00.22/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_amp => #{},
mod_sic => #{iqdisc => one_queue},
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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,buffer_max => 100,ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600,backend => mnesia},
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@a0c40f52f50c.2024-03-21_07.45.55"
=== Started at 2024-03-21 08:00:23
*** User 2024-03-21 08:00:23.088 ***🔗
alicE_befriend_and_alienate_2919@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-03-21 08:00:23.088 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54364987726524d0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:23.089 ***🔗
alicE_befriend_and_alienate_2919@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-03-21 08:00:23.089 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTE5AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 08:00:23.090 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:23.090 ***🔗
alicE_befriend_and_alienate_2919@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-03-21 08:00:23.090 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='469917caf2cdc992' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2919@domain.example.com'>
*** User 2024-03-21 08:00:23.090 ***🔗
alicE_befriend_and_alienate_2919@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-03-21 08:00:23.090 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 out
<iq type='set' id='af939ad03b676a8cad8f6ba9555c6725'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:23.091 ***🔗
alicE_befriend_and_alienate_2919@domain.example.com/res1 in
<iq id='af939ad03b676a8cad8f6ba9555c6725' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2919@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:23.091 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 out
<iq type='set' id='5b5b098c88d110946b9ddfb57a14193b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:23.091 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='5b5b098c88d110946b9ddfb57a14193b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:23.091 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:23.093 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com/res1' to='alice_befriend_and_alienate_2919@domain.example.com/res1'/>
*** User 2024-03-21 08:00:23.093 ***🔗
bOb_befriend_and_alienate_2919@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-03-21 08:00:23.094 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='08de31c2111f2ab0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:23.094 ***🔗
bOb_befriend_and_alienate_2919@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-03-21 08:00:23.095 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkxOQBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@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-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f552bec1ae3b0ce0' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2919@domain.example.com'>
*** User 2024-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@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-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 out
<iq type='set' id='a618084cd472e09272e75020f34e90e3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:23.096 ***🔗
bOb_befriend_and_alienate_2919@domain.example.com/res1 in
<iq id='a618084cd472e09272e75020f34e90e3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2919@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:23.097 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 out
<iq type='set' id='7cd692549eb954bd99c2f27bbaa6f8b7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:23.097 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='7cd692549eb954bd99c2f27bbaa6f8b7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:23.097 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:23.099 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2919@domain.example.com/res1' to='bob_befriend_and_alienate_2919@domain.example.com/res1'/>
*** User 2024-03-21 08:00:23.102 ***🔗
REST request:
Code: 200
Req: {<0.75754.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18b4e39f8c85ac39">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2061}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.105 ***🔗
REST request:
Code: 200
Req: {<0.75763.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a81577f8af3562c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1578}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.116 ***🔗
REST request:
Code: 204
Req: {<0.75767.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3c2865e9b91b3d0">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,10275}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-21 08:00:23.157 ***🔗
REST request:
Code: 204
Req: {<0.75785.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f46e9f14e9789773">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,39715}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-21 08:00:23.161 ***🔗
REST request:
Code: 204
Req: {<0.75789.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9b6348338c068b11">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,3322}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-21 08:00:23.164 ***🔗
REST request:
Code: 200
Req: {<0.75791.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0bf130055b93380c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}]">>,
222,1460}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.166 ***🔗
REST request:
Code: 200
Req: {<0.75793.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"853c98a3fe993e82">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}]">>,
220,1298}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.172 ***🔗
REST request:
Code: 204
Req: {<0.75795.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"930024e28e25d7d7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,5137}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-03-21 08:00:23.175 ***🔗
REST request:
Code: 200
Req: {<0.75797.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be6dfecd1e11073f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}]">>,
219,1602}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.180 ***🔗
REST request:
Code: 204
Req: {<0.75799.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c41f157fc2835157">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,4726}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-03-21 08:00:23.183 ***🔗
REST request:
Code: 200
Req: {<0.75801.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb43e97185f347dd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}]">>,
218,1570}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.185 ***🔗
REST request:
Code: 200
Req: {<0.75803.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"00ca3d1fdfe7456c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}]">>,
222,1685}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.191 ***🔗
REST request:
Code: 204
Req: {<0.75807.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0661c651e13a8da6">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,5316}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-03-21 08:00:23.194 ***🔗
REST request:
Code: 200
Req: {<0.75813.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2647f5fb7cf15450">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}]">>,
221,1515}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.201 ***🔗
REST request:
Code: 204
Req: {<0.75815.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ae3936ebb747f41c">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,6177}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-03-21 08:00:23.204 ***🔗
REST request:
Code: 200
Req: {<0.75817.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1a8c7884ed10aaf8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2919@domain.example.com\"}]">>,
220,1624}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.206 ***🔗
REST request:
Code: 200
Req: {<0.75821.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f2b460e27e79d86">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}]">>,
222,1476}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.215 ***🔗
REST request:
Code: 204
Req: {<0.75825.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a5bcc0cc16d7ddbf">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,8450}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.218 ***🔗
REST request:
Code: 200
Req: {<0.75827.0>,
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d6defeec3d4ab51b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1679}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.220 ***🔗
REST request:
Code: 200
Req: {<0.75829.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7823882889873d00">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2919@domain.example.com\"}]">>,
222,1462}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.224 ***🔗
REST request:
Code: 204
Req: {<0.75831.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f935f8d43fc459b">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>}],
<<>>,80,2478}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com/alice_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.226 ***🔗
REST request:
Code: 200
Req: {<0.75833.0>,
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ec818b67270d938e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1546}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2919@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-03-21 08:00:23.226 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='pushbe7f9444f422bf4b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.226 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='pushd413165a8bd63d4b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.226 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='pushabb06e6f15447b22' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2919@domain.example.com/res1' to='alice_befriend_and_alienate_2919@domain.example.com/res1'/>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='push7b1769d34a083d0b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='pushd81f11399252b11a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='push451271f7cd82a9bc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2919@domain.example.com' to='alice_befriend_and_alienate_2919@domain.example.com/res1' id='pusha9e531eef728e78d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2919@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 08:00:23.227 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2919@domain.example.com/res1' to='alice_befriend_and_alienate_2919@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push10fcde38f46bd26b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push0633807199497008' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push5ea7e8682dcd93dd' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com/res1' to='bob_befriend_and_alienate_2919@domain.example.com/res1'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push1ee9923bc4317c34' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com/res1' to='bob_befriend_and_alienate_2919@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push15e08bbabd83751d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push1110f0390f890de1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-21 08:00:28.228 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2919@domain.example.com' to='bob_befriend_and_alienate_2919@domain.example.com/res1' id='push84153991a9fdfbfc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2919@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 08:00:33.229 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:33.229 ***🔗
bob_befriend_and_alienate_2919@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-21 08:00:33.229 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:33.229 ***🔗
alice_befriend_and_alienate_2919@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-21 08:00:33
=== successfully completed test case
=== === Returned value: ok