=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.74920.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.16/rest_suite.befriend_and_alienate.112772.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.16/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_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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@699c7e574a5d.2024-04-26_13.09.59"
=== Started at 2024-04-26 13:22:17
*** User 2024-04-26 13:22:17.641 ***🔗
alicE_befriend_and_alienate_2782@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-26 13:22:17.642 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fceb1bde28e3e4b1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:17.642 ***🔗
alicE_befriend_and_alienate_2782@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-26 13:22:17.642 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzgyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@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-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d114d10c17a0ec2a' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2782@domain.example.com'>
*** User 2024-04-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@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-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 out
<iq type='set' id='4ba2776f8aabaf864d07fcaa0ebf13b3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:17.643 ***🔗
alicE_befriend_and_alienate_2782@domain.example.com/res1 in
<iq id='4ba2776f8aabaf864d07fcaa0ebf13b3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2782@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:17.643 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 out
<iq type='set' id='a66b3ca42cec8f05eb5b3fa42452276a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:17.644 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='a66b3ca42cec8f05eb5b3fa42452276a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:17.644 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:17.646 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com/res1' to='alice_befriend_and_alienate_2782@domain.example.com/res1'/>
*** User 2024-04-26 13:22:17.646 ***🔗
bOb_befriend_and_alienate_2782@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-26 13:22:17.647 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a933294a7a0a7d5b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:17.647 ***🔗
bOb_befriend_and_alienate_2782@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-26 13:22:17.647 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjc4MgBtYWtyb2xpa2E=</auth>
*** User 2024-04-26 13:22:17.647 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:17.648 ***🔗
bOb_befriend_and_alienate_2782@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-26 13:22:17.648 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d6e374835188e8a' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2782@domain.example.com'>
*** User 2024-04-26 13:22:17.648 ***🔗
bOb_befriend_and_alienate_2782@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-26 13:22:17.648 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 out
<iq type='set' id='f5b10b2d79b7cf3e936a35fe08865638'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:17.648 ***🔗
bOb_befriend_and_alienate_2782@domain.example.com/res1 in
<iq id='f5b10b2d79b7cf3e936a35fe08865638' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2782@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:17.648 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 out
<iq type='set' id='644bf9ff2918b52fd071590999dd52ce'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:17.649 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='644bf9ff2918b52fd071590999dd52ce' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:17.649 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:17.651 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2782@domain.example.com/res1' to='bob_befriend_and_alienate_2782@domain.example.com/res1'/>
*** User 2024-04-26 13:22:17.657 ***🔗
REST request:
Code: 200
Req: {<0.75031.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f3a5a2b080f97ff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5412}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.659 ***🔗
REST request:
Code: 200
Req: {<0.75047.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d5349bfab45be3ee">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1395}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.663 ***🔗
REST request:
Code: 204
Req: {<0.75052.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"436299cb5356dd38">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,3566}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:22:17.667 ***🔗
REST request:
Code: 204
Req: {<0.75054.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"833f1879734e8df7">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,2568}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:22:17.670 ***🔗
REST request:
Code: 204
Req: {<0.75059.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"053ba3c126338071">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,2723}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-26 13:22:17.672 ***🔗
REST request:
Code: 200
Req: {<0.75061.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34e5213b5592b056">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}]">>,
222,1407}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.690 ***🔗
REST request:
Code: 200
Req: {<0.75063.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c49d03382846c43f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}]">>,
220,1562}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.696 ***🔗
REST request:
Code: 204
Req: {<0.75065.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be7babc40dce3276">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,4514}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-26 13:22:17.698 ***🔗
REST request:
Code: 200
Req: {<0.75067.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dec262547dbe5ac8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}]">>,
219,1343}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.703 ***🔗
REST request:
Code: 204
Req: {<0.75071.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"211ab6afa0881208">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,4320}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-26 13:22:17.705 ***🔗
REST request:
Code: 200
Req: {<0.75077.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"75c5e726d5bb788c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}]">>,
218,1374}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.707 ***🔗
REST request:
Code: 200
Req: {<0.75079.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"47e3a0663b656843">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}]">>,
222,1242}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.712 ***🔗
REST request:
Code: 204
Req: {<0.75081.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"12a159094c1973c2">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,4180}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-26 13:22:17.714 ***🔗
REST request:
Code: 200
Req: {<0.75087.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e782b3d5d810e62c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}]">>,
221,1265}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.719 ***🔗
REST request:
Code: 204
Req: {<0.75089.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"75583a8cfc3b5fe5">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,3962}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-26 13:22:17.721 ***🔗
REST request:
Code: 200
Req: {<0.75091.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"574fce09a548f55a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2782@domain.example.com\"}]">>,
220,1591}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.723 ***🔗
REST request:
Code: 200
Req: {<0.75093.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbea540ae17e9e72">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}]">>,
222,1150}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.731 ***🔗
REST request:
Code: 204
Req: {<0.75095.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb618657f668654d">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,7059}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.733 ***🔗
REST request:
Code: 200
Req: {<0.75097.0>,
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"31414d72a8d6bc74">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1208}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.735 ***🔗
REST request:
Code: 200
Req: {<0.75099.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f580c644c94d6cc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2782@domain.example.com\"}]">>,
222,1064}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.738 ***🔗
REST request:
Code: 204
Req: {<0.75101.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7af7f400b19d2dd">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>}],
<<>>,80,2175}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com/alice_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.740 ***🔗
REST request:
Code: 200
Req: {<0.75103.0>,
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"94517e324167ab46">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1347}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2782@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='push1b37caf1e154fc75' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='push663d3d8832c345fb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='pushebe58cc6f79c580d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2782@domain.example.com/res1' to='alice_befriend_and_alienate_2782@domain.example.com/res1'/>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='pushb2aa20d39f590e4e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='push321895bbbf05a7d0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='pusha42489948f17b422' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2782@domain.example.com' to='alice_befriend_and_alienate_2782@domain.example.com/res1' id='push3f3d2dd8573d473c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2782@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 13:22:17.740 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2782@domain.example.com/res1' to='alice_befriend_and_alienate_2782@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='pusha669c66711ced9e7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='push85bdd75fc8616de1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='pushd157f9749f94fe32' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com/res1' to='bob_befriend_and_alienate_2782@domain.example.com/res1'/>
*** User 2024-04-26 13:22:22.741 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='push5db22dd29eb8baae' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com/res1' to='bob_befriend_and_alienate_2782@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='pushd1a4403e7bcf2d4c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='push5707401cfad44241' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-26 13:22:22.742 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2782@domain.example.com' to='bob_befriend_and_alienate_2782@domain.example.com/res1' id='push2b9f3aa83be95340' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2782@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 13:22:27.743 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:27.744 ***🔗
bob_befriend_and_alienate_2782@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-26 13:22:27.744 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:27.744 ***🔗
alice_befriend_and_alienate_2782@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:22:27
=== successfully completed test case
=== === Returned value: ok