=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.71668.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_SUITE.logs/run.2024-01-14_19.50.38/rest_suite.befriend_and_alienate.196354.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@eebaa68b7995.2024-01-14_19.39.51/big_tests.tests.rest_SUITE.logs/run.2024-01-14_19.50.38/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_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@eebaa68b7995.2024-01-14_19.39.51"
=== Started at 2024-01-14 19:50:38
*** User 2024-01-14 19:50:38.767 ***🔗
alicE_befriend_and_alienate_2587@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-01-14 19:50:38.768 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b8fcd6bfd0d4e22' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:38.768 ***🔗
alicE_befriend_and_alienate_2587@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-01-14 19:50:38.768 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNTg3AG1hdHlncnlzYQ==</auth>
*** User 2024-01-14 19:50:38.770 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:38.770 ***🔗
alicE_befriend_and_alienate_2587@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-01-14 19:50:38.770 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97fc8d90fb2a6ce4' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2587@domain.example.com'>
*** User 2024-01-14 19:50:38.770 ***🔗
alicE_befriend_and_alienate_2587@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-01-14 19:50:38.770 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 out
<iq type='set' id='37b58b772e195302b988678ed9b52106'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:38.771 ***🔗
alicE_befriend_and_alienate_2587@domain.example.com/res1 in
<iq id='37b58b772e195302b988678ed9b52106' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2587@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:38.771 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 out
<iq type='set' id='5278194e9d46bdf9c3abd01b63624987'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:38.771 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='5278194e9d46bdf9c3abd01b63624987' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:38.771 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:38.774 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com/res1' to='alice_befriend_and_alienate_2587@domain.example.com/res1'/>
*** User 2024-01-14 19:50:38.774 ***🔗
bOb_befriend_and_alienate_2587@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-01-14 19:50:38.774 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='289bc399afaa86fb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-01-14 19:50:38.774 ***🔗
bOb_befriend_and_alienate_2587@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-01-14 19:50:38.774 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjU4NwBtYWtyb2xpa2E=</auth>
*** User 2024-01-14 19:50:38.775 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-14 19:50:38.775 ***🔗
bOb_befriend_and_alienate_2587@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-01-14 19:50:38.775 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f532e65b2115fa02' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2587@domain.example.com'>
*** User 2024-01-14 19:50:38.776 ***🔗
bOb_befriend_and_alienate_2587@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-01-14 19:50:38.776 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 out
<iq type='set' id='1b84365599625306a6b50f6142b342dc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-14 19:50:38.776 ***🔗
bOb_befriend_and_alienate_2587@domain.example.com/res1 in
<iq id='1b84365599625306a6b50f6142b342dc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2587@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-01-14 19:50:38.776 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 out
<iq type='set' id='343f65ad7f38f8129767b87c0e38e744'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:38.777 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='343f65ad7f38f8129767b87c0e38e744' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-14 19:50:38.777 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 out
<presence/>
*** User 2024-01-14 19:50:38.778 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2587@domain.example.com/res1' to='bob_befriend_and_alienate_2587@domain.example.com/res1'/>
*** User 2024-01-14 19:50:38.780 ***🔗
REST request:
Code: 200
Req: {<0.71780.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6178050ccfef3364">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1444}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.782 ***🔗
REST request:
Code: 200
Req: {<0.71789.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8b5be0fd9dda85cc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1145}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.786 ***🔗
REST request:
Code: 204
Req: {<0.71795.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fc2703c542b567cb">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,2563}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.789 ***🔗
REST request:
Code: 204
Req: {<0.71804.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa887859a85e70e1">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,2709}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.793 ***🔗
REST request:
Code: 204
Req: {<0.71807.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eff05056ff5f2b38">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,2407}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.795 ***🔗
REST request:
Code: 200
Req: {<0.71809.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6075f08dacd4aec4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}]">>,
222,1208}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.797 ***🔗
REST request:
Code: 200
Req: {<0.71811.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"55e3a41f3c09d921">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}]">>,
220,1370}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.801 ***🔗
REST request:
Code: 204
Req: {<0.71813.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b610f2d079d5c16c">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,3718}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.803 ***🔗
REST request:
Code: 200
Req: {<0.71815.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"909c88cb5499f139">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}]">>,
219,1120}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.808 ***🔗
REST request:
Code: 204
Req: {<0.71817.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a20f8e7898220b10">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,3813}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.810 ***🔗
REST request:
Code: 200
Req: {<0.71821.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2bda4be9112d7a69">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}]">>,
218,1206}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.852 ***🔗
REST request:
Code: 200
Req: {<0.71825.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3595fc2fe67f44c1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}]">>,
222,41490}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.858 ***🔗
REST request:
Code: 204
Req: {<0.71829.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2e66dcdcc8567b3">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,4982}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.861 ***🔗
REST request:
Code: 200
Req: {<0.71831.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a55f6dbe3379a1b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}]">>,
221,2361}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.866 ***🔗
REST request:
Code: 204
Req: {<0.71833.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a72286c1dd1b181">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,4028}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-01-14 19:50:38.868 ***🔗
REST request:
Code: 200
Req: {<0.71839.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9217f5e3275a35a5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2587@domain.example.com\"}]">>,
220,1496}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.870 ***🔗
REST request:
Code: 200
Req: {<0.71841.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"96aa4406b4441f3e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}]">>,
222,1328}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.878 ***🔗
REST request:
Code: 204
Req: {<0.71843.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"890a2c5487f433d5">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,6875}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.880 ***🔗
REST request:
Code: 200
Req: {<0.71845.0>,
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59b3158b03fa59ee">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1160}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.882 ***🔗
REST request:
Code: 200
Req: {<0.71847.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bf669145af1cc1a0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2587@domain.example.com\"}]">>,
222,1203}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.885 ***🔗
REST request:
Code: 204
Req: {<0.71849.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a57bd9d799667fb7">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>}],
<<>>,80,2176}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com/alice_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.887 ***🔗
REST request:
Code: 200
Req: {<0.71851.0>,
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"32132035181836cf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Sun, 14 Jan 2024 19:50:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1236}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2587@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push6160b1b787fc44d0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push25879d16a181312c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push59a27810efa224ac' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2587@domain.example.com/res1' to='alice_befriend_and_alienate_2587@domain.example.com/res1'/>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push870cef059aab11a0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' type='subscribed'/>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push219a827cf05e607a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' type='subscribe'/>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push93aae34eb829af62' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2587@domain.example.com' to='alice_befriend_and_alienate_2587@domain.example.com/res1' id='push082bc1acbb92b3d0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:38.887 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2587@domain.example.com/res1' to='alice_befriend_and_alienate_2587@domain.example.com/res1' type='unavailable'/>
*** User 2024-01-14 19:50:43.888 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='pusha7180a1795414bc9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.888 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' type='subscribe'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='push90b62dc1a0cda0da' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='pushf4d3d9f73ed53ab1' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com/res1' to='bob_befriend_and_alienate_2587@domain.example.com/res1'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='push6f27352563bab4da' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' type='subscribed'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com/res1' to='bob_befriend_and_alienate_2587@domain.example.com/res1' type='unavailable'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='push7ce7f149da29bbc2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='push67593859b2c9cdf1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-01-14 19:50:43.889 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2587@domain.example.com' to='bob_befriend_and_alienate_2587@domain.example.com/res1' id='push80070d1cd2146fc6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2587@domain.example.com'/>
</query>
</iq>
*** User 2024-01-14 19:50:48.891 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:48.891 ***🔗
bob_befriend_and_alienate_2587@domain.example.com/res1 in
</stream:stream>
*** User 2024-01-14 19:50:48.891 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 out
</stream:stream>
*** User 2024-01-14 19:50:48.891 ***🔗
alice_befriend_and_alienate_2587@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-01-14 19:50:48
=== successfully completed test case
=== === Returned value: ok