=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.92821.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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.26.45/rest_suite.befriend_and_alienate.283266.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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.26.45/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_sic => #{iqdisc => one_queue},
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_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,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
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@db96c7cbc273.2024-04-16_10.12.19"
=== Started at 2024-04-16 10:26:46
*** User 2024-04-16 10:26:46.731 ***🔗
alicE_befriend_and_alienate_3596@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 10:26:46.731 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='377d2dcc47eb5c7e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:46.732 ***🔗
alicE_befriend_and_alienate_3596@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 10:26:46.732 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zNTk2AG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 10:26:46.733 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:46.733 ***🔗
alicE_befriend_and_alienate_3596@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 10:26:46.733 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a43358a9866e9cbd' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3596@domain.example.com'>
*** User 2024-04-16 10:26:46.734 ***🔗
alicE_befriend_and_alienate_3596@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 10:26:46.734 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 out
<iq type='set' id='d255647756851b3a81bdcce3f052d76b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:46.734 ***🔗
alicE_befriend_and_alienate_3596@domain.example.com/res1 in
<iq id='d255647756851b3a81bdcce3f052d76b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3596@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:46.734 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 out
<iq type='set' id='7012eabc30143cb8198246fb081e8522'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:46.735 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='7012eabc30143cb8198246fb081e8522' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:46.735 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:46.741 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com/res1' to='alice_befriend_and_alienate_3596@domain.example.com/res1'/>
*** User 2024-04-16 10:26:46.741 ***🔗
bOb_befriend_and_alienate_3596@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 10:26:46.742 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bda888eb060adb6b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:46.742 ***🔗
bOb_befriend_and_alienate_3596@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 10:26:46.742 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzU5NgBtYWtyb2xpa2E=</auth>
*** User 2024-04-16 10:26:46.743 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:46.743 ***🔗
bOb_befriend_and_alienate_3596@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 10:26:46.743 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6b7ba1beb6187c3' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3596@domain.example.com'>
*** User 2024-04-16 10:26:46.743 ***🔗
bOb_befriend_and_alienate_3596@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 10:26:46.743 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 out
<iq type='set' id='ce4928cbfd89cccc1370427da2c33d26'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:46.744 ***🔗
bOb_befriend_and_alienate_3596@domain.example.com/res1 in
<iq id='ce4928cbfd89cccc1370427da2c33d26' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3596@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:46.744 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 out
<iq type='set' id='f31e19a2cfecfc29853301215f9da676'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:46.744 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='f31e19a2cfecfc29853301215f9da676' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:46.744 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:46.746 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3596@domain.example.com/res1' to='bob_befriend_and_alienate_3596@domain.example.com/res1'/>
*** User 2024-04-16 10:26:46.752 ***🔗
REST request:
Code: 200
Req: {<0.92917.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d163891294bf7ab">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4732}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.754 ***🔗
REST request:
Code: 200
Req: {<0.92935.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8808a21dd8203319">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1172}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.776 ***🔗
REST request:
Code: 204
Req: {<0.92943.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f122bb25f739a178">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,20845}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.792 ***🔗
REST request:
Code: 204
Req: {<0.92958.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1746e2288f02f993">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,14688}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.806 ***🔗
REST request:
Code: 204
Req: {<0.92960.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"030c8467c4be9768">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,12515}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.808 ***🔗
REST request:
Code: 200
Req: {<0.92962.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"df3f7dd02b24c0de">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}]">>,
222,1662}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.818 ***🔗
REST request:
Code: 200
Req: {<0.92964.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"189dc21be17674bf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}]">>,
220,8514}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.827 ***🔗
REST request:
Code: 204
Req: {<0.92966.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"394257a5463e3b46">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,7580}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.830 ***🔗
REST request:
Code: 200
Req: {<0.92968.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"670e0264ed2fb3df">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}]">>,
219,1238}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.840 ***🔗
REST request:
Code: 204
Req: {<0.92970.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a6fe508425dbbd82">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,9102}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.842 ***🔗
REST request:
Code: 200
Req: {<0.92978.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"965ec878e2e31eae">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}]">>,
218,1095}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.847 ***🔗
REST request:
Code: 200
Req: {<0.92980.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"217bc2e1e749c655">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}]">>,
222,3600}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.858 ***🔗
REST request:
Code: 204
Req: {<0.92982.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"effa0add661dfa56">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,10413}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.861 ***🔗
REST request:
Code: 200
Req: {<0.92984.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b92ff85f2dd4412a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}]">>,
221,1486}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.871 ***🔗
REST request:
Code: 204
Req: {<0.92988.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ddb24789fce77c7">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,8973}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-04-16 10:26:46.874 ***🔗
REST request:
Code: 200
Req: {<0.92992.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d59612f5f99ee827">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3596@domain.example.com\"}]">>,
220,1803}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.877 ***🔗
REST request:
Code: 200
Req: {<0.92994.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1be2b4fa936f912d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}]">>,
222,1400}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.888 ***🔗
REST request:
Code: 204
Req: {<0.92996.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8af9cf8f611c6039">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,9577}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.890 ***🔗
REST request:
Code: 200
Req: {<0.92998.0>,
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c3f1345476fb80c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1464}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.893 ***🔗
REST request:
Code: 200
Req: {<0.93000.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b11c4564b983a319">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3596@domain.example.com\"}]">>,
222,1402}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.896 ***🔗
REST request:
Code: 204
Req: {<0.93002.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb3101541c94231a">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>}],
<<>>,80,1961}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com/alice_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.898 ***🔗
REST request:
Code: 200
Req: {<0.93004.0>,
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a86ad50f228dbc3d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1238}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3596@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='push1de93bb12d6c72bb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='pushfc99704106f1dc82' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='push83d29a51acd4b7d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3596@domain.example.com/res1' to='alice_befriend_and_alienate_3596@domain.example.com/res1'/>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='push08ffe1ad13de5e9e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='push4f34adb9546d290b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='pushe544ff39d3725f60' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3596@domain.example.com' to='alice_befriend_and_alienate_3596@domain.example.com/res1' id='pushc0c2ab5b51bfbccb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3596@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 10:26:46.899 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3596@domain.example.com/res1' to='alice_befriend_and_alienate_3596@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='push30ad626c3d98ed3b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='pushebab9ffcbc027722' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='pushf3b9438cd93a5fdb' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com/res1' to='bob_befriend_and_alienate_3596@domain.example.com/res1'/>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='push30efa79fff8e3c09' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com/res1' to='bob_befriend_and_alienate_3596@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='pushc1af9c14549d4d71' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.900 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-16 10:26:51.901 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='pushe649aee627375d0c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 10:26:51.901 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-16 10:26:51.901 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3596@domain.example.com' to='bob_befriend_and_alienate_3596@domain.example.com/res1' id='pushdf25925fd598dabf' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3596@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 10:26:56.902 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:56.902 ***🔗
bob_befriend_and_alienate_3596@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 10:26:56.902 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:56.903 ***🔗
alice_befriend_and_alienate_3596@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:26:56
=== successfully completed test case
=== === Returned value: ok