=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.19521.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@3cf9df7a6501.2024-04-16_10.54.58/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.06.14/rest_suite.befriend_and_alienate.104322.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@3cf9df7a6501.2024-04-16_10.54.58/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.06.14/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@3cf9df7a6501.2024-04-16_10.54.58"
=== Started at 2024-04-16 11:06:14
*** User 2024-04-16 11:06:14.721 ***🔗
alicE_befriend_and_alienate_1690@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-16 11:06:14.721 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8eef0cf86173928' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:06:14.721 ***🔗
alicE_befriend_and_alienate_1690@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-16 11:06:14.721 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjkwAG1hdHlncnlzYQ==</auth>
*** User 2024-04-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@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-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f0f9a9361f5b4ec' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1690@localhost'>
*** User 2024-04-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@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-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 out
<iq type='set' id='6940faf8a8faaf455430b8cf66941b42'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:06:14.723 ***🔗
alicE_befriend_and_alienate_1690@localhost/res1 in
<iq id='6940faf8a8faaf455430b8cf66941b42' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1690@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:06:14.723 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 out
<iq type='set' id='0e155368093a4ef1dbfb0fa035d87a30'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:06:14.724 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='0e155368093a4ef1dbfb0fa035d87a30' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:06:14.724 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 out
<presence/>
*** User 2024-04-16 11:06:14.724 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost/res1' to='alice_befriend_and_alienate_1690@localhost/res1'/>
*** User 2024-04-16 11:06:14.725 ***🔗
bOb_befriend_and_alienate_1690@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-16 11:06:14.725 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82915a3ad22370c9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-16 11:06:14.725 ***🔗
bOb_befriend_and_alienate_1690@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-16 11:06:14.726 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY5MABtYWtyb2xpa2E=</auth>
*** User 2024-04-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@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-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6e6112fb8ebdf3d' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1690@localhost'>
*** User 2024-04-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@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-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 out
<iq type='set' id='04b7981f37a3c0933750c05bd4719d3b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 11:06:14.727 ***🔗
bOb_befriend_and_alienate_1690@localhost/res1 in
<iq id='04b7981f37a3c0933750c05bd4719d3b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1690@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-16 11:06:14.727 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 out
<iq type='set' id='5ddf1fa118ea04b759031dd35c47eb71'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:06:14.728 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='5ddf1fa118ea04b759031dd35c47eb71' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 11:06:14.728 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 out
<presence/>
*** User 2024-04-16 11:06:14.728 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='bob_befriend_and_alienate_1690@localhost/res1' to='bob_befriend_and_alienate_1690@localhost/res1'/>
*** User 2024-04-16 11:06:14.730 ***🔗
REST request:
Code: 200
Req: {<0.19625.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"590c58f720ff26b5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,757}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.732 ***🔗
REST request:
Code: 200
Req: {<0.19634.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d8e3c735867387e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,639}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.734 ***🔗
REST request:
Code: 204
Req: {<0.19643.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d63615e828528f3">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1690@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1327}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1690@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.736 ***🔗
REST request:
Code: 204
Req: {<0.19651.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68dfe518dc75dc04">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1690@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1474}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1690@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.738 ***🔗
REST request:
Code: 204
Req: {<0.19655.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ee15bc12ac4b340">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1690@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1437}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1690@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.740 ***🔗
REST request:
Code: 200
Req: {<0.19659.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68ca865220922429">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
213,721}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.741 ***🔗
REST request:
Code: 200
Req: {<0.19664.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e4d25bc1fb4060da">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
211,753}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.744 ***🔗
REST request:
Code: 204
Req: {<0.19668.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f5e9a0ded24ea7e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1301}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.745 ***🔗
REST request:
Code: 200
Req: {<0.19672.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb88cde6220a6ad4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1690@localhost\",\"ask\":\"out\"}]">>,
210,880}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.747 ***🔗
REST request:
Code: 204
Req: {<0.19676.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5392cb015f8c5bbb">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1378}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.749 ***🔗
REST request:
Code: 200
Req: {<0.19680.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"05cb3a1565eefac7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
209,888}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.751 ***🔗
REST request:
Code: 200
Req: {<0.19684.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"966e528a1d66fcf1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
213,700}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.754 ***🔗
REST request:
Code: 204
Req: {<0.19686.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3083af5161ae5063">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1412}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.756 ***🔗
REST request:
Code: 200
Req: {<0.19688.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"35ca85491d40280c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1690@localhost\",\"ask\":\"out\"}]">>,
212,682}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.758 ***🔗
REST request:
Code: 204
Req: {<0.19690.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"23f4c37ab31b3f1d">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,1289}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.759 ***🔗
REST request:
Code: 200
Req: {<0.19692.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"48562d567489b201">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
211,719}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.761 ***🔗
REST request:
Code: 200
Req: {<0.19694.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1111d80d97c09ad">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
213,735}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.797 ***🔗
REST request:
Code: 204
Req: {<0.19696.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b9c3ffca72441693">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,35397}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.800 ***🔗
REST request:
Code: 200
Req: {<0.19698.1>,
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab8528be5cf56998">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1223}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.803 ***🔗
REST request:
Code: 200
Req: {<0.19700.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"01816c36ddd58822">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1690@localhost\",\"ask\":\"none\"}]">>,
213,1358}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.807 ***🔗
REST request:
Code: 204
Req: {<0.19702.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aed6f80eb799a46d">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>}],
<<>>,80,931}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost/alice_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.810 ***🔗
REST request:
Code: 200
Req: {<0.19704.1>,
<<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d1b096d16660184c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 11:06:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1120}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1690@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='push56bf858678a0c6fb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='push15df7ae0b22d4416' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='push7cafc169f13d3549' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_1690@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<presence from='bob_befriend_and_alienate_1690@localhost/res1' to='alice_befriend_and_alienate_1690@localhost/res1'/>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='push13ef1d7f58439cb8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<presence from='bob_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' type='subscribed'/>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='pushe3d4e5e2d3ae903b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.810 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<presence from='bob_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' type='subscribe'/>
*** User 2024-04-16 11:06:14.811 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='push42e0cde1d7e7197a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.811 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<iq from='alice_befriend_and_alienate_1690@localhost' to='alice_befriend_and_alienate_1690@localhost/res1' id='pushee15e7494b1463ef' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1690@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 11:06:14.811 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
<presence from='bob_befriend_and_alienate_1690@localhost/res1' to='alice_befriend_and_alienate_1690@localhost/res1' type='unavailable'/>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='push5e3c08424835403f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' type='subscribe'/>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='pushb4fb4b050affb5d6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='pusha80f824a1bef734d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_1690@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost/res1' to='bob_befriend_and_alienate_1690@localhost/res1'/>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='push4a25b140041fe58a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' type='subscribed'/>
*** User 2024-04-16 11:06:19.811 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost/res1' to='bob_befriend_and_alienate_1690@localhost/res1' type='unavailable'/>
*** User 2024-04-16 11:06:19.812 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='push9cb8f76eae69bd2f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.812 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' type='unsubscribe'/>
*** User 2024-04-16 11:06:19.812 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='push93d1534f6d069492' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-16 11:06:19.812 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<presence from='alice_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' type='unsubscribed'/>
*** User 2024-04-16 11:06:19.812 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
<iq from='bob_befriend_and_alienate_1690@localhost' to='bob_befriend_and_alienate_1690@localhost/res1' id='push4c14c0c6e1042538' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1690@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-16 11:06:24.813 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:06:24.814 ***🔗
bob_befriend_and_alienate_1690@localhost/res1 in
</stream:stream>
*** User 2024-04-16 11:06:24.814 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 out
</stream:stream>
*** User 2024-04-16 11:06:24.814 ***🔗
alice_befriend_and_alienate_1690@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-16 11:06:24
=== successfully completed test case
=== === Returned value: ok