=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.74303.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@f94a1e7ac885.2024-03-11_11.28.43/big_tests.tests.rest_SUITE.logs/run.2024-03-11_11.40.51/rest_suite.befriend_and_alienate.212866.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@f94a1e7ac885.2024-03-11_11.28.43/big_tests.tests.rest_SUITE.logs/run.2024-03-11_11.40.51/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@f94a1e7ac885.2024-03-11_11.28.43"
=== Started at 2024-03-11 11:40:52
*** User 2024-03-11 11:40:52.268 ***🔗
alicE_befriend_and_alienate_2737@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-03-11 11:40:52.268 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86565269639e3ad4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:40:52.268 ***🔗
alicE_befriend_and_alienate_2737@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-03-11 11:40:52.268 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzM3AG1hdHlncnlzYQ==</auth>
*** User 2024-03-11 11:40:52.270 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:40:52.270 ***🔗
alicE_befriend_and_alienate_2737@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-03-11 11:40:52.270 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='842a1c896951989f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2737@domain.example.com'>
*** User 2024-03-11 11:40:52.271 ***🔗
alicE_befriend_and_alienate_2737@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-03-11 11:40:52.271 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 out
<iq type='set' id='628dd23f663831502e76ec47e69fa3c3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:40:52.271 ***🔗
alicE_befriend_and_alienate_2737@domain.example.com/res1 in
<iq id='628dd23f663831502e76ec47e69fa3c3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2737@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:40:52.272 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 out
<iq type='set' id='e65e8a7b45517f1e5eb571565869ec4d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:40:52.273 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='e65e8a7b45517f1e5eb571565869ec4d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:40:52.273 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 out
<presence/>
*** User 2024-03-11 11:40:52.276 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com/res1' to='alice_befriend_and_alienate_2737@domain.example.com/res1'/>
*** User 2024-03-11 11:40:52.277 ***🔗
bOb_befriend_and_alienate_2737@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-03-11 11:40:52.277 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b12d9c037b044b5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-11 11:40:52.278 ***🔗
bOb_befriend_and_alienate_2737@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-03-11 11:40:52.278 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjczNwBtYWtyb2xpa2E=</auth>
*** User 2024-03-11 11:40:52.279 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 11:40:52.279 ***🔗
bOb_befriend_and_alienate_2737@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-03-11 11:40:52.279 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='032f661658a52ffb' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2737@domain.example.com'>
*** User 2024-03-11 11:40:52.279 ***🔗
bOb_befriend_and_alienate_2737@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-03-11 11:40:52.280 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 out
<iq type='set' id='6c7680ae25f72b81f9281d37ec8c7012'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 11:40:52.280 ***🔗
bOb_befriend_and_alienate_2737@domain.example.com/res1 in
<iq id='6c7680ae25f72b81f9281d37ec8c7012' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2737@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-11 11:40:52.280 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 out
<iq type='set' id='c1761a800a1dca63b726678b228e8d93'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:40:52.281 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='c1761a800a1dca63b726678b228e8d93' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 11:40:52.281 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 out
<presence/>
*** User 2024-03-11 11:40:52.283 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2737@domain.example.com/res1' to='bob_befriend_and_alienate_2737@domain.example.com/res1'/>
*** User 2024-03-11 11:40:52.287 ***🔗
REST request:
Code: 200
Req: {<0.74417.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30024dbe69bcc791">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2605}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.291 ***🔗
REST request:
Code: 200
Req: {<0.74424.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d973ff517c4f720c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2354}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.298 ***🔗
REST request:
Code: 204
Req: {<0.74430.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7edcfdd90cd2c9be">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,6602}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-11 11:40:52.306 ***🔗
REST request:
Code: 204
Req: {<0.74440.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7077cf9238378954">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,6164}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-11 11:40:52.312 ***🔗
REST request:
Code: 204
Req: {<0.74442.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8deb887aa0433c1f">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,4721}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}">>,
return_headers => true}
*** User 2024-03-11 11:40:52.315 ***🔗
REST request:
Code: 200
Req: {<0.74444.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a439ddb39ca77805">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}]">>,
222,2185}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.319 ***🔗
REST request:
Code: 200
Req: {<0.74446.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c316369808e55f7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}]">>,
220,1923}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.389 ***🔗
REST request:
Code: 204
Req: {<0.74448.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"97a3bfa53bcceae9">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,68569}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-03-11 11:40:52.394 ***🔗
REST request:
Code: 200
Req: {<0.74450.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"73509f23d8b66a72">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}]">>,
219,2437}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.405 ***🔗
REST request:
Code: 204
Req: {<0.74452.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"32a96af79eb6c32c">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,10403}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-03-11 11:40:52.408 ***🔗
REST request:
Code: 200
Req: {<0.74456.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0797c4a8351779bd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}]">>,
218,1901}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.411 ***🔗
REST request:
Code: 200
Req: {<0.74460.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c5e16d8c9af4798">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}]">>,
222,1762}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.423 ***🔗
REST request:
Code: 204
Req: {<0.74464.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c9cfc7c4e70fab20">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,10430}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-03-11 11:40:52.426 ***🔗
REST request:
Code: 200
Req: {<0.74466.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1e30d54a1cffb99">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}]">>,
221,1866}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.434 ***🔗
REST request:
Code: 204
Req: {<0.74468.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4b6a0c1fa6df29c6">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,6917}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"PUT">>,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-03-11 11:40:52.437 ***🔗
REST request:
Code: 200
Req: {<0.74472.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2c77199e5ee3aa6c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2737@domain.example.com\"}]">>,
220,1819}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.440 ***🔗
REST request:
Code: 200
Req: {<0.74476.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5742adb388d140cb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}]">>,
222,1661}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.455 ***🔗
REST request:
Code: 204
Req: {<0.74478.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d939a8c8458e7a8">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,14200}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"DELETE">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.459 ***🔗
REST request:
Code: 200
Req: {<0.74480.0>,
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fb8120e6531f5ab0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2219}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.462 ***🔗
REST request:
Code: 200
Req: {<0.74482.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"917d8024ecf83f92">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2737@domain.example.com\"}]">>,
222,1669}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.467 ***🔗
REST request:
Code: 204
Req: {<0.74484.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b6be6446b659f5df">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>}],
<<>>,80,4268}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com/alice_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"DELETE">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.471 ***🔗
REST request:
Code: 200
Req: {<0.74486.0>,
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0d3ff2f279a36f4f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 11:40:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1970}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2737@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='pushdb86303c21e93209' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='pushcd59970705a55b0f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='push4f7a2c97aeb77791' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2737@domain.example.com/res1' to='alice_befriend_and_alienate_2737@domain.example.com/res1'/>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='push067d1305a89d93f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='push75b5104a096ca3cf' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='pushc95d06c4820eb640' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2737@domain.example.com' to='alice_befriend_and_alienate_2737@domain.example.com/res1' id='pushd9ac53eb3506d2f1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2737@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-11 11:40:52.471 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2737@domain.example.com/res1' to='alice_befriend_and_alienate_2737@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='pushb356ae8ac4ad4fb8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='push5fa66578180533ab' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='push7d155d94cac687a7' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com/res1' to='bob_befriend_and_alienate_2737@domain.example.com/res1'/>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='push15dab743bac4430c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-11 11:40:57.472 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com/res1' to='bob_befriend_and_alienate_2737@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-11 11:40:57.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='pushc86f87b8e1b15536' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-11 11:40:57.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='push97b9d357c762af54' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-11 11:40:57.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-11 11:40:57.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2737@domain.example.com' to='bob_befriend_and_alienate_2737@domain.example.com/res1' id='pushb749f1aa75818b87' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2737@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-11 11:41:02.473 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-11 11:41:02.474 ***🔗
bob_befriend_and_alienate_2737@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-11 11:41:02.474 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-11 11:41:02.474 ***🔗
alice_befriend_and_alienate_2737@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-11 11:41:02
=== successfully completed test case
=== === Returned value: ok