=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75533.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@ea7194d6e7a9.2024-04-15_20.13.03/big_tests.tests.rest_SUITE.logs/run.2024-04-15_20.26.32/rest_suite.befriend_and_alienate.125316.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@ea7194d6e7a9.2024-04-15_20.13.03/big_tests.tests.rest_SUITE.logs/run.2024-04-15_20.26.32/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_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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,buffer_max => 100,ack_freq => 1,
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ea7194d6e7a9.2024-04-15_20.13.03"
=== Started at 2024-04-15 20:26:33
*** User 2024-04-15 20:26:33.527 ***🔗
alicE_befriend_and_alienate_2949@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-15 20:26:33.528 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b72c67f51ae6149' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-15 20:26:33.528 ***🔗
alicE_befriend_and_alienate_2949@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-15 20:26:33.528 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTQ5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-15 20:26:33.529 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 20:26:33.529 ***🔗
alicE_befriend_and_alienate_2949@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-15 20:26:33.529 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a91ed66f2037dc2c' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2949@domain.example.com'>
*** User 2024-04-15 20:26:33.529 ***🔗
alicE_befriend_and_alienate_2949@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-15 20:26:33.530 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 out
<iq type='set' id='410150de5a45f1954422ed823e66e81c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 20:26:33.530 ***🔗
alicE_befriend_and_alienate_2949@domain.example.com/res1 in
<iq id='410150de5a45f1954422ed823e66e81c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2949@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-15 20:26:33.530 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 out
<iq type='set' id='fe02bd8e619656b16a487a8c5f17e107'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 20:26:33.530 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='fe02bd8e619656b16a487a8c5f17e107' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 20:26:33.530 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 out
<presence/>
*** User 2024-04-15 20:26:33.533 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com/res1' to='alice_befriend_and_alienate_2949@domain.example.com/res1'/>
*** User 2024-04-15 20:26:33.533 ***🔗
bOb_befriend_and_alienate_2949@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-15 20:26:33.533 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14367a15b87ae342' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-15 20:26:33.533 ***🔗
bOb_befriend_and_alienate_2949@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-15 20:26:33.533 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk0OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-15 20:26:33.534 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 20:26:33.534 ***🔗
bOb_befriend_and_alienate_2949@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-15 20:26:33.535 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='053c4be7a337ed26' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2949@domain.example.com'>
*** User 2024-04-15 20:26:33.535 ***🔗
bOb_befriend_and_alienate_2949@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-15 20:26:33.535 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 out
<iq type='set' id='2d00e62beabb684b55bfe86ef8cb703f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 20:26:33.535 ***🔗
bOb_befriend_and_alienate_2949@domain.example.com/res1 in
<iq id='2d00e62beabb684b55bfe86ef8cb703f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2949@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-15 20:26:33.535 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 out
<iq type='set' id='5a3956145a7f013040bba53f2946a860'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 20:26:33.535 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='5a3956145a7f013040bba53f2946a860' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 20:26:33.536 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 out
<presence/>
*** User 2024-04-15 20:26:33.537 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2949@domain.example.com/res1' to='bob_befriend_and_alienate_2949@domain.example.com/res1'/>
*** User 2024-04-15 20:26:33.542 ***🔗
REST request:
Code: 200
Req: {<0.75629.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4b3636acc121c208">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4115}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.545 ***🔗
REST request:
Code: 200
Req: {<0.75646.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e22aaa712f5689c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1819}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.548 ***🔗
REST request:
Code: 204
Req: {<0.75656.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b92a3513c289e3a">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,2519}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-15 20:26:33.553 ***🔗
REST request:
Code: 204
Req: {<0.75667.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6921b8d5cc61d23f">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,3838}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-15 20:26:33.556 ***🔗
REST request:
Code: 204
Req: {<0.75672.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88c14d4258487d9c">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,2416}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-15 20:26:33.558 ***🔗
REST request:
Code: 200
Req: {<0.75674.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d6e63fc134c93bd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}]">>,
222,1082}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.560 ***🔗
REST request:
Code: 200
Req: {<0.75676.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be43d53cc6ba8abc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}]">>,
220,1194}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.608 ***🔗
REST request:
Code: 204
Req: {<0.75678.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9c645e6e0364b61">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,46363}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-15 20:26:33.610 ***🔗
REST request:
Code: 200
Req: {<0.75680.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4498e92255709040">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}]">>,
219,1400}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.623 ***🔗
REST request:
Code: 204
Req: {<0.75682.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"65c59a1fee5ba166">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,11439}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-15 20:26:33.625 ***🔗
REST request:
Code: 200
Req: {<0.75686.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7061e57a71bab0d0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}]">>,
218,1225}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.627 ***🔗
REST request:
Code: 200
Req: {<0.75690.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5e91e348c3e5d93">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}]">>,
222,1257}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.640 ***🔗
REST request:
Code: 204
Req: {<0.75694.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc4acdc05adcc68b">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,11764}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-15 20:26:33.642 ***🔗
REST request:
Code: 200
Req: {<0.75696.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"93cdd5c7dd8d0c79">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}]">>,
221,1451}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.653 ***🔗
REST request:
Code: 204
Req: {<0.75698.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c929d5f49103f356">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,9380}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-15 20:26:33.655 ***🔗
REST request:
Code: 200
Req: {<0.75702.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"26eecc1fcfec1881">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2949@domain.example.com\"}]">>,
220,1448}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.657 ***🔗
REST request:
Code: 200
Req: {<0.75706.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"60cd84907febbec4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}]">>,
222,1026}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.670 ***🔗
REST request:
Code: 204
Req: {<0.75708.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3577c54d9bce690f">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,11699}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-15 20:26:33.672 ***🔗
REST request:
Code: 200
Req: {<0.75710.0>,
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"126c10d23f29b7c7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1013}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.673 ***🔗
REST request:
Code: 200
Req: {<0.75712.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bcf069c94bc2aad4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2949@domain.example.com\"}]">>,
222,1005}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.676 ***🔗
REST request:
Code: 204
Req: {<0.75714.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e679111d3ed34ed8">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>}],
<<>>,80,1864}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com/alice_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-15 20:26:33.678 ***🔗
REST request:
Code: 200
Req: {<0.75716.0>,
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eca0391c06456d44">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 20:26:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1115}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2949@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push5caaecf69c16dca0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push0933e742d67b9ebb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push7426e7c68ef82169' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2949@domain.example.com/res1' to='alice_befriend_and_alienate_2949@domain.example.com/res1'/>
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push17c1dadba3851395' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.678 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-15 20:26:33.679 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push13959e5591997199' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.679 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-15 20:26:33.679 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='pushcf311570c962ef05' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.679 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2949@domain.example.com' to='alice_befriend_and_alienate_2949@domain.example.com/res1' id='push32c6caa8b2249fee' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2949@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-15 20:26:33.679 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2949@domain.example.com/res1' to='alice_befriend_and_alienate_2949@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push293a1433d8138623' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push0dddcaee449ee8f2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push560854482520dab7' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com/res1' to='bob_befriend_and_alienate_2949@domain.example.com/res1'/>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='pushb6939462b1826686' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-15 20:26:38.680 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com/res1' to='bob_befriend_and_alienate_2949@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-15 20:26:38.681 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push5850eef79b6278dd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.681 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-15 20:26:38.681 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push66508664809ec7cd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 20:26:38.681 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-15 20:26:38.681 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2949@domain.example.com' to='bob_befriend_and_alienate_2949@domain.example.com/res1' id='push147cb88b53ad99f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2949@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-15 20:26:43.682 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-15 20:26:43.682 ***🔗
bob_befriend_and_alienate_2949@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-15 20:26:43.682 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-15 20:26:43.683 ***🔗
alice_befriend_and_alienate_2949@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-15 20:26:43
=== successfully completed test case
=== === Returned value: ok