=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75559.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@ee70a3235591.2024-03-27_08.45.21/big_tests.tests.rest_SUITE.logs/run.2024-03-27_08.58.29/rest_suite.befriend_and_alienate.108036.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@ee70a3235591.2024-03-27_08.45.21/big_tests.tests.rest_SUITE.logs/run.2024-03-27_08.58.29/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_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_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@ee70a3235591.2024-03-27_08.45.21"
=== Started at 2024-03-27 08:58:30
*** User 2024-03-27 08:58:30.147 ***🔗
alicE_befriend_and_alienate_2903@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-27 08:58:30.148 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe302fa12313af67' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-27 08:58:30.148 ***🔗
alicE_befriend_and_alienate_2903@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-27 08:58:30.148 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTAzAG1hdHlncnlzYQ==</auth>
*** User 2024-03-27 08:58:30.149 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-27 08:58:30.149 ***🔗
alicE_befriend_and_alienate_2903@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-27 08:58:30.149 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='07e4824259cf37a9' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2903@domain.example.com'>
*** User 2024-03-27 08:58:30.149 ***🔗
alicE_befriend_and_alienate_2903@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-27 08:58:30.149 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 out
<iq type='set' id='cb20d1209b7a01d148e4e00848d6e1fd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-27 08:58:30.150 ***🔗
alicE_befriend_and_alienate_2903@domain.example.com/res1 in
<iq id='cb20d1209b7a01d148e4e00848d6e1fd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2903@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-27 08:58:30.150 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 out
<iq type='set' id='c875034498e1720a96a52a39260a09cf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-27 08:58:30.150 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='c875034498e1720a96a52a39260a09cf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-27 08:58:30.150 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 out
<presence/>
*** User 2024-03-27 08:58:30.152 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com/res1' to='alice_befriend_and_alienate_2903@domain.example.com/res1'/>
*** User 2024-03-27 08:58:30.152 ***🔗
bOb_befriend_and_alienate_2903@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-27 08:58:30.153 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23d38d2d1aa6cbeb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-27 08:58:30.153 ***🔗
bOb_befriend_and_alienate_2903@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-27 08:58:30.153 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkwMwBtYWtyb2xpa2E=</auth>
*** User 2024-03-27 08:58:30.154 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-27 08:58:30.154 ***🔗
bOb_befriend_and_alienate_2903@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-27 08:58:30.155 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef27c4c28e96cda0' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2903@domain.example.com'>
*** User 2024-03-27 08:58:30.155 ***🔗
bOb_befriend_and_alienate_2903@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-27 08:58:30.155 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 out
<iq type='set' id='ed39da8b2c538dfc42861fa6120f8985'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-27 08:58:30.155 ***🔗
bOb_befriend_and_alienate_2903@domain.example.com/res1 in
<iq id='ed39da8b2c538dfc42861fa6120f8985' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2903@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-27 08:58:30.155 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 out
<iq type='set' id='1c1e0ba8a89fa8234a1f07c3b6c4f9b4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-27 08:58:30.156 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='1c1e0ba8a89fa8234a1f07c3b6c4f9b4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-27 08:58:30.156 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 out
<presence/>
*** User 2024-03-27 08:58:30.157 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2903@domain.example.com/res1' to='bob_befriend_and_alienate_2903@domain.example.com/res1'/>
*** User 2024-03-27 08:58:30.159 ***🔗
REST request:
Code: 200
Req: {<0.75665.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d2ea738a73aa19a3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1208}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.162 ***🔗
REST request:
Code: 200
Req: {<0.75669.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e4dcbf5083218b7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1298}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.167 ***🔗
REST request:
Code: 204
Req: {<0.75678.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5722e8f25409197e">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,4025}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.170 ***🔗
REST request:
Code: 204
Req: {<0.75692.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c5945e357f63f35">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,2346}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.174 ***🔗
REST request:
Code: 204
Req: {<0.75695.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51a9e737ac402fc7">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,2927}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.177 ***🔗
REST request:
Code: 200
Req: {<0.75700.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0d6e1ada20782a5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}]">>,
222,1382}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.183 ***🔗
REST request:
Code: 200
Req: {<0.75702.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"38c1f2b689629ba6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}]">>,
220,6026}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.192 ***🔗
REST request:
Code: 204
Req: {<0.75704.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f8400e9e748a2ea4">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,7395}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.195 ***🔗
REST request:
Code: 200
Req: {<0.75708.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87a70f2655dcf303">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}]">>,
219,1660}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.200 ***🔗
REST request:
Code: 204
Req: {<0.75712.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"051dd354af03b2c4">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,3943}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.202 ***🔗
REST request:
Code: 200
Req: {<0.75716.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba68d513b00d0752">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}]">>,
218,1226}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.205 ***🔗
REST request:
Code: 200
Req: {<0.75718.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"edfb40c7414dbab9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}]">>,
222,1557}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.210 ***🔗
REST request:
Code: 204
Req: {<0.75720.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"15d91c43bff3f7db">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,4070}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.213 ***🔗
REST request:
Code: 200
Req: {<0.75724.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea6cbc52374ba745">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}]">>,
221,1495}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.218 ***🔗
REST request:
Code: 204
Req: {<0.75726.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6940f8f18b75f397">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,3653}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-27 08:58:30.220 ***🔗
REST request:
Code: 200
Req: {<0.75730.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a2b0c7642c0ca76">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2903@domain.example.com\"}]">>,
220,1227}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.222 ***🔗
REST request:
Code: 200
Req: {<0.75732.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b8ade81257416b25">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}]">>,
222,1199}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.229 ***🔗
REST request:
Code: 204
Req: {<0.75734.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0c3d7fd9c829697">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,5567}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.232 ***🔗
REST request:
Code: 200
Req: {<0.75736.0>,
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cdc6cc7ded7d52e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1358}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.235 ***🔗
REST request:
Code: 200
Req: {<0.75738.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d62cfcb81d46d4b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2903@domain.example.com\"}]">>,
222,1344}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.237 ***🔗
REST request:
Code: 204
Req: {<0.75740.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a66520ed7bc4bf86">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>}],
<<>>,80,1927}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com/alice_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.240 ***🔗
REST request:
Code: 200
Req: {<0.75742.0>,
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6fede95d2d88b9d9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 27 Mar 2024 08:58:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1315}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2903@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='push3556cddce2b4296c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='push46349aa2b5c05b8a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='pushbf8131b493235829' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2903@domain.example.com/res1' to='alice_befriend_and_alienate_2903@domain.example.com/res1'/>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='push75cd781163ed5e1d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='push7580fdfbae39ec5e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='push9dcf9211cf8a1bf1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2903@domain.example.com' to='alice_befriend_and_alienate_2903@domain.example.com/res1' id='pushe573a0c7a322053c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2903@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-27 08:58:30.240 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2903@domain.example.com/res1' to='alice_befriend_and_alienate_2903@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='push7b09021359ce4b75' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='push5d67131f9f0f5dfe' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='pushed9b70c81f5fccfb' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com/res1' to='bob_befriend_and_alienate_2903@domain.example.com/res1'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='pushf88f8c35e17991c4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com/res1' to='bob_befriend_and_alienate_2903@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='pushd6f58611249fc164' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='push4a4a5f783ca1dc52' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-27 08:58:35.241 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2903@domain.example.com' to='bob_befriend_and_alienate_2903@domain.example.com/res1' id='pusha8772ea3af243f9f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2903@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-27 08:58:40.243 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-27 08:58:40.243 ***🔗
bob_befriend_and_alienate_2903@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-27 08:58:40.243 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-27 08:58:40.243 ***🔗
alice_befriend_and_alienate_2903@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-27 08:58:40
=== successfully completed test case
=== === Returned value: ok