=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75564.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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_SUITE.logs/run.2024-04-16_12.12.40/rest_suite.befriend_and_alienate.213250.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@71655937ce6e.2024-04-16_11.59.01/big_tests.tests.rest_SUITE.logs/run.2024-04-16_12.12.40/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => mnesia},
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@71655937ce6e.2024-04-16_11.59.01"
=== Started at 2024-04-16 12:12:40
*** User 2024-04-16 12:12:40.800 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 12:12:40.800 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bea595426bab683d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:40.800 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-16 12:12:40.801 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTk4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 12:12:40.802 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:40.802 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 12:12:40.802 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9dc9dc5e1cbefada' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2998@domain.example.com'>
*** User 2024-04-16 12:12:40.803 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-16 12:12:40.803 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 out
<iq type='set' id='e6570653c9c8566d4c3ce9483a2707d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:40.804 ***🔗
alicE_befriend_and_alienate_2998@domain.example.com/res1 in
<iq id='e6570653c9c8566d4c3ce9483a2707d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2998@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:40.804 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 out
<iq type='set' id='a040dfe829e69f2d0456e5e888c80efa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:40.805 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='a040dfe829e69f2d0456e5e888c80efa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:40.806 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:40.807 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com/res1' to='alice_befriend_and_alienate_2998@domain.example.com/res1'/>
*** User 2024-04-16 12:12:40.808 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 12:12:40.809 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='696b224c97e71d52' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 12:12:40.809 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-16 12:12:40.809 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk5OABtYWtyb2xpa2E=</auth>
*** User 2024-04-16 12:12:40.810 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 12:12:40.810 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-16 12:12:40.811 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='079712134b60174b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2998@domain.example.com'>
*** User 2024-04-16 12:12:40.811 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-16 12:12:40.811 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 out
<iq type='set' id='1373956b423e5ddc7b66fbb7a223dea9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 12:12:40.811 ***🔗
bOb_befriend_and_alienate_2998@domain.example.com/res1 in
<iq id='1373956b423e5ddc7b66fbb7a223dea9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2998@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 12:12:40.812 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 out
<iq type='set' id='675e289f7b2c2e34c4c68c64fe8453ee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:40.812 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='675e289f7b2c2e34c4c68c64fe8453ee' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 12:12:40.812 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 12:12:40.814 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2998@domain.example.com/res1' to='bob_befriend_and_alienate_2998@domain.example.com/res1'/>
*** User 2024-04-16 12:12:40.816 ***🔗
REST request:
Code: 200
Req: {<0.75673.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a73653a7be4e9ff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1415}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.818 ***🔗
REST request:
Code: 200
Req: {<0.75683.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d882e38e2ae29c83">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1072}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.822 ***🔗
REST request:
Code: 204
Req: {<0.75691.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62d103eea39cfcf7">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,3011}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.825 ***🔗
REST request:
Code: 204
Req: {<0.75695.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8fd81cd68aa0c3e4">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,2025}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.829 ***🔗
REST request:
Code: 204
Req: {<0.75702.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ef069c81e6fa958">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,2959}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.831 ***🔗
REST request:
Code: 200
Req: {<0.75705.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"180751cea75a93b0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}]">>,
222,1089}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.834 ***🔗
REST request:
Code: 200
Req: {<0.75707.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db1df5e5f2cfcddf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}]">>,
220,956}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.882 ***🔗
REST request:
Code: 204
Req: {<0.75709.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a7792d92d3fcdbaa">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,47132}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.884 ***🔗
REST request:
Code: 200
Req: {<0.75713.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1bac2feaf9711263">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}]">>,
219,1122}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.889 ***🔗
REST request:
Code: 204
Req: {<0.75717.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1cd5e9bd336a89b9">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,3281}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.892 ***🔗
REST request:
Code: 200
Req: {<0.75721.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c3b2b09290595f1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}]">>,
218,2258}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.894 ***🔗
REST request:
Code: 200
Req: {<0.75723.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3cb471c59ecdead6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}]">>,
222,1169}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.898 ***🔗
REST request:
Code: 204
Req: {<0.75727.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fbc1a330f9b7de6d">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,2943}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.900 ***🔗
REST request:
Code: 200
Req: {<0.75731.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30a80230fe7115af">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}]">>,
221,1173}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.904 ***🔗
REST request:
Code: 204
Req: {<0.75733.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"efa94ade04817b55">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,2981}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 12:12:40.906 ***🔗
REST request:
Code: 200
Req: {<0.75735.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"31f14f1686e40b13">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2998@domain.example.com\"}]">>,
220,1065}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.909 ***🔗
REST request:
Code: 200
Req: {<0.75737.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d8710d8d833e72c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}]">>,
222,1452}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.915 ***🔗
REST request:
Code: 204
Req: {<0.75739.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"110111185b4ee870">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,5133}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.917 ***🔗
REST request:
Code: 200
Req: {<0.75741.0>,
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9b1b94de5b800e2f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1097}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.919 ***🔗
REST request:
Code: 200
Req: {<0.75743.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d58b02062682019">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2998@domain.example.com\"}]">>,
222,1310}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.922 ***🔗
REST request:
Code: 204
Req: {<0.75745.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"122f05be1f668924">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>}],
<<>>,80,1721}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com/alice_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.923 ***🔗
REST request:
Code: 200
Req: {<0.75747.0>,
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"625a98ed31c241b6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 12:12:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1029}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2998@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push19627d6d724d9def' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push7c20725c64c6e6bc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push712af1245031ca53' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2998@domain.example.com/res1' to='alice_befriend_and_alienate_2998@domain.example.com/res1'/>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push7b9a58c23e254f9d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push37622954a7ccc3aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push5c4f38e755938c65' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2998@domain.example.com' to='alice_befriend_and_alienate_2998@domain.example.com/res1' id='push6f366c32c997ea70' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2998@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 12:12:40.924 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2998@domain.example.com/res1' to='alice_befriend_and_alienate_2998@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='pushae096081a827d424' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='push2c633114156387c0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='pushae9980e35667e879' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com/res1' to='bob_befriend_and_alienate_2998@domain.example.com/res1'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='push0f20db5e584f717f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com/res1' to='bob_befriend_and_alienate_2998@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='push27c2b9d22735b50f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='push170c1adddd666ba4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-16 12:12:45.925 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2998@domain.example.com' to='bob_befriend_and_alienate_2998@domain.example.com/res1' id='pushda5f381d9cf72dc0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2998@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 12:12:50.926 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:50.926 ***🔗
bob_befriend_and_alienate_2998@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 12:12:50.926 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 12:12:50.926 ***🔗
alice_befriend_and_alienate_2998@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 12:12:50
=== successfully completed test case
=== === Returned value: ok