=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.17758.2>},
{{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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.20.40/rest_suite.befriend_and_alienate.212994.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.rest_SUITE.logs/run.2023-11-16_09.20.40/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{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@fca70da71937.2023-11-16_09.05.55"
=== Started at 2023-11-16 09:20:40
*** User 2023-11-16 09:20:41.018 ***🔗
alicE_befriend_and_alienate_3120@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-16 09:20:41.019 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5d4d4aac4965b87' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:20:41.019 ***🔗
alicE_befriend_and_alienate_3120@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-16 09:20:41.019 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMTIwAG1hdHlncnlzYQ==</auth>
*** User 2023-11-16 09:20:41.020 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:20:41.020 ***🔗
alicE_befriend_and_alienate_3120@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-16 09:20:41.021 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b9905ab583d910b' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3120@localhost'>
*** User 2023-11-16 09:20:41.021 ***🔗
alicE_befriend_and_alienate_3120@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-16 09:20:41.021 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 out
<iq type='set' id='d56f66e51f7834207040878770dd40d5'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:20:41.021 ***🔗
alicE_befriend_and_alienate_3120@localhost/res1 in
<iq id='d56f66e51f7834207040878770dd40d5' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3120@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:20:41.021 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 out
<iq type='set' id='9a73381291dc9a33de35614bc1b9dc70'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:20:41.022 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='9a73381291dc9a33de35614bc1b9dc70' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:20:41.022 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 out
<presence/>
*** User 2023-11-16 09:20:41.023 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost/res1' to='alice_befriend_and_alienate_3120@localhost/res1'/>
*** User 2023-11-16 09:20:41.024 ***🔗
bOb_befriend_and_alienate_3120@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-16 09:20:41.024 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c09be043555c20b6' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:20:41.024 ***🔗
bOb_befriend_and_alienate_3120@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-16 09:20:41.024 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzEyMABtYWtyb2xpa2E=</auth>
*** User 2023-11-16 09:20:41.025 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:20:41.025 ***🔗
bOb_befriend_and_alienate_3120@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-16 09:20:41.026 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='52e9a29bc9a8d7ef' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3120@localhost'>
*** User 2023-11-16 09:20:41.026 ***🔗
bOb_befriend_and_alienate_3120@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-16 09:20:41.026 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 out
<iq type='set' id='8a27c7b2b1eccdff9e13a5dd82e94ac9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:20:41.026 ***🔗
bOb_befriend_and_alienate_3120@localhost/res1 in
<iq id='8a27c7b2b1eccdff9e13a5dd82e94ac9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3120@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:20:41.027 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 out
<iq type='set' id='1d5d2bb195694da1c304dc0f46b94bfa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:20:41.027 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='1d5d2bb195694da1c304dc0f46b94bfa' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:20:41.028 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 out
<presence/>
*** User 2023-11-16 09:20:41.029 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='bob_befriend_and_alienate_3120@localhost/res1' to='bob_befriend_and_alienate_3120@localhost/res1'/>
*** User 2023-11-16 09:20:41.031 ***🔗
REST request:
Code: 200
Req: {<0.17875.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9eb940b6f1613b8b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1204}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.033 ***🔗
REST request:
Code: 200
Req: {<0.17881.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2d38294133262ce">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,912}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.036 ***🔗
REST request:
Code: 204
Req: {<0.17889.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2fcaa9dcd3b3eccb">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3120@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,2261}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3120@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.039 ***🔗
REST request:
Code: 204
Req: {<0.17894.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f1b60576c8532d50">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3120@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,1993}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3120@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.042 ***🔗
REST request:
Code: 204
Req: {<0.17897.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bdac42fb010ec5f5">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3120@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,1783}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3120@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.044 ***🔗
REST request:
Code: 200
Req: {<0.17899.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56ec3d4d67786edb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
213,875}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.047 ***🔗
REST request:
Code: 200
Req: {<0.17901.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8e38855e21a0e07f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
211,2668}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.051 ***🔗
REST request:
Code: 204
Req: {<0.17903.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7efd291b73f8514e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,2922}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.053 ***🔗
REST request:
Code: 200
Req: {<0.17909.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be46bb989fbdeeb2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3120@localhost\",\"ask\":\"out\"}]">>,
210,1210}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.058 ***🔗
REST request:
Code: 204
Req: {<0.17913.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d7d52cef15ad2314">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,4069}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.060 ***🔗
REST request:
Code: 200
Req: {<0.17915.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b125535f4aab3684">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
209,1041}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.063 ***🔗
REST request:
Code: 200
Req: {<0.17917.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a4b6d78f78f0a70">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
213,1543}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.067 ***🔗
REST request:
Code: 204
Req: {<0.17919.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb3ae618984d140f">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,3043}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.114 ***🔗
REST request:
Code: 200
Req: {<0.17925.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb57220e404140c1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3120@localhost\",\"ask\":\"out\"}]">>,
212,1509}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.118 ***🔗
REST request:
Code: 204
Req: {<0.17927.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d4cbadf7b69baed">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,3391}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.121 ***🔗
REST request:
Code: 200
Req: {<0.17929.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f4dfa95853b7c768">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
211,1228}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.123 ***🔗
REST request:
Code: 200
Req: {<0.17931.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86813fa14e5a6aaf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
213,1029}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.129 ***🔗
REST request:
Code: 204
Req: {<0.17933.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0404ae70cd99bcb">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,5317}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.131 ***🔗
REST request:
Code: 200
Req: {<0.17935.2>,
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e5be4226b1f6a9a7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1044}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.133 ***🔗
REST request:
Code: 200
Req: {<0.17937.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8aa2d0d1710cd28d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3120@localhost\",\"ask\":\"none\"}]">>,
213,1088}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.136 ***🔗
REST request:
Code: 204
Req: {<0.17939.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f4364a09f717227a">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>}],
<<>>,80,1989}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost/alice_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.138 ***🔗
REST request:
Code: 200
Req: {<0.17941.2>,
<<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca75c4977d859fbd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:20:40 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1412}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3120@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 09:20:41.138 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='push9a451a37bbcfa645' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.138 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='pushfc1e4e9ce599d984' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='push6f2f48ced5c1d8f1' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<presence from='bob_befriend_and_alienate_3120@localhost/res1' to='alice_befriend_and_alienate_3120@localhost/res1'/>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='pushea2895a575765a35' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<presence from='bob_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' type='subscribed'/>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='pushbc314652fc816baa' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<presence from='bob_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' type='subscribe'/>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='push8d33169b862981c9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<iq from='alice_befriend_and_alienate_3120@localhost' to='alice_befriend_and_alienate_3120@localhost/res1' id='pushf8118a8cf6de4330' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:41.139 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
<presence from='bob_befriend_and_alienate_3120@localhost/res1' to='alice_befriend_and_alienate_3120@localhost/res1' type='unavailable'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='pushed6dcc759d814799' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' type='subscribe'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='pushce0fdcb6bd326a6d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='pushe8f8390bcd085503' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost/res1' to='bob_befriend_and_alienate_3120@localhost/res1'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='push5e7e60d767bf360f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' type='subscribed'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost/res1' to='bob_befriend_and_alienate_3120@localhost/res1' type='unavailable'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='push53710abba3f8f338' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' type='unsubscribe'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='push98a8ddaa8a381fe2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<presence from='alice_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' type='unsubscribed'/>
*** User 2023-11-16 09:20:46.140 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
<iq from='bob_befriend_and_alienate_3120@localhost' to='bob_befriend_and_alienate_3120@localhost/res1' id='pusha18e8d24c30fef65' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_3120@localhost'/>
</query>
</iq>
*** User 2023-11-16 09:20:51.141 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:20:51.141 ***🔗
bob_befriend_and_alienate_3120@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:20:51.141 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:20:51.142 ***🔗
alice_befriend_and_alienate_3120@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:20:51
=== successfully completed test case
=== === Returned value: ok