=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.19623.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@d468646c6aa5.2024-04-22_14.48.15/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.59.33/rest_suite.befriend_and_alienate.41092.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@d468646c6aa5.2024-04-22_14.48.15/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.59.33/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@d468646c6aa5.2024-04-22_14.48.15"
=== Started at 2024-04-22 14:59:33
*** User 2024-04-22 14:59:33.722 ***🔗
alicE_befriend_and_alienate_1698@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-04-22 14:59:33.722 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3b4de145de2fd2d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:59:33.722 ***🔗
alicE_befriend_and_alienate_1698@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-04-22 14:59:33.722 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjk4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:59:33.724 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:59:33.724 ***🔗
alicE_befriend_and_alienate_1698@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-04-22 14:59:33.724 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72263bbbe9e1eaad' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1698@localhost'>
*** User 2024-04-22 14:59:33.724 ***🔗
alicE_befriend_and_alienate_1698@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-04-22 14:59:33.725 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 out
<iq type='set' id='569fad692d603245ff09bc003a6fae68'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:59:33.725 ***🔗
alicE_befriend_and_alienate_1698@localhost/res1 in
<iq id='569fad692d603245ff09bc003a6fae68' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:59:33.725 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 out
<iq type='set' id='d4052089300a269181cf04e185deec8b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.726 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='d4052089300a269181cf04e185deec8b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.726 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 out
<presence/>
*** User 2024-04-22 14:59:33.726 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost/res1' to='alice_befriend_and_alienate_1698@localhost/res1'/>
*** User 2024-04-22 14:59:33.727 ***🔗
bOb_befriend_and_alienate_1698@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-04-22 14:59:33.728 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffc62614e1ca8350' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:59:33.728 ***🔗
bOb_befriend_and_alienate_1698@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-04-22 14:59:33.728 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY5OABtYWtyb2xpa2E=</auth>
*** User 2024-04-22 14:59:33.730 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:59:33.730 ***🔗
bOb_befriend_and_alienate_1698@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-04-22 14:59:33.730 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee09cab9b387355d' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1698@localhost'>
*** User 2024-04-22 14:59:33.730 ***🔗
bOb_befriend_and_alienate_1698@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-04-22 14:59:33.730 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 out
<iq type='set' id='ecefceabef9117f05439bbf668f85f58'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:59:33.731 ***🔗
bOb_befriend_and_alienate_1698@localhost/res1 in
<iq id='ecefceabef9117f05439bbf668f85f58' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:59:33.731 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 out
<iq type='set' id='066d3c2b0e49e8c76c1465cb88c4a7bc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.731 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='066d3c2b0e49e8c76c1465cb88c4a7bc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.731 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 out
<presence/>
*** User 2024-04-22 14:59:33.732 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='bob_befriend_and_alienate_1698@localhost/res1' to='bob_befriend_and_alienate_1698@localhost/res1'/>
*** User 2024-04-22 14:59:33.735 ***🔗
REST request:
Code: 200
Req: {<0.19729.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e16653b6dcef11ec">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1394}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.737 ***🔗
REST request:
Code: 200
Req: {<0.19739.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cadd78512101fe6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1192}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.740 ***🔗
REST request:
Code: 204
Req: {<0.19746.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3357c4867512cc00">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1962}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1698@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.743 ***🔗
REST request:
Code: 204
Req: {<0.19755.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1146a01bf53ec93">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,2000}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1698@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.747 ***🔗
REST request:
Code: 204
Req: {<0.19759.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"96a3ccbf6bbfaa1f">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,2128}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1698@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.749 ***🔗
REST request:
Code: 200
Req: {<0.19765.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f34518cf157a71b4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
213,1133}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.783 ***🔗
REST request:
Code: 200
Req: {<0.19770.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c763dc5c701e045">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
211,32370}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.786 ***🔗
REST request:
Code: 204
Req: {<0.19776.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5740052b1c1f7a0f">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1886}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.788 ***🔗
REST request:
Code: 200
Req: {<0.19778.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d7cec53dac7a29d2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1698@localhost\",\"ask\":\"out\"}]">>,
210,994}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.791 ***🔗
REST request:
Code: 204
Req: {<0.19782.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e9fa1a917e07235">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1962}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.793 ***🔗
REST request:
Code: 200
Req: {<0.19786.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"392afd4d0e83c912">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
209,939}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.795 ***🔗
REST request:
Code: 200
Req: {<0.19788.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8940f963e7c5437c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
213,1057}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.798 ***🔗
REST request:
Code: 204
Req: {<0.19790.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a3c817da4980b3d1">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1596}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.800 ***🔗
REST request:
Code: 200
Req: {<0.19792.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c5ad8ec9b7b3b17">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1698@localhost\",\"ask\":\"out\"}]">>,
212,972}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.803 ***🔗
REST request:
Code: 204
Req: {<0.19794.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"641a62b5d02764f6">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1771}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.806 ***🔗
REST request:
Code: 200
Req: {<0.19796.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eb5ba9a965f8c792">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
211,1023}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.808 ***🔗
REST request:
Code: 200
Req: {<0.19798.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b93477701888a054">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
213,1247}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.813 ***🔗
REST request:
Code: 204
Req: {<0.19800.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"abe42deaeda5a4ba">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,3547}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.815 ***🔗
REST request:
Code: 200
Req: {<0.19802.1>,
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86b630b956d919d7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1172}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.818 ***🔗
REST request:
Code: 200
Req: {<0.19804.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"132d0e6accbd3c38">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1698@localhost\",\"ask\":\"none\"}]">>,
213,1133}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.820 ***🔗
REST request:
Code: 204
Req: {<0.19806.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dfea930504a099b6">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,940}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost/alice_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.822 ***🔗
REST request:
Code: 200
Req: {<0.19808.1>,
<<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5eba4e7f0f5d1021">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1164}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1698@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.822 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='push2d65ab53ba2b3f4f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.822 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='push3151c7ccc7f8d886' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.822 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='pushbf0b70ffb3f9dbf6' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_1698@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<presence from='bob_befriend_and_alienate_1698@localhost/res1' to='alice_befriend_and_alienate_1698@localhost/res1'/>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='push7636a78df3a8d8e2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<presence from='bob_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' type='subscribed'/>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='push46a602b208034d5b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<presence from='bob_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' type='subscribe'/>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='pushf38ec9e675af6d1e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<iq from='alice_befriend_and_alienate_1698@localhost' to='alice_befriend_and_alienate_1698@localhost/res1' id='push57ebf23071a18c99' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1698@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 14:59:33.823 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
<presence from='bob_befriend_and_alienate_1698@localhost/res1' to='alice_befriend_and_alienate_1698@localhost/res1' type='unavailable'/>
*** User 2024-04-22 14:59:38.823 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='pushd9259853101b7b5d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' type='subscribe'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='push9b3032093cb7136b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='push019bc084224feb3e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_1698@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost/res1' to='bob_befriend_and_alienate_1698@localhost/res1'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='push2799a3b0443de9fe' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' type='subscribed'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost/res1' to='bob_befriend_and_alienate_1698@localhost/res1' type='unavailable'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='pushb80b1442d8bec6aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' type='unsubscribe'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='pushe6f846ac6989d601' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<presence from='alice_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' type='unsubscribed'/>
*** User 2024-04-22 14:59:38.824 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
<iq from='bob_befriend_and_alienate_1698@localhost' to='bob_befriend_and_alienate_1698@localhost/res1' id='pushf2fac7d099b9e656' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1698@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 14:59:43.825 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:59:43.826 ***🔗
bob_befriend_and_alienate_1698@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:59:43.826 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:59:43.827 ***🔗
alice_befriend_and_alienate_1698@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:59:43
=== successfully completed test case
=== === Returned value: ok