=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75064.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@47e4d2f96a01.2024-04-10_12.44.45/big_tests.tests.rest_SUITE.logs/run.2024-04-10_12.58.32/rest_suite.befriend_and_alienate.49285.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@47e4d2f96a01.2024-04-10_12.44.45/big_tests.tests.rest_SUITE.logs/run.2024-04-10_12.58.32/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_sic => #{iqdisc => one_queue},
mod_amp => #{},
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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,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@47e4d2f96a01.2024-04-10_12.44.45"
=== Started at 2024-04-10 12:58:33
*** User 2024-04-10 12:58:33.484 ***🔗
alicE_befriend_and_alienate_3006@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-04-10 12:58:33.484 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d83020db914121c7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:58:33.485 ***🔗
alicE_befriend_and_alienate_3006@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-04-10 12:58:33.485 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMDA2AG1hdHlncnlzYQ==</auth>
*** User 2024-04-10 12:58:33.487 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:58:33.487 ***🔗
alicE_befriend_and_alienate_3006@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-04-10 12:58:33.487 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4aa29f5a298e721c' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3006@domain.example.com'>
*** User 2024-04-10 12:58:33.487 ***🔗
alicE_befriend_and_alienate_3006@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-04-10 12:58:33.487 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 out
<iq type='set' id='faa798e515595d539a517c2492025379'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:58:33.488 ***🔗
alicE_befriend_and_alienate_3006@domain.example.com/res1 in
<iq id='faa798e515595d539a517c2492025379' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3006@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:58:33.488 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 out
<iq type='set' id='a75bbdc27a23a583bab2dda1d011d50b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:33.488 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='a75bbdc27a23a583bab2dda1d011d50b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:33.488 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 12:58:33.490 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com/res1' to='alice_befriend_and_alienate_3006@domain.example.com/res1'/>
*** User 2024-04-10 12:58:33.491 ***🔗
bOb_befriend_and_alienate_3006@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-04-10 12:58:33.491 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20eef4bea246c3e8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:58:33.492 ***🔗
bOb_befriend_and_alienate_3006@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-04-10 12:58:33.492 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzAwNgBtYWtyb2xpa2E=</auth>
*** User 2024-04-10 12:58:33.493 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:58:33.493 ***🔗
bOb_befriend_and_alienate_3006@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-04-10 12:58:33.493 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95ad37b6088c7286' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3006@domain.example.com'>
*** User 2024-04-10 12:58:33.494 ***🔗
bOb_befriend_and_alienate_3006@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-04-10 12:58:33.494 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 out
<iq type='set' id='8853092966e05533f962de6c55752bfd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:58:33.494 ***🔗
bOb_befriend_and_alienate_3006@domain.example.com/res1 in
<iq id='8853092966e05533f962de6c55752bfd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3006@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:58:33.494 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 out
<iq type='set' id='e3d4ca95d3119c40b2cf41f285963f88'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:33.495 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='e3d4ca95d3119c40b2cf41f285963f88' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:58:33.495 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 12:58:33.497 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3006@domain.example.com/res1' to='bob_befriend_and_alienate_3006@domain.example.com/res1'/>
*** User 2024-04-10 12:58:33.500 ***🔗
REST request:
Code: 200
Req: {<0.75172.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bdaae1559e42d16b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1941}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.504 ***🔗
REST request:
Code: 200
Req: {<0.75181.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5f8677e6e77bd5e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2481}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.554 ***🔗
REST request:
Code: 204
Req: {<0.75191.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34f690cb5a25b017">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,48708}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.561 ***🔗
REST request:
Code: 204
Req: {<0.75201.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c4cea69bb6ec6fb">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,5917}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.566 ***🔗
REST request:
Code: 204
Req: {<0.75203.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0aec6010844690c8">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,4000}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.576 ***🔗
REST request:
Code: 200
Req: {<0.75205.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b604cfbb10215252">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}]">>,
222,8637}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.579 ***🔗
REST request:
Code: 200
Req: {<0.75207.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"19af284c8175ed03">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}]">>,
220,1939}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.587 ***🔗
REST request:
Code: 204
Req: {<0.75209.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"36509a2cb6de1e3d">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,7034}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.595 ***🔗
REST request:
Code: 200
Req: {<0.75211.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2c0ca1fed0772933">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}]">>,
219,6949}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.606 ***🔗
REST request:
Code: 204
Req: {<0.75215.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9018c62c9106ca65">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,9229}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.610 ***🔗
REST request:
Code: 200
Req: {<0.75221.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8eaa68a593b9392e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}]">>,
218,3501}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.614 ***🔗
REST request:
Code: 200
Req: {<0.75223.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ef5f816cb2b0a24">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}]">>,
222,2183}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.627 ***🔗
REST request:
Code: 204
Req: {<0.75225.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4a8c630a863c00a">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,11705}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.630 ***🔗
REST request:
Code: 200
Req: {<0.75231.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbb9989302075fe3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}]">>,
221,2079}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.660 ***🔗
REST request:
Code: 204
Req: {<0.75233.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c25e36f45b736d2a">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,28211}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-10 12:58:33.664 ***🔗
REST request:
Code: 200
Req: {<0.75235.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cb8cb6f5318e26e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3006@domain.example.com\"}]">>,
220,2331}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.667 ***🔗
REST request:
Code: 200
Req: {<0.75237.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ceb9878c859d5572">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}]">>,
222,2246}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.683 ***🔗
REST request:
Code: 204
Req: {<0.75239.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0ae949e4d0a5cb21">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,14100}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.686 ***🔗
REST request:
Code: 200
Req: {<0.75241.0>,
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bac736a877f635f7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2109}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.689 ***🔗
REST request:
Code: 200
Req: {<0.75243.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ccd37e5a5fef696d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3006@domain.example.com\"}]">>,
222,1757}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.694 ***🔗
REST request:
Code: 204
Req: {<0.75245.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"333f3c41fa45ede2">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>}],
<<>>,80,4358}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com/alice_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.698 ***🔗
REST request:
Code: 200
Req: {<0.75247.0>,
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81900c9fa1e5951b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:58:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2150}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3006@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push3ad87f2b9dc31cf0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push1266b0a02a8b8365' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push9222a453fbe6b508' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3006@domain.example.com/res1' to='alice_befriend_and_alienate_3006@domain.example.com/res1'/>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='pusha84298e03303af7b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push5247d5cd58c3174d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push161d1d35baafad57' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3006@domain.example.com' to='alice_befriend_and_alienate_3006@domain.example.com/res1' id='push0a98312454e47c56' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3006@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 12:58:33.698 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3006@domain.example.com/res1' to='alice_befriend_and_alienate_3006@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='push8d5383fd5b9af15c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='pushb201f8ccade2143d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='pushea027e2d4a95eb38' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com/res1' to='bob_befriend_and_alienate_3006@domain.example.com/res1'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='push23d49d4a35c8a086' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com/res1' to='bob_befriend_and_alienate_3006@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='push2a53811a8e6e9a9e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='push2414b523ee9eea6c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-10 12:58:38.699 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3006@domain.example.com' to='bob_befriend_and_alienate_3006@domain.example.com/res1' id='pushfda903a05354d763' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3006@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 12:58:43.700 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 12:58:43.700 ***🔗
bob_befriend_and_alienate_3006@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-10 12:58:43.701 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 12:58:43.701 ***🔗
alice_befriend_and_alienate_3006@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:58:43
=== successfully completed test case
=== === Returned value: ok