=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.52320.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{preset,"ldap_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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.rest_SUITE.logs/run.2024-02-23_08.46.35/rest_suite.befriend_and_alienate.102402.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@6ebac22519b0.2024-02-23_08.34.56/big_tests.tests.rest_SUITE.logs/run.2024-02-23_08.46.35/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,
ldap =>
#{filter => <<"(objectClass=inetOrgPerson)">>,
base => <<"ou=Users,dc=esl,dc=com">>,
uids => [{<<"uid">>,<<"%u">>}],
search_fields =>
[{<<"User">>,<<"%u">>},
{<<"Full Name">>,<<"displayName">>},
{<<"Given Name">>,<<"givenName">>},
{<<"Middle Name">>,<<"initials">>},
{<<"Family Name">>,<<"sn">>},
{<<"Nickname">>,<<"%u">>},
{<<"Birthday">>,<<"birthDay">>},
{<<"Country">>,<<"c">>},
{<<"City">>,<<"l">>},
{<<"Email">>,<<"mail">>},
{<<"Organization Name">>,<<"o">>},
{<<"Organization Unit">>,<<"ou">>}],
pool_tag => default,deref => never,
vcard_map =>
[{<<"NICKNAME">>,<<"%u">>,[]},
{<<"FN">>,<<"%s">>,[<<"displayName">>]},
{<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
{<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
{<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
{<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
{<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
{<<"CTRY">>,<<"%s">>,[<<"c">>]},
{<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
{<<"STREET">>,<<"%s">>,[<<"street">>]},
{<<"REGION">>,<<"%s">>,[<<"st">>]},
{<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
{<<"TITLE">>,<<"%s">>,[<<"title">>]},
{<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
{<<"DESC">>,<<"%s">>,[<<"description">>]},
{<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
{<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
{<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
{<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
{<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
search_reported =>
[{<<"Full Name">>,<<"FN">>},
{<<"Given Name">>,<<"FIRST">>},
{<<"Middle Name">>,<<"MIDDLE">>},
{<<"Family Name">>,<<"LAST">>},
{<<"Nickname">>,<<"NICK">>},
{<<"Birthday">>,<<"BDAY">>},
{<<"Country">>,<<"CTRY">>},
{<<"City">>,<<"LOCALITY">>},
{<<"Email">>,<<"EMAIL">>},
{<<"Organization Name">>,<<"ORGNAME">>},
{<<"Organization Unit">>,<<"ORGUNIT">>}],
search_operator => 'and',binary_search_fields => []},
backend => ldap,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@6ebac22519b0.2024-02-23_08.34.56"
=== Started at 2024-02-23 08:46:35
*** User 2024-02-23 08:46:35.799 ***🔗
alicE_befriend_and_alienate_1719@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-02-23 08:46:35.799 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff6e2eb3346921f3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.799 ***🔗
alicE_befriend_and_alienate_1719@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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.799 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzE5AG1hdHlncnlzYQ==</auth>
*** User 2024-02-23 08:46:35.800 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:46:35.800 ***🔗
alicE_befriend_and_alienate_1719@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-02-23 08:46:35.801 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='93b5d1ecb8defa46' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1719@localhost'>
*** User 2024-02-23 08:46:35.801 ***🔗
alicE_befriend_and_alienate_1719@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-02-23 08:46:35.801 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 out
<iq type='set' id='11011bd637c95f92132b080f7fbbf9e4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:46:35.801 ***🔗
alicE_befriend_and_alienate_1719@localhost/res1 in
<iq id='11011bd637c95f92132b080f7fbbf9e4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1719@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:46:35.802 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 out
<iq type='set' id='a1a3eb4c6df923392ce833b4b4d4c9ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.802 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='a1a3eb4c6df923392ce833b4b4d4c9ae' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.802 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 out
<presence/>
*** User 2024-02-23 08:46:35.803 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost/res1' to='alice_befriend_and_alienate_1719@localhost/res1'/>
*** User 2024-02-23 08:46:35.803 ***🔗
bOb_befriend_and_alienate_1719@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-02-23 08:46:35.804 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0c2cd713adcee7a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-23 08:46:35.804 ***🔗
bOb_befriend_and_alienate_1719@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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-23 08:46:35.804 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTcxOQBtYWtyb2xpa2E=</auth>
*** User 2024-02-23 08:46:35.805 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 08:46:35.805 ***🔗
bOb_befriend_and_alienate_1719@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-02-23 08:46:35.805 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb19585869bd59c7' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1719@localhost'>
*** User 2024-02-23 08:46:35.805 ***🔗
bOb_befriend_and_alienate_1719@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-02-23 08:46:35.806 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 out
<iq type='set' id='62e059661fbf8f0ee18a9a97283ebeea'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 08:46:35.806 ***🔗
bOb_befriend_and_alienate_1719@localhost/res1 in
<iq id='62e059661fbf8f0ee18a9a97283ebeea' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1719@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-23 08:46:35.806 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 out
<iq type='set' id='09be3fede69eade1b9897ff02b7b9a2d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.806 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='09be3fede69eade1b9897ff02b7b9a2d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 08:46:35.806 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 out
<presence/>
*** User 2024-02-23 08:46:35.807 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='bob_befriend_and_alienate_1719@localhost/res1' to='bob_befriend_and_alienate_1719@localhost/res1'/>
*** User 2024-02-23 08:46:35.809 ***🔗
REST request:
Code: 200
Req: {<0.52422.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be8c0cffda62e7c9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1033}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.811 ***🔗
REST request:
Code: 200
Req: {<0.52432.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"128518669f0b879b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1031}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.814 ***🔗
REST request:
Code: 204
Req: {<0.52443.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"09c041e700280d91">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1592}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.816 ***🔗
REST request:
Code: 204
Req: {<0.52450.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc3adea6af6561f9">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1534}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.819 ***🔗
REST request:
Code: 204
Req: {<0.52456.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0bd4ee8cae28b53">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1566}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.821 ***🔗
REST request:
Code: 200
Req: {<0.52463.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98fd3656f67d5ad4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}]">>,
213,940}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.822 ***🔗
REST request:
Code: 200
Req: {<0.52467.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9aae58249f2aa8e2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}]">>,
211,739}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.825 ***🔗
REST request:
Code: 204
Req: {<0.52471.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c831161af271569">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1453}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.826 ***🔗
REST request:
Code: 200
Req: {<0.52473.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4641093d9cef9405">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}]">>,
210,786}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.829 ***🔗
REST request:
Code: 204
Req: {<0.52477.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3910689772dca7af">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1422}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.830 ***🔗
REST request:
Code: 200
Req: {<0.52481.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"694bc459c3ac75b0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}]">>,
209,796}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.832 ***🔗
REST request:
Code: 200
Req: {<0.52483.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e04760915f4913f8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}]">>,
213,1068}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.835 ***🔗
REST request:
Code: 204
Req: {<0.52485.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3d582282025e73a">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1545}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.836 ***🔗
REST request:
Code: 200
Req: {<0.52487.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1a51f03408945a47">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}]">>,
212,840}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.839 ***🔗
REST request:
Code: 204
Req: {<0.52489.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0f4b4a756d75edde">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,1329}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-02-23 08:46:35.840 ***🔗
REST request:
Code: 200
Req: {<0.52491.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f698b7b960906ef1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1719@localhost\"}]">>,
211,827}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.842 ***🔗
REST request:
Code: 200
Req: {<0.52493.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af409bef40068e57">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}]">>,
213,786}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.845 ***🔗
REST request:
Code: 204
Req: {<0.52495.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8fb8671aafb2c7ab">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,2525}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.847 ***🔗
REST request:
Code: 200
Req: {<0.52497.0>,
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89d8f09508e18661">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,720}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.848 ***🔗
REST request:
Code: 200
Req: {<0.52499.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"052123b41b563a18">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1719@localhost\"}]">>,
213,733}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.849 ***🔗
REST request:
Code: 204
Req: {<0.52501.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2479fbfdda298d5">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>}],
<<>>,80,561}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost/alice_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.855 ***🔗
REST request:
Code: 200
Req: {<0.52503.0>,
<<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ef89f996e9a98db5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 08:46:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,5084}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1719@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-02-23 08:46:35.855 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='push246c97a89c058053' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='push5d232a16331898d3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='push2ca19e99bab422ff' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<presence from='bob_befriend_and_alienate_1719@localhost/res1' to='alice_befriend_and_alienate_1719@localhost/res1'/>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='pushaebb53ecbb440420' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<presence from='bob_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' type='subscribed'/>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='pusha63137236ce03316' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<presence from='bob_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' type='subscribe'/>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='push4c50e92f8f3fb011' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<iq from='alice_befriend_and_alienate_1719@localhost' to='alice_befriend_and_alienate_1719@localhost/res1' id='push0e250a2376d0119a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:35.856 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
<presence from='bob_befriend_and_alienate_1719@localhost/res1' to='alice_befriend_and_alienate_1719@localhost/res1' type='unavailable'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='pushdeb1c7d96e766bcc' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' type='subscribe'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='push2c99728b89c8d459' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='pushe8e89dfda01c0d9e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost/res1' to='bob_befriend_and_alienate_1719@localhost/res1'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='pushf3812dea6621c100' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' type='subscribed'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost/res1' to='bob_befriend_and_alienate_1719@localhost/res1' type='unavailable'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='push3f65996fd0d353e1' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' type='unsubscribe'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='push5e3d6e29b55aee2f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<presence from='alice_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' type='unsubscribed'/>
*** User 2024-02-23 08:46:40.857 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
<iq from='bob_befriend_and_alienate_1719@localhost' to='bob_befriend_and_alienate_1719@localhost/res1' id='push901f91e70569955d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_1719@localhost'/>
</query>
</iq>
*** User 2024-02-23 08:46:45.858 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:46:45.858 ***🔗
bob_befriend_and_alienate_1719@localhost/res1 in
</stream:stream>
*** User 2024-02-23 08:46:45.858 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 out
</stream:stream>
*** User 2024-02-23 08:46:45.858 ***🔗
alice_befriend_and_alienate_1719@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-23 08:46:45
=== successfully completed test case
=== === Returned value: ok