=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.83479.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.48.57/rest_suite.befriend_and_alienate.204418.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.48.57/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_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_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,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@079a843f8d8b.2023-11-16_09.33.39"
=== Started at 2023-11-16 09:48:58
*** User 2023-11-16 09:48:58.362 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:48:58.363 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b25cd496629f23b1' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:48:58.363 ***🔗
alicE_befriend_and_alienate_3061@localhost/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 2023-11-16 09:48:58.363 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMDYxAG1hdHlncnlzYQ==</auth>
*** User 2023-11-16 09:48:58.364 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:48:58.364 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:48:58.364 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c75a1423032dd78f' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3061@localhost'>
*** User 2023-11-16 09:48:58.364 ***🔗
alicE_befriend_and_alienate_3061@localhost/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 2023-11-16 09:48:58.365 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 out
<iq type='set' id='6d07ff662012b2609f501c0c7cb03d27'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:48:58.365 ***🔗
alicE_befriend_and_alienate_3061@localhost/res1 in
<iq id='6d07ff662012b2609f501c0c7cb03d27' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3061@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:48:58.365 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 out
<iq type='set' id='d913e07a343194e47c26f259486ac859'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:48:58.366 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='d913e07a343194e47c26f259486ac859' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:48:58.366 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 out
<presence/>
*** User 2023-11-16 09:48:58.367 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost/res1' to='alice_befriend_and_alienate_3061@localhost/res1'/>
*** User 2023-11-16 09:48:58.368 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:48:58.368 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f39256b5420308ff' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:48:58.368 ***🔗
bOb_befriend_and_alienate_3061@localhost/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 2023-11-16 09:48:58.368 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzA2MQBtYWtyb2xpa2E=</auth>
*** User 2023-11-16 09:48:58.369 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:48:58.369 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:48:58.370 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb77250c1d3b5857' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3061@localhost'>
*** User 2023-11-16 09:48:58.370 ***🔗
bOb_befriend_and_alienate_3061@localhost/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 2023-11-16 09:48:58.370 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 out
<iq type='set' id='8ffa897b2616f12c0b86138db72270a7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:48:58.370 ***🔗
bOb_befriend_and_alienate_3061@localhost/res1 in
<iq id='8ffa897b2616f12c0b86138db72270a7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3061@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:48:58.370 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 out
<iq type='set' id='fdbfda3a1638fda70ab4665a9f752963'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:48:58.370 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='fdbfda3a1638fda70ab4665a9f752963' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:48:58.371 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 out
<presence/>
*** User 2023-11-16 09:48:58.372 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='bob_befriend_and_alienate_3061@localhost/res1' to='bob_befriend_and_alienate_3061@localhost/res1'/>
*** User 2023-11-16 09:48:58.374 ***🔗
REST request:
Code: 200
Req: {<0.83587.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f6f91f44fe865b07">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1165}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.377 ***🔗
REST request:
Code: 200
Req: {<0.83600.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"739649da62760b8a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1089}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.381 ***🔗
REST request:
Code: 204
Req: {<0.83604.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cea11105767f6d32">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,3872}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.385 ***🔗
REST request:
Code: 204
Req: {<0.83613.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5eeec39b308583b0">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,2205}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.388 ***🔗
REST request:
Code: 204
Req: {<0.83618.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8892dcb75b66ab0f">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,2721}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.391 ***🔗
REST request:
Code: 200
Req: {<0.83620.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6cc611ebcdfc0bfa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}]">>,
213,1563}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.412 ***🔗
REST request:
Code: 200
Req: {<0.83622.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f95b719036d27bcd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}]">>,
211,16656}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.417 ***🔗
REST request:
Code: 204
Req: {<0.83624.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bee139f0074fa202">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,3697}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.419 ***🔗
REST request:
Code: 200
Req: {<0.83628.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"72407d4a70f81358">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}]">>,
210,1326}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.424 ***🔗
REST request:
Code: 204
Req: {<0.83632.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"790599cc15b7e17e">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,4001}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.427 ***🔗
REST request:
Code: 200
Req: {<0.83636.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e3e3f475c0f11d1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}]">>,
209,1260}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.430 ***🔗
REST request:
Code: 200
Req: {<0.83638.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07db84b93bf7d7d5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}]">>,
213,2371}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.435 ***🔗
REST request:
Code: 204
Req: {<0.83642.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"43c541245ba52e4d">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,4236}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.437 ***🔗
REST request:
Code: 200
Req: {<0.83646.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"954f90021f4a2629">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}]">>,
212,1016}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.443 ***🔗
REST request:
Code: 204
Req: {<0.83648.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bfc1e18f1bc184bb">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,4874}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:48:58.446 ***🔗
REST request:
Code: 200
Req: {<0.83650.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"077a8db9ad0823c4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3061@localhost\"}]">>,
211,1172}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.448 ***🔗
REST request:
Code: 200
Req: {<0.83652.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"332007fa3d86bd44">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}]">>,
213,1046}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.455 ***🔗
REST request:
Code: 204
Req: {<0.83654.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e65826ccb1077c21">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,6012}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.457 ***🔗
REST request:
Code: 200
Req: {<0.83656.0>,
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"46819a12de07daf5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1181}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.459 ***🔗
REST request:
Code: 200
Req: {<0.83658.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"224dfe2dbc6f8e57">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3061@localhost\"}]">>,
213,1141}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.462 ***🔗
REST request:
Code: 204
Req: {<0.83660.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14db99ee435e6eb1">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>}],
<<>>,80,1732}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost/alice_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.464 ***🔗
REST request:
Code: 200
Req: {<0.83662.0>,
<<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7acf48dd6cd8087">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:48:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1206}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3061@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push11ec95ffea851b7f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push05bd461ff2edc4c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push718715fc453dae12' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<presence from='bob_befriend_and_alienate_3061@localhost/res1' to='alice_befriend_and_alienate_3061@localhost/res1'/>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push3b372233bea90aa0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<presence from='bob_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' type='subscribed'/>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push8554db50818c3959' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<presence from='bob_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' type='subscribe'/>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push546b2f80b81d62d6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<iq from='alice_befriend_and_alienate_3061@localhost' to='alice_befriend_and_alienate_3061@localhost/res1' id='push8dcb2fcd58a54181' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:48:58.464 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
<presence from='bob_befriend_and_alienate_3061@localhost/res1' to='alice_befriend_and_alienate_3061@localhost/res1' type='unavailable'/>
*** User 2023-11-16 09:49:03.464 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='pushe32782a4cd0300a6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' type='subscribe'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='push254a488fc09e8f8e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='push8a87e0c98e780eba' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost/res1' to='bob_befriend_and_alienate_3061@localhost/res1'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='pushd1cdf5788b3bfbd4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' type='subscribed'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost/res1' to='bob_befriend_and_alienate_3061@localhost/res1' type='unavailable'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='push028796dcc692614b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' type='unsubscribe'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='push0c18da7160fb4c15' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<presence from='alice_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' type='unsubscribed'/>
*** User 2023-11-16 09:49:03.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
<iq from='bob_befriend_and_alienate_3061@localhost' to='bob_befriend_and_alienate_3061@localhost/res1' id='push8882f0e6e27016a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_3061@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:49:08.465 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:08.466 ***🔗
bob_befriend_and_alienate_3061@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:49:08.466 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:49:08.466 ***🔗
alice_befriend_and_alienate_3061@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:49:08
=== successfully completed test case
=== === Returned value: ok