=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.19120.1>},
{{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@10142ef37af8.2023-11-16_10.13.42/big_tests.tests.rest_SUITE.logs/run.2023-11-16_10.24.22/rest_suite.befriend_and_alienate.113282.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@10142ef37af8.2023-11-16_10.13.42/big_tests.tests.rest_SUITE.logs/run.2023-11-16_10.24.22/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 => mnesia,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 => ldap,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,
ldap =>
#{base => <<"ou=Users,dc=esl,dc=com">>,
binary_search_fields => [],deref => never,
filter => <<"(objectClass=inetOrgPerson)">>,
pool_tag => default,
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">>}],
search_operator => 'and',
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">>}],
uids => [{<<"uid">>,<<"%u">>}],
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">>]}]},
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@10142ef37af8.2023-11-16_10.13.42"
=== Started at 2023-11-16 10:24:23
*** User 2023-11-16 10:24:23.253 ***🔗
alicE_befriend_and_alienate_1683@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 10:24:23.254 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='424888da0b5b1500' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 10:24:23.254 ***🔗
alicE_befriend_and_alienate_1683@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 2023-11-16 10:24:23.254 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjgzAG1hdHlncnlzYQ==</auth>
*** User 2023-11-16 10:24:23.255 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 10:24:23.255 ***🔗
alicE_befriend_and_alienate_1683@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 10:24:23.255 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='075e9251a05eeee1' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1683@localhost'>
*** User 2023-11-16 10:24:23.256 ***🔗
alicE_befriend_and_alienate_1683@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 10:24:23.256 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 out
<iq type='set' id='46d2c3169c429c2bd28cea94eaa574c0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 10:24:23.256 ***🔗
alicE_befriend_and_alienate_1683@localhost/res1 in
<iq id='46d2c3169c429c2bd28cea94eaa574c0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1683@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 10:24:23.256 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 out
<iq type='set' id='03eafc436ceb2952196027b4534b8b45'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 10:24:23.256 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='03eafc436ceb2952196027b4534b8b45' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 10:24:23.257 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 out
<presence/>
*** User 2023-11-16 10:24:23.257 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost/res1' to='alice_befriend_and_alienate_1683@localhost/res1'/>
*** User 2023-11-16 10:24:23.258 ***🔗
bOb_befriend_and_alienate_1683@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 10:24:23.258 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='05fc57f89c5e6631' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 10:24:23.258 ***🔗
bOb_befriend_and_alienate_1683@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 2023-11-16 10:24:23.258 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY4MwBtYWtyb2xpa2E=</auth>
*** User 2023-11-16 10:24:23.260 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 10:24:23.260 ***🔗
bOb_befriend_and_alienate_1683@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 10:24:23.260 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d549c020a81e5a0' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1683@localhost'>
*** User 2023-11-16 10:24:23.260 ***🔗
bOb_befriend_and_alienate_1683@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 10:24:23.260 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 out
<iq type='set' id='50bc2c2e1f75761d4d5a97ce911ee758'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 10:24:23.261 ***🔗
bOb_befriend_and_alienate_1683@localhost/res1 in
<iq id='50bc2c2e1f75761d4d5a97ce911ee758' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1683@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 10:24:23.261 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 out
<iq type='set' id='9643400b1ff6b6bc9fdb33bba1fd617d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 10:24:23.261 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='9643400b1ff6b6bc9fdb33bba1fd617d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 10:24:23.262 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 out
<presence/>
*** User 2023-11-16 10:24:23.262 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='bob_befriend_and_alienate_1683@localhost/res1' to='bob_befriend_and_alienate_1683@localhost/res1'/>
*** User 2023-11-16 10:24:23.264 ***🔗
REST request:
Code: 200
Req: {<0.19223.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1ceda83618213d2e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,908}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.267 ***🔗
REST request:
Code: 200
Req: {<0.19230.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f4b5e1918221a224">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1375}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.270 ***🔗
REST request:
Code: 204
Req: {<0.19235.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1285d9fe10bd3805">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1683@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1820}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1683@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.272 ***🔗
REST request:
Code: 204
Req: {<0.19243.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e436fe1b81b5b7a">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1683@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1665}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1683@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.275 ***🔗
REST request:
Code: 204
Req: {<0.19253.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e578f61421706ec5">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1683@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1551}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1683@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.277 ***🔗
REST request:
Code: 200
Req: {<0.19260.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14cc904d2c83be42">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
213,735}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.279 ***🔗
REST request:
Code: 200
Req: {<0.19263.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e2b9f54289ca2c6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
211,974}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.281 ***🔗
REST request:
Code: 204
Req: {<0.19265.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51631cf6fab6de72">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1172}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.282 ***🔗
REST request:
Code: 200
Req: {<0.19269.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"82b3c944d86ac0e2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1683@localhost\",\"ask\":\"out\"}]">>,
210,642}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.316 ***🔗
REST request:
Code: 204
Req: {<0.19271.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d69a082f5857588e">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,32405}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.318 ***🔗
REST request:
Code: 200
Req: {<0.19277.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fb997287fc6f25c5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
209,1075}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.320 ***🔗
REST request:
Code: 200
Req: {<0.19279.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e3cd50ae1a85061e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
213,823}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.322 ***🔗
REST request:
Code: 204
Req: {<0.19283.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8756565d428b344f">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1295}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.324 ***🔗
REST request:
Code: 200
Req: {<0.19287.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b07ee273f345732">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1683@localhost\",\"ask\":\"out\"}]">>,
212,749}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.326 ***🔗
REST request:
Code: 204
Req: {<0.19289.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b8984f5d53b0618">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,1295}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.328 ***🔗
REST request:
Code: 200
Req: {<0.19291.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8113bf7eec0868f0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
211,844}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.329 ***🔗
REST request:
Code: 200
Req: {<0.19293.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68670da59aa391cb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
213,887}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.333 ***🔗
REST request:
Code: 204
Req: {<0.19295.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3a9cbedd27902de9">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,2726}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.335 ***🔗
REST request:
Code: 200
Req: {<0.19297.1>,
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f6ffa7f206f7da0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,972}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.337 ***🔗
REST request:
Code: 200
Req: {<0.19299.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dba76e4e400e89d4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1683@localhost\",\"ask\":\"none\"}]">>,
213,1185}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.339 ***🔗
REST request:
Code: 204
Req: {<0.19301.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fc000c5b5c17967f">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>}],
<<>>,80,722}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost/alice_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.341 ***🔗
REST request:
Code: 200
Req: {<0.19303.1>,
<<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4559da7f2428a49d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 10:24:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1050}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1683@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push324cebf35942b9b0' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push4f53a1c03511c6d9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push91f4b301805f8c07' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<presence from='bob_befriend_and_alienate_1683@localhost/res1' to='alice_befriend_and_alienate_1683@localhost/res1'/>
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push0dfb11aef26e97f9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.341 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<presence from='bob_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' type='subscribed'/>
*** User 2023-11-16 10:24:23.342 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push3c9681842564f6d8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.342 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<presence from='bob_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' type='subscribe'/>
*** User 2023-11-16 10:24:23.342 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='pushd1cca5d412b71951' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.342 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<iq from='alice_befriend_and_alienate_1683@localhost' to='alice_befriend_and_alienate_1683@localhost/res1' id='push709ece18fd29da98' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:23.342 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
<presence from='bob_befriend_and_alienate_1683@localhost/res1' to='alice_befriend_and_alienate_1683@localhost/res1' type='unavailable'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='pushf799abb3d3bf4eae' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' type='subscribe'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='pushc5281e091ee18a9f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='push56ef679a59523b39' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost/res1' to='bob_befriend_and_alienate_1683@localhost/res1'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='push068f0cef9f3b373d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' type='subscribed'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost/res1' to='bob_befriend_and_alienate_1683@localhost/res1' type='unavailable'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='push9c59ea2eff13de7f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' type='unsubscribe'/>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='pushcd5f87c0893ca5db' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:28.343 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<presence from='alice_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' type='unsubscribed'/>
*** User 2023-11-16 10:24:28.344 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
<iq from='bob_befriend_and_alienate_1683@localhost' to='bob_befriend_and_alienate_1683@localhost/res1' id='pushabdcd4c99922e58a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_1683@localhost'/>
</query>
</iq>
*** User 2023-11-16 10:24:33.345 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 out
</stream:stream>
*** User 2023-11-16 10:24:33.345 ***🔗
bob_befriend_and_alienate_1683@localhost/res1 in
</stream:stream>
*** User 2023-11-16 10:24:33.345 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 out
</stream:stream>
*** User 2023-11-16 10:24:33.345 ***🔗
alice_befriend_and_alienate_1683@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 10:24:33
=== successfully completed test case
=== === Returned value: ok