=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.71060.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.rest_SUITE.logs/run.2023-11-17_15.23.00/rest_suite.befriend_and_alienate.205698.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@9f12fc69b406.2023-11-17_15.10.18/big_tests.tests.rest_SUITE.logs/run.2023-11-17_15.23.00/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_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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@9f12fc69b406.2023-11-17_15.10.18"
=== Started at 2023-11-17 15:23:00
*** User 2023-11-17 15:23:00.832 ***🔗
alicE_befriend_and_alienate_2657@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 2023-11-17 15:23:00.832 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60030f51bfe2c187' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:23:00.832 ***🔗
alicE_befriend_and_alienate_2657@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 2023-11-17 15:23:00.832 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNjU3AG1hdHlncnlzYQ==</auth>
*** User 2023-11-17 15:23:00.833 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:23:00.833 ***🔗
alicE_befriend_and_alienate_2657@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 2023-11-17 15:23:00.833 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6250fb971f59c86f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2657@domain.example.com'>
*** User 2023-11-17 15:23:00.834 ***🔗
alicE_befriend_and_alienate_2657@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 2023-11-17 15:23:00.834 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 out
<iq type='set' id='455a296eb79bd0ff6688be1ce5ea21c0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:23:00.834 ***🔗
alicE_befriend_and_alienate_2657@domain.example.com/res1 in
<iq id='455a296eb79bd0ff6688be1ce5ea21c0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2657@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:23:00.834 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 out
<iq type='set' id='d5dd49f1b0ad9fb586c767482c7b2741'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:00.834 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='d5dd49f1b0ad9fb586c767482c7b2741' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:00.834 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:23:00.836 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com/res1' to='alice_befriend_and_alienate_2657@domain.example.com/res1'/>
*** User 2023-11-17 15:23:00.836 ***🔗
bOb_befriend_and_alienate_2657@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 2023-11-17 15:23:00.837 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8ac18d6a5eb211f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:23:00.837 ***🔗
bOb_befriend_and_alienate_2657@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 2023-11-17 15:23:00.837 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjY1NwBtYWtyb2xpa2E=</auth>
*** User 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@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 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='32e0f68ba9785ec6' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2657@domain.example.com'>
*** User 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@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 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 out
<iq type='set' id='2908d77e0cb3c642bc9e70e19b5bd43c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:23:00.838 ***🔗
bOb_befriend_and_alienate_2657@domain.example.com/res1 in
<iq id='2908d77e0cb3c642bc9e70e19b5bd43c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2657@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:23:00.838 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 out
<iq type='set' id='cc30b62573dafb37c5f767c05057357b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:00.839 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='cc30b62573dafb37c5f767c05057357b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:23:00.839 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:23:00.841 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2657@domain.example.com/res1' to='bob_befriend_and_alienate_2657@domain.example.com/res1'/>
*** User 2023-11-17 15:23:00.843 ***🔗
REST request:
Code: 200
Req: {<0.71182.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa98762955cc09ef">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1327}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.845 ***🔗
REST request:
Code: 200
Req: {<0.71184.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"01c8c45b8f851f99">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1773}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.850 ***🔗
REST request:
Code: 204
Req: {<0.71190.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"faca6c3fb5f9e3f3">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,3713}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.853 ***🔗
REST request:
Code: 204
Req: {<0.71197.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"193864cb9a2aa5fa">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,2704}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.857 ***🔗
REST request:
Code: 204
Req: {<0.71199.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"17f4f3b876805494">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,2733}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.859 ***🔗
REST request:
Code: 200
Req: {<0.71201.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64186fcefd14b338">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}]">>,
222,1512}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.861 ***🔗
REST request:
Code: 200
Req: {<0.71203.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78dda180ff3cbe2e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}]">>,
220,1392}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.867 ***🔗
REST request:
Code: 204
Req: {<0.71205.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"40cdcf134779beb4">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,4859}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.913 ***🔗
REST request:
Code: 200
Req: {<0.71207.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18481f08bdc8601c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}]">>,
219,1888}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.919 ***🔗
REST request:
Code: 204
Req: {<0.71211.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e421565f66a73a3c">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,4464}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.921 ***🔗
REST request:
Code: 200
Req: {<0.71217.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"147d03c6436e1fa9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}]">>,
218,1538}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.923 ***🔗
REST request:
Code: 200
Req: {<0.71219.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b421d720346a3a95">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}]">>,
222,1428}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.928 ***🔗
REST request:
Code: 204
Req: {<0.71221.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fdcbb703ea923dbb">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,4117}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.930 ***🔗
REST request:
Code: 200
Req: {<0.71225.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1495e91a830201ab">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}]">>,
221,1364}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.935 ***🔗
REST request:
Code: 204
Req: {<0.71229.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"774c02fdc2cf88c9">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,4215}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:23:00.937 ***🔗
REST request:
Code: 200
Req: {<0.71231.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"745e547f5ff269de">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2657@domain.example.com\"}]">>,
220,1568}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.939 ***🔗
REST request:
Code: 200
Req: {<0.71233.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e19b2914a5a2f71d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}]">>,
222,1336}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.948 ***🔗
REST request:
Code: 204
Req: {<0.71235.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89c55a0fb05065ce">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,8010}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.951 ***🔗
REST request:
Code: 200
Req: {<0.71237.0>,
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b0835cdc234e878">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1506}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.953 ***🔗
REST request:
Code: 200
Req: {<0.71239.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8372aedff1c3e5e4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2657@domain.example.com\"}]">>,
222,1550}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.956 ***🔗
REST request:
Code: 204
Req: {<0.71241.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"16e57cf32884247b">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>}],
<<>>,80,2288}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com/alice_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.958 ***🔗
REST request:
Code: 200
Req: {<0.71243.0>,
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bcd125dd77975a0a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:23:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1707}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2657@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:23:00.958 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='pushceff7483e6482561' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.958 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='push88811e6568fd17c4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='push0c8a65b13d091bb1' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2657@domain.example.com/res1' to='alice_befriend_and_alienate_2657@domain.example.com/res1'/>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='pushcf8654158029282a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='push8b3b763e8bec478b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='push0f59a6c0584ff415' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2657@domain.example.com' to='alice_befriend_and_alienate_2657@domain.example.com/res1' id='push2cab9eb0aa2a500b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:00.959 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2657@domain.example.com/res1' to='alice_befriend_and_alienate_2657@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-17 15:23:05.959 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push01723ecf41ed0639' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push8476fe749e652687' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push7bcc2a742d7db5f3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com/res1' to='bob_befriend_and_alienate_2657@domain.example.com/res1'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push2d1e326ea03b697e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com/res1' to='bob_befriend_and_alienate_2657@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='pushc4219cf904ef2d4d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' type='unsubscribe'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push1672283c7710785e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' type='unsubscribed'/>
*** User 2023-11-17 15:23:05.960 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2657@domain.example.com' to='bob_befriend_and_alienate_2657@domain.example.com/res1' id='push447a1c0a05034e73' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2657@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:23:10.962 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:23:10.962 ***🔗
bob_befriend_and_alienate_2657@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:23:10.962 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:23:10.962 ***🔗
alice_befriend_and_alienate_2657@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:23:10
=== successfully completed test case
=== === Returned value: ok