=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.74853.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.rest_SUITE.logs/run.2024-04-12_13.37.54/rest_suite.befriend_and_alienate.209410.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@8a480c91a890.2024-04-12_13.25.32/big_tests.tests.rest_SUITE.logs/run.2024-04-12_13.37.54/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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
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@8a480c91a890.2024-04-12_13.25.32"
=== Started at 2024-04-12 13:37:55
*** User 2024-04-12 13:37:55.197 ***🔗
alicE_befriend_and_alienate_2770@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-12 13:37:55.197 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c25634535ca98d1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:37:55.198 ***🔗
alicE_befriend_and_alienate_2770@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-12 13:37:55.198 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzcwAG1hdHlncnlzYQ==</auth>
*** User 2024-04-12 13:37:55.199 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:37:55.199 ***🔗
alicE_befriend_and_alienate_2770@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-12 13:37:55.199 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b7171d1fe8dadeb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2770@domain.example.com'>
*** User 2024-04-12 13:37:55.200 ***🔗
alicE_befriend_and_alienate_2770@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-12 13:37:55.200 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 out
<iq type='set' id='631fd96da0d64311a6d511ee783e0a77'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:37:55.200 ***🔗
alicE_befriend_and_alienate_2770@domain.example.com/res1 in
<iq id='631fd96da0d64311a6d511ee783e0a77' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2770@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:37:55.200 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 out
<iq type='set' id='edf8b5c43407e15da9aaad96c6f7ed04'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:37:55.201 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='edf8b5c43407e15da9aaad96c6f7ed04' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:37:55.202 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:37:55.204 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com/res1' to='alice_befriend_and_alienate_2770@domain.example.com/res1'/>
*** User 2024-04-12 13:37:55.204 ***🔗
bOb_befriend_and_alienate_2770@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-12 13:37:55.205 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7e224b374d694913' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-12 13:37:55.205 ***🔗
bOb_befriend_and_alienate_2770@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-12 13:37:55.205 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjc3MABtYWtyb2xpa2E=</auth>
*** User 2024-04-12 13:37:55.206 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-12 13:37:55.206 ***🔗
bOb_befriend_and_alienate_2770@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-12 13:37:55.206 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6227eea96f8d221b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2770@domain.example.com'>
*** User 2024-04-12 13:37:55.207 ***🔗
bOb_befriend_and_alienate_2770@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-12 13:37:55.207 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 out
<iq type='set' id='2b9889058943d9c47a1d6cde49ba75c5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-12 13:37:55.207 ***🔗
bOb_befriend_and_alienate_2770@domain.example.com/res1 in
<iq id='2b9889058943d9c47a1d6cde49ba75c5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2770@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-12 13:37:55.207 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 out
<iq type='set' id='9aeb6eafeaed2a127ce2dc5b46f9e352'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:37:55.208 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='9aeb6eafeaed2a127ce2dc5b46f9e352' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-12 13:37:55.208 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 out
<presence/>
*** User 2024-04-12 13:37:55.210 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2770@domain.example.com/res1' to='bob_befriend_and_alienate_2770@domain.example.com/res1'/>
*** User 2024-04-12 13:37:55.216 ***🔗
REST request:
Code: 200
Req: {<0.74959.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e9ed9fe7e0cf51cf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,4825}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.219 ***🔗
REST request:
Code: 200
Req: {<0.74974.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"586a41e248d604b4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1578}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.224 ***🔗
REST request:
Code: 204
Req: {<0.74980.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9acadd390b68d4c2">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,4063}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.270 ***🔗
REST request:
Code: 204
Req: {<0.74990.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0675c0d633e8ca3b">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,44435}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.281 ***🔗
REST request:
Code: 204
Req: {<0.74992.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"113d8e6858903396">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,9835}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.284 ***🔗
REST request:
Code: 200
Req: {<0.74994.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7126c8bf0469cf5c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}]">>,
222,2383}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.287 ***🔗
REST request:
Code: 200
Req: {<0.74996.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6cc27a37067a37ec">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}]">>,
220,1689}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.296 ***🔗
REST request:
Code: 204
Req: {<0.74998.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ad9ac662bac815c8">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,7106}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.299 ***🔗
REST request:
Code: 200
Req: {<0.75000.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a8e0cb7d0dfbf1a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}]">>,
219,1858}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.306 ***🔗
REST request:
Code: 204
Req: {<0.75002.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f8a3f8c3096c27d3">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,6325}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.310 ***🔗
REST request:
Code: 200
Req: {<0.75008.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8dd0f053ee6f3daa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}]">>,
218,2373}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.313 ***🔗
REST request:
Code: 200
Req: {<0.75010.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4638a8b2fc616b73">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}]">>,
222,2164}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.321 ***🔗
REST request:
Code: 204
Req: {<0.75014.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d2bec4110738d13">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,6141}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.324 ***🔗
REST request:
Code: 200
Req: {<0.75016.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa3ef87b19f795ff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}]">>,
221,1663}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.332 ***🔗
REST request:
Code: 204
Req: {<0.75018.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"425fe0c6cede6cff">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,6246}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-12 13:37:55.335 ***🔗
REST request:
Code: 200
Req: {<0.75024.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86bafe3a2104cf16">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2770@domain.example.com\"}]">>,
220,1806}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.338 ***🔗
REST request:
Code: 200
Req: {<0.75026.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1fe67d105997983">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}]">>,
222,2447}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.349 ***🔗
REST request:
Code: 204
Req: {<0.75028.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bac1358485b79e24">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,9746}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.352 ***🔗
REST request:
Code: 200
Req: {<0.75030.0>,
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13fd99e65fe870bd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1955}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.367 ***🔗
REST request:
Code: 200
Req: {<0.75032.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"26c5fdde6beb0922">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2770@domain.example.com\"}]">>,
222,2397}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.372 ***🔗
REST request:
Code: 204
Req: {<0.75034.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b47124794c274bda">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>}],
<<>>,80,3444}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com/alice_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.375 ***🔗
REST request:
Code: 200
Req: {<0.75036.0>,
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5d10a887c871aae">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 12 Apr 2024 13:37:55 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1955}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2770@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-12 13:37:55.375 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='pusheca796f59f63dccc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.375 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='push6afd588f87410b0f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='push3803a115f31f519d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2770@domain.example.com/res1' to='alice_befriend_and_alienate_2770@domain.example.com/res1'/>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='pushd4bb1bba7fabb7ad' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='pushb027098687386bf3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='pushe4da07390bbcabd1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2770@domain.example.com' to='alice_befriend_and_alienate_2770@domain.example.com/res1' id='pushc87043a73cc1951d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2770@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-12 13:37:55.376 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2770@domain.example.com/res1' to='alice_befriend_and_alienate_2770@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-12 13:38:00.376 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='push5c6dfb31c37cc084' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.376 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-12 13:38:00.376 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='pushcee515e97e8afb7f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.376 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='push4a241981c8d9b68a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.376 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com/res1' to='bob_befriend_and_alienate_2770@domain.example.com/res1'/>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='pushfa9a9f526d845def' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com/res1' to='bob_befriend_and_alienate_2770@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='pushf2360497ac1a46d2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='pushb2f82fff49b47c32' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-12 13:38:00.377 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2770@domain.example.com' to='bob_befriend_and_alienate_2770@domain.example.com/res1' id='pushf7a148d964d465ec' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2770@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-12 13:38:05.378 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:05.379 ***🔗
bob_befriend_and_alienate_2770@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-12 13:38:05.379 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-12 13:38:05.379 ***🔗
alice_befriend_and_alienate_2770@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-12 13:38:05
=== successfully completed test case
=== === Returned value: ok