=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.76429.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@9d860654bb8d.2024-04-22_14.32.29/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.46.00/rest_suite.befriend_and_alienate.221186.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@9d860654bb8d.2024-04-22_14.32.29/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.46.00/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_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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@9d860654bb8d.2024-04-22_14.32.29"
=== Started at 2024-04-22 14:46:01
*** User 2024-04-22 14:46:01.654 ***🔗
alicE_befriend_and_alienate_2806@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 14:46:01.655 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e2f34feeca2e761c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:46:01.655 ***🔗
alicE_befriend_and_alienate_2806@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 14:46:01.655 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODA2AG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:46:01.656 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:46:01.657 ***🔗
alicE_befriend_and_alienate_2806@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 14:46:01.657 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0bf4d50cdc3251b9' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2806@domain.example.com'>
*** User 2024-04-22 14:46:01.657 ***🔗
alicE_befriend_and_alienate_2806@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 14:46:01.657 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 out
<iq type='set' id='22fee2fc1077033d66c79f5d6b1b18f2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:46:01.657 ***🔗
alicE_befriend_and_alienate_2806@domain.example.com/res1 in
<iq id='22fee2fc1077033d66c79f5d6b1b18f2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2806@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:46:01.658 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 out
<iq type='set' id='6e377646a3763d4f414ea3a0fbfaea5d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:46:01.658 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='6e377646a3763d4f414ea3a0fbfaea5d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:46:01.658 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 14:46:01.661 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com/res1' to='alice_befriend_and_alienate_2806@domain.example.com/res1'/>
*** User 2024-04-22 14:46:01.661 ***🔗
bOb_befriend_and_alienate_2806@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 14:46:01.661 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f689e257231b404a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:46:01.662 ***🔗
bOb_befriend_and_alienate_2806@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 14:46:01.662 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjgwNgBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 14:46:01.663 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:46:01.663 ***🔗
bOb_befriend_and_alienate_2806@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 14:46:01.663 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e83cbc875705cced' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2806@domain.example.com'>
*** User 2024-04-22 14:46:01.663 ***🔗
bOb_befriend_and_alienate_2806@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 14:46:01.663 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 out
<iq type='set' id='0819e35657927d55404f455787db565f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:46:01.664 ***🔗
bOb_befriend_and_alienate_2806@domain.example.com/res1 in
<iq id='0819e35657927d55404f455787db565f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2806@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:46:01.664 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 out
<iq type='set' id='77a4aa1ddb0a2cf788f12f58128732c6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:46:01.665 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='77a4aa1ddb0a2cf788f12f58128732c6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:46:01.665 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 14:46:01.668 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2806@domain.example.com/res1' to='bob_befriend_and_alienate_2806@domain.example.com/res1'/>
*** User 2024-04-22 14:46:01.674 ***🔗
REST request:
Code: 200
Req: {<0.76551.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a14a6c1331cba770">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5144}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.678 ***🔗
REST request:
Code: 200
Req: {<0.76557.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"989c93facba2bf46">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2748}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.685 ***🔗
REST request:
Code: 204
Req: {<0.76561.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6392dc7789f28d8">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>}],
<<>>,80,5820}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-22 14:46:01.690 ***🔗
REST request:
Code: 204
Req: {<0.76566.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3cd8a86c6cbfc27">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>}],
<<>>,80,3398}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-22 14:46:01.698 ***🔗
REST request:
Code: 204
Req: {<0.76568.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"34cfa53a419920f1">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>}],
<<>>,80,6346}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-22 14:46:01.703 ***🔗
REST request:
Code: 200
Req: {<0.76570.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6587390cdff4cbc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}]">>,
222,4673}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.723 ***🔗
REST request:
Code: 200
Req: {<0.76572.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"151d158d26d9844f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}]">>,
220,18359}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.832 ***🔗
REST request:
Code: 204
Req: {<0.76574.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f52af4ba08f85339">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>}],
<<>>,80,108096}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-22 14:46:01.836 ***🔗
REST request:
Code: 200
Req: {<0.76576.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c725b69092715fc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}]">>,
219,2024}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.907 ***🔗
REST request:
Code: 204
Req: {<0.76578.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ce8321767dc1e35">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:00 GMT">>}],
<<>>,80,70427}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-22 14:46:01.939 ***🔗
REST request:
Code: 200
Req: {<0.76584.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4ed9cd6a7fd98101">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}]">>,
218,30283}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:01.959 ***🔗
REST request:
Code: 200
Req: {<0.76588.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f02648f39d4756d7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}]">>,
222,19270}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.057 ***🔗
REST request:
Code: 204
Req: {<0.76590.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"48a93ae00a964508">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>}],
<<>>,80,96367}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-22 14:46:02.060 ***🔗
REST request:
Code: 200
Req: {<0.76596.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"38d4fb4f61bc05b5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}]">>,
221,1854}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.119 ***🔗
REST request:
Code: 204
Req: {<0.76598.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b3d2732d505a199">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>}],
<<>>,80,58002}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-22 14:46:02.122 ***🔗
REST request:
Code: 200
Req: {<0.76600.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5593885798c9159a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2806@domain.example.com\"}]">>,
220,2126}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.125 ***🔗
REST request:
Code: 200
Req: {<0.76602.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb86140de272d29d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}]">>,
222,1796}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.220 ***🔗
REST request:
Code: 204
Req: {<0.76604.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"71b0a9526ca85261">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>}],
<<>>,80,93237}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.223 ***🔗
REST request:
Code: 200
Req: {<0.76606.0>,
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"37ad7e9ed799f6bb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1946}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.225 ***🔗
REST request:
Code: 200
Req: {<0.76608.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30944bd7e8ecfbd2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2806@domain.example.com\"}]">>,
222,1479}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.258 ***🔗
REST request:
Code: 204
Req: {<0.76610.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b336d471d75c3e59">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>}],
<<>>,80,32067}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com/alice_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.261 ***🔗
REST request:
Code: 200
Req: {<0.76612.0>,
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30f12eb0b813f8e5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:46:01 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1829}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2806@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='push31c9e17552f9bede' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='pushfd4eb305b8955f7b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='pushe030332f672ddf2b' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2806@domain.example.com/res1' to='alice_befriend_and_alienate_2806@domain.example.com/res1'/>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='pushbefd6a9676efcc05' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='pushaf343b82da29e285' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='push3f5bda2cba2b242f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2806@domain.example.com' to='alice_befriend_and_alienate_2806@domain.example.com/res1' id='push1408347aafb2e8bc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2806@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 14:46:02.262 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2806@domain.example.com/res1' to='alice_befriend_and_alienate_2806@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pushbeeab2455aed3174' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pushff42bb87b694f5ba' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='push36dd639a08d98c91' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com/res1' to='bob_befriend_and_alienate_2806@domain.example.com/res1'/>
*** User 2024-04-22 14:46:07.262 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pusha3dac9fab07c13f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com/res1' to='bob_befriend_and_alienate_2806@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pushd72db664afcc5b43' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pushce55f50373195c93' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-22 14:46:07.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2806@domain.example.com' to='bob_befriend_and_alienate_2806@domain.example.com/res1' id='pushb51ca1fcf67340e9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2806@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 14:46:12.263 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 14:46:12.264 ***🔗
bob_befriend_and_alienate_2806@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 14:46:12.264 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 14:46:12.264 ***🔗
alice_befriend_and_alienate_2806@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:46:12
=== successfully completed test case
=== === Returned value: ok