=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.77142.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d23c82f592e5.2024-04-22_14.49.33/big_tests.tests.rest_SUITE.logs/run.2024-04-22_15.03.04/rest_suite.befriend_and_alienate.117252.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@d23c82f592e5.2024-04-22_14.49.33/big_tests.tests.rest_SUITE.logs/run.2024-04-22_15.03.04/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_disco =>
#{server_info => [],iqdisc => one_queue,extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@d23c82f592e5.2024-04-22_14.49.33"
=== Started at 2024-04-22 15:03:05
*** User 2024-04-22 15:03:05.720 ***🔗
alicE_befriend_and_alienate_2964@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-22 15:03:05.720 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f83aecddd13ad410' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:03:05.720 ***🔗
alicE_befriend_and_alienate_2964@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-22 15:03:05.720 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTY0AG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 15:03:05.721 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:03:05.721 ***🔗
alicE_befriend_and_alienate_2964@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-22 15:03:05.721 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5f16585823a08a2' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2964@domain.example.com'>
*** User 2024-04-22 15:03:05.722 ***🔗
alicE_befriend_and_alienate_2964@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-22 15:03:05.722 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 out
<iq type='set' id='a5acf3af8b5b9c564f84f64b7728a1e6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:03:05.722 ***🔗
alicE_befriend_and_alienate_2964@domain.example.com/res1 in
<iq id='a5acf3af8b5b9c564f84f64b7728a1e6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2964@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:03:05.722 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 out
<iq type='set' id='70e04403aab733c94c7374bb0521406d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:03:05.723 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='70e04403aab733c94c7374bb0521406d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:03:05.723 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:03:05.724 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com/res1' to='alice_befriend_and_alienate_2964@domain.example.com/res1'/>
*** User 2024-04-22 15:03:05.725 ***🔗
bOb_befriend_and_alienate_2964@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-22 15:03:05.725 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f957cad5518514e5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:03:05.726 ***🔗
bOb_befriend_and_alienate_2964@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-22 15:03:05.726 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk2NABtYWtyb2xpa2E=</auth>
*** User 2024-04-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@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-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9aff07aa1ea85bc5' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2964@domain.example.com'>
*** User 2024-04-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@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-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 out
<iq type='set' id='5d9407d79e0cabd3b7c2406a25e5a89d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:03:05.727 ***🔗
bOb_befriend_and_alienate_2964@domain.example.com/res1 in
<iq id='5d9407d79e0cabd3b7c2406a25e5a89d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2964@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:03:05.728 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 out
<iq type='set' id='4fd6a881ed3dcbf66baa665472d7b99e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:03:05.728 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='4fd6a881ed3dcbf66baa665472d7b99e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:03:05.728 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:03:05.729 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2964@domain.example.com/res1' to='bob_befriend_and_alienate_2964@domain.example.com/res1'/>
*** User 2024-04-22 15:03:05.732 ***🔗
REST request:
Code: 200
Req: {<0.77255.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fe4c0945bfb05d35">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1659}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.734 ***🔗
REST request:
Code: 200
Req: {<0.77263.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"986eadc9d1a5663c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1298}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.739 ***🔗
REST request:
Code: 204
Req: {<0.77269.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"22b902546583c333">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,3607}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.743 ***🔗
REST request:
Code: 204
Req: {<0.77279.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89a1b0fb83205d06">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,2666}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.747 ***🔗
REST request:
Code: 204
Req: {<0.77281.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab8520bc2086de01">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,3093}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.749 ***🔗
REST request:
Code: 200
Req: {<0.77283.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"781d8136738c4daf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}]">>,
222,1128}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.752 ***🔗
REST request:
Code: 200
Req: {<0.77285.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f37cdcedb6a6fdf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}]">>,
220,1317}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.756 ***🔗
REST request:
Code: 204
Req: {<0.77287.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6bb59c06a82d89c5">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,3847}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.759 ***🔗
REST request:
Code: 200
Req: {<0.77289.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98060bb137a91f39">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}]">>,
219,1574}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.764 ***🔗
REST request:
Code: 204
Req: {<0.77293.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3a9ce57daf32325f">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,3579}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.811 ***🔗
REST request:
Code: 200
Req: {<0.77299.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ea5af29a10cab357">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}]">>,
218,1461}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.815 ***🔗
REST request:
Code: 200
Req: {<0.77301.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d7dbeceadca48e3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}]">>,
222,2485}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.821 ***🔗
REST request:
Code: 204
Req: {<0.77303.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"621772f9cb436ae7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,4244}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.824 ***🔗
REST request:
Code: 200
Req: {<0.77307.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba4d45ff5535b61c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}]">>,
221,1421}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.830 ***🔗
REST request:
Code: 204
Req: {<0.77311.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"47bc2eb797e12394">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,4283}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 15:03:05.832 ***🔗
REST request:
Code: 200
Req: {<0.77313.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cefd474340738dc3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2964@domain.example.com\"}]">>,
220,1516}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.835 ***🔗
REST request:
Code: 200
Req: {<0.77315.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b52b13a56b24764e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}]">>,
222,1517}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.843 ***🔗
REST request:
Code: 204
Req: {<0.77317.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d5c721bf8ae7ee53">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,6787}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.845 ***🔗
REST request:
Code: 200
Req: {<0.77319.0>,
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"65564ec2b2ec6f8e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1314}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.848 ***🔗
REST request:
Code: 200
Req: {<0.77321.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"20938dd5e4973633">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2964@domain.example.com\"}]">>,
222,1348}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.850 ***🔗
REST request:
Code: 204
Req: {<0.77323.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d00477d21b407c8f">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>}],
<<>>,80,1780}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com/alice_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.853 ***🔗
REST request:
Code: 200
Req: {<0.77325.0>,
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a952697f7747655">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:03:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1398}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2964@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='push313a4f9a65b8d552' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='push2ed06f611975a467' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='pusha7ea19defa23a5bd' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2964@domain.example.com/res1' to='alice_befriend_and_alienate_2964@domain.example.com/res1'/>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='push311e5fd0de553a79' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='pusheb4227ecec714e37' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='push17180c05136fc872' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2964@domain.example.com' to='alice_befriend_and_alienate_2964@domain.example.com/res1' id='push8d6727926a2b6e4a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2964@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 15:03:05.853 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2964@domain.example.com/res1' to='alice_befriend_and_alienate_2964@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='push0639da06aab6dfdc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='push8acbd45f2ce48054' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='pushfc0153f35337d28a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com/res1' to='bob_befriend_and_alienate_2964@domain.example.com/res1'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='pusha960dcb9e7ea5e38' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com/res1' to='bob_befriend_and_alienate_2964@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='push5d4c59fa7a5efef4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='push51a829b06761f3b4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-22 15:03:10.854 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2964@domain.example.com' to='bob_befriend_and_alienate_2964@domain.example.com/res1' id='push0f136858b176a111' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2964@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 15:03:15.855 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:03:15.856 ***🔗
bob_befriend_and_alienate_2964@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 15:03:15.856 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:03:15.856 ***🔗
alice_befriend_and_alienate_2964@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:03:15
=== successfully completed test case
=== === Returned value: ok