=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.78210.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_SUITE.logs/run.2024-03-11_09.19.54/rest_suite.befriend_and_alienate.56965.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_SUITE.logs/run.2024-03-11_09.19.54/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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@fe524ba9ae35.2024-03-11_09.05.30"
=== Started at 2024-03-11 09:19:55
*** User 2024-03-11 09:19:55.302 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 09:19:55.303 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37b91dd43b9e393a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:19:55.303 ***🔗
alicE_befriend_and_alienate_2836@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 2024-03-11 09:19:55.303 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODM2AG1hdHlncnlzYQ==</auth>
*** User 2024-03-11 09:19:55.304 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:19:55.304 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 09:19:55.305 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9208f3235be4a3e5' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2836@localhost'>
*** User 2024-03-11 09:19:55.305 ***🔗
alicE_befriend_and_alienate_2836@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 2024-03-11 09:19:55.305 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 out
<iq type='set' id='76ca79fd75aa1b8f7ac18207c77bfcaf'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:19:55.305 ***🔗
alicE_befriend_and_alienate_2836@localhost/res1 in
<iq id='76ca79fd75aa1b8f7ac18207c77bfcaf' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2836@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:19:55.305 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 out
<iq type='set' id='6575a0926d5697cd229075b6decf9b07'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:19:55.306 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='6575a0926d5697cd229075b6decf9b07' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:19:55.306 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 out
<presence/>
*** User 2024-03-11 09:19:55.308 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost/res1' to='alice_befriend_and_alienate_2836@localhost/res1'/>
*** User 2024-03-11 09:19:55.308 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 09:19:55.309 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='831488ce9ff2d4c2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:19:55.309 ***🔗
bOb_befriend_and_alienate_2836@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 2024-03-11 09:19:55.309 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjgzNgBtYWtyb2xpa2E=</auth>
*** User 2024-03-11 09:19:55.310 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:19:55.310 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-11 09:19:55.310 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8350d5fc96129a48' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2836@localhost'>
*** User 2024-03-11 09:19:55.310 ***🔗
bOb_befriend_and_alienate_2836@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 2024-03-11 09:19:55.310 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 out
<iq type='set' id='9a59da55c1a1124854932f686a83a4e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:19:55.311 ***🔗
bOb_befriend_and_alienate_2836@localhost/res1 in
<iq id='9a59da55c1a1124854932f686a83a4e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2836@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:19:55.311 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 out
<iq type='set' id='b00d8e30e2d2f30cfd0752e3e325ff5b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:19:55.311 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='b00d8e30e2d2f30cfd0752e3e325ff5b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:19:55.312 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 out
<presence/>
*** User 2024-03-11 09:19:55.313 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='bob_befriend_and_alienate_2836@localhost/res1' to='bob_befriend_and_alienate_2836@localhost/res1'/>
*** User 2024-03-11 09:19:55.316 ***🔗
REST request:
Code: 200
Req: {<0.78314.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"55d233edadea19ed">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1262}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.318 ***🔗
REST request:
Code: 200
Req: {<0.78324.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f7709dd31e468bd5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1252}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.322 ***🔗
REST request:
Code: 204
Req: {<0.78330.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"15ac7d9b6c8049e5">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,2766}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.326 ***🔗
REST request:
Code: 204
Req: {<0.78344.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f15fedd1e607dfb3">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,3028}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.330 ***🔗
REST request:
Code: 204
Req: {<0.78349.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62a6d98198b25f5a">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,2300}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.332 ***🔗
REST request:
Code: 200
Req: {<0.78351.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b6d0300fbcf6955">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}]">>,
213,1130}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.334 ***🔗
REST request:
Code: 200
Req: {<0.78353.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"992399bde250cdc6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}]">>,
211,1232}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.368 ***🔗
REST request:
Code: 204
Req: {<0.78355.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd7ef484e8749a39">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,32596}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.370 ***🔗
REST request:
Code: 200
Req: {<0.78361.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"93b15a1ab3c20d77">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}]">>,
210,1373}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.375 ***🔗
REST request:
Code: 204
Req: {<0.78363.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53c4c3dc353ccd31">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,3368}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.377 ***🔗
REST request:
Code: 200
Req: {<0.78367.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98790cc8f2678def">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}]">>,
209,1280}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.379 ***🔗
REST request:
Code: 200
Req: {<0.78369.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a45866b22e5b869">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}]">>,
213,1156}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.386 ***🔗
REST request:
Code: 204
Req: {<0.78371.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c5d2dba0cd402d6">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,5792}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.389 ***🔗
REST request:
Code: 200
Req: {<0.78377.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dbbb070a7c8d8f16">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}]">>,
212,1531}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.394 ***🔗
REST request:
Code: 204
Req: {<0.78379.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7bcbfd748a5a8dd">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,3413}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-03-11 09:19:55.396 ***🔗
REST request:
Code: 200
Req: {<0.78381.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"64af4739f2020c46">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2836@localhost\"}]">>,
211,1189}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.398 ***🔗
REST request:
Code: 200
Req: {<0.78383.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9e06a75445785cef">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}]">>,
213,1253}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.405 ***🔗
REST request:
Code: 204
Req: {<0.78385.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d62ac33ded03394b">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,6005}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.407 ***🔗
REST request:
Code: 200
Req: {<0.78387.0>,
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"770228b89a8b49a9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1019}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.409 ***🔗
REST request:
Code: 200
Req: {<0.78389.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1dc5124ce7710a1c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2836@localhost\"}]">>,
213,1119}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.412 ***🔗
REST request:
Code: 204
Req: {<0.78391.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6a6ed0df9271abd2">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>}],
<<>>,80,1826}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost/alice_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.414 ***🔗
REST request:
Code: 200
Req: {<0.78393.0>,
<<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a270004f0484eaa6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:19:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1216}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2836@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='pushbd4b7117629cc092' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='push8f9f74a5830fc43a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='pusha66e97b225cb5a01' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<presence from='bob_befriend_and_alienate_2836@localhost/res1' to='alice_befriend_and_alienate_2836@localhost/res1'/>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='push0cd1999654bdab0a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<presence from='bob_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' type='subscribed'/>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='push3eb5116fde92aa12' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<presence from='bob_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' type='subscribe'/>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='pushe059275410160044' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<iq from='alice_befriend_and_alienate_2836@localhost' to='alice_befriend_and_alienate_2836@localhost/res1' id='push226e1124fbe4f7f4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:19:55.415 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
<presence from='bob_befriend_and_alienate_2836@localhost/res1' to='alice_befriend_and_alienate_2836@localhost/res1' type='unavailable'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push7e1ac632dd2cb2b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' type='subscribe'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='pushbcfdd990363e541a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push67d4e4700d3d9067' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost/res1' to='bob_befriend_and_alienate_2836@localhost/res1'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push623efa092e64a5fc' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' type='subscribed'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost/res1' to='bob_befriend_and_alienate_2836@localhost/res1' type='unavailable'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push4a670140d4d11f8e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' type='unsubscribe'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push99cf30bb2ae8c3ee' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<presence from='alice_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' type='unsubscribed'/>
*** User 2024-03-11 09:20:00.416 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
<iq from='bob_befriend_and_alienate_2836@localhost' to='bob_befriend_and_alienate_2836@localhost/res1' id='push113d5863a1052deb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2836@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:20:05.417 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:20:05.418 ***🔗
bob_befriend_and_alienate_2836@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:20:05.418 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:20:05.419 ***🔗
alice_befriend_and_alienate_2836@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:20:05
=== successfully completed test case
=== === Returned value: ok