=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.83299.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_SUITE.logs/run.2023-11-17_15.24.16/rest_suite.befriend_and_alienate.163715.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_SUITE.logs/run.2023-11-17_15.24.16/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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 => cets,
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 => cets,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:24:17
*** User 2023-11-17 15:24:17.227 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:17.228 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1594efe75c79b68c' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:17.228 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:24:17.228 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTIzAG1hdHlncnlzYQ==</auth>
*** User 2023-11-17 15:24:17.229 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:17.229 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:17.229 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb54b3827febb251' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2923@localhost'>
*** User 2023-11-17 15:24:17.229 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:24:17.229 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 out
<iq type='set' id='de2a91815ac33061536b4f04c31a36f0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:17.230 ***🔗
alicE_befriend_and_alienate_2923@localhost/res1 in
<iq id='de2a91815ac33061536b4f04c31a36f0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2923@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:17.230 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 out
<iq type='set' id='97603cd75e4a8f3ad703eb308fa071da'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:17.231 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='97603cd75e4a8f3ad703eb308fa071da' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:17.232 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:17.233 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost/res1' to='alice_befriend_and_alienate_2923@localhost/res1'/>
*** User 2023-11-17 15:24:17.233 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:17.234 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f62c63c4d52ddf5' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:17.234 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:24:17.234 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkyMwBtYWtyb2xpa2E=</auth>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='262cdc826d86a088' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2923@localhost'>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 out
<iq type='set' id='4b578ed538d9b4d4d2b92375153ac9b0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:17.235 ***🔗
bOb_befriend_and_alienate_2923@localhost/res1 in
<iq id='4b578ed538d9b4d4d2b92375153ac9b0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2923@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:17.235 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 out
<iq type='set' id='aeb76a98a8fc86ce517ebd3855ce6512'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:17.236 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='aeb76a98a8fc86ce517ebd3855ce6512' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:17.236 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:17.237 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='bob_befriend_and_alienate_2923@localhost/res1' to='bob_befriend_and_alienate_2923@localhost/res1'/>
*** User 2023-11-17 15:24:17.239 ***🔗
REST request:
Code: 200
Req: {<0.83407.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b4f7b62a1cadfa21">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,896}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.241 ***🔗
REST request:
Code: 200
Req: {<0.83414.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd9563112b931c38">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,764}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.243 ***🔗
REST request:
Code: 204
Req: {<0.83420.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e5c26be9f2171c8">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,1805}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.246 ***🔗
REST request:
Code: 204
Req: {<0.83428.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d20ac0f41e52af3a">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,1949}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.249 ***🔗
REST request:
Code: 204
Req: {<0.83432.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"932333bf8474f6b7">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,2209}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.251 ***🔗
REST request:
Code: 200
Req: {<0.83439.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ae230247901180b4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}]">>,
213,937}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.253 ***🔗
REST request:
Code: 200
Req: {<0.83442.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7ce6c487216c60a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}]">>,
211,1207}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.256 ***🔗
REST request:
Code: 204
Req: {<0.83444.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d88a6614e2b7ed8e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,2521}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.258 ***🔗
REST request:
Code: 200
Req: {<0.83448.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"195cedef32998c26">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}]">>,
210,870}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.261 ***🔗
REST request:
Code: 204
Req: {<0.83452.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"201ab38c557823a2">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,2694}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.297 ***🔗
REST request:
Code: 200
Req: {<0.83456.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"beb8b1edbd312f5e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}]">>,
209,1299}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.299 ***🔗
REST request:
Code: 200
Req: {<0.83458.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b930894978385d76">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}]">>,
213,1131}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.303 ***🔗
REST request:
Code: 204
Req: {<0.83460.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"71f84be7230ffa97">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,3234}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.305 ***🔗
REST request:
Code: 200
Req: {<0.83466.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7fd40774d6e654b9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}]">>,
212,1039}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.308 ***🔗
REST request:
Code: 204
Req: {<0.83468.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"505e70929fbd1c0b">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,2635}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:24:17.310 ***🔗
REST request:
Code: 200
Req: {<0.83470.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c165449434769c49">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2923@localhost\"}]">>,
211,1171}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.312 ***🔗
REST request:
Code: 200
Req: {<0.83472.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86ea63fa5d8c45b2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}]">>,
213,889}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.317 ***🔗
REST request:
Code: 204
Req: {<0.83474.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ead05c2542977fe">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,4774}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.319 ***🔗
REST request:
Code: 200
Req: {<0.83476.0>,
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d9929570f582f54f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,992}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.321 ***🔗
REST request:
Code: 200
Req: {<0.83478.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"944eadf1ede889a2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2923@localhost\"}]">>,
213,984}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.324 ***🔗
REST request:
Code: 204
Req: {<0.83480.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ca0ff0774dc973a">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>}],
<<>>,80,1640}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost/alice_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.325 ***🔗
REST request:
Code: 200
Req: {<0.83482.0>,
<<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8932ecfaf175082">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,830}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2923@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='push70f53ea1509b5226' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='pushe9f9a241ccb77a91' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='push19812e89142923c9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<presence from='bob_befriend_and_alienate_2923@localhost/res1' to='alice_befriend_and_alienate_2923@localhost/res1'/>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='pushf07970c70813adf1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<presence from='bob_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' type='subscribed'/>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='push8a569a2bfc751d7b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<presence from='bob_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' type='subscribe'/>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='pushd45ec737512ff295' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<iq from='alice_befriend_and_alienate_2923@localhost' to='alice_befriend_and_alienate_2923@localhost/res1' id='push84774096efd23041' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:17.326 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
<presence from='bob_befriend_and_alienate_2923@localhost/res1' to='alice_befriend_and_alienate_2923@localhost/res1' type='unavailable'/>
*** User 2023-11-17 15:24:22.326 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='pushf9c5f8da04184a81' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' type='subscribe'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='pushe87a0373a2451a50' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='push58220c6144156f16' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost/res1' to='bob_befriend_and_alienate_2923@localhost/res1'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='pushd521743f12c5eb2f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' type='subscribed'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost/res1' to='bob_befriend_and_alienate_2923@localhost/res1' type='unavailable'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='push616ac3ce39bacb18' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' type='unsubscribe'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='pushcfba588c4aefee84' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<presence from='alice_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' type='unsubscribed'/>
*** User 2023-11-17 15:24:22.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
<iq from='bob_befriend_and_alienate_2923@localhost' to='bob_befriend_and_alienate_2923@localhost/res1' id='push2698ff24c7fab370' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2923@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:27.327 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:27.328 ***🔗
bob_befriend_and_alienate_2923@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:27.328 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:27.328 ***🔗
alice_befriend_and_alienate_2923@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:24:27
=== successfully completed test case
=== === Returned value: ok