=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.19418.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.rest_SUITE.logs/run.2024-01-15_12.09.51/rest_suite.befriend_and_alienate.18821.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@f79facad4ed7.2024-01-15_11.58.37/big_tests.tests.rest_SUITE.logs/run.2024-01-15_12.09.51/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@f79facad4ed7.2024-01-15_11.58.37"
=== Started at 2024-01-15 12:09:51
*** User 2024-01-15 12:09:51.601 ***🔗
alicE_befriend_and_alienate_1681@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-01-15 12:09:51.602 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee5d9709ed0de76d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-01-15 12:09:51.602 ***🔗
alicE_befriend_and_alienate_1681@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-01-15 12:09:51.602 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjgxAG1hdHlncnlzYQ==</auth>
*** User 2024-01-15 12:09:51.603 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-15 12:09:51.603 ***🔗
alicE_befriend_and_alienate_1681@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-01-15 12:09:51.603 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77c9888ddb95f121' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1681@localhost'>
*** User 2024-01-15 12:09:51.604 ***🔗
alicE_befriend_and_alienate_1681@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-01-15 12:09:51.604 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 out
<iq type='set' id='7d8dfa9d4a95af3b2794435a6313c4d8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-15 12:09:51.604 ***🔗
alicE_befriend_and_alienate_1681@localhost/res1 in
<iq id='7d8dfa9d4a95af3b2794435a6313c4d8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1681@localhost/res1</jid>
</bind>
</iq>
*** User 2024-01-15 12:09:51.604 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 out
<iq type='set' id='9436239e3bb4a440083dc2d0d82a69bb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:09:51.604 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='9436239e3bb4a440083dc2d0d82a69bb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:09:51.605 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 out
<presence/>
*** User 2024-01-15 12:09:51.605 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost/res1' to='alice_befriend_and_alienate_1681@localhost/res1'/>
*** User 2024-01-15 12:09:51.606 ***🔗
bOb_befriend_and_alienate_1681@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-01-15 12:09:51.607 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ebefa97817e1d7aa' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-01-15 12:09:51.607 ***🔗
bOb_befriend_and_alienate_1681@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-01-15 12:09:51.607 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY4MQBtYWtyb2xpa2E=</auth>
*** User 2024-01-15 12:09:51.608 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-01-15 12:09:51.608 ***🔗
bOb_befriend_and_alienate_1681@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-01-15 12:09:51.608 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b20f9c7d56ef71a2' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1681@localhost'>
*** User 2024-01-15 12:09:51.609 ***🔗
bOb_befriend_and_alienate_1681@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-01-15 12:09:51.609 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 out
<iq type='set' id='d05b52aa56b1fdb63be1040068efcfb4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-01-15 12:09:51.609 ***🔗
bOb_befriend_and_alienate_1681@localhost/res1 in
<iq id='d05b52aa56b1fdb63be1040068efcfb4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1681@localhost/res1</jid>
</bind>
</iq>
*** User 2024-01-15 12:09:51.609 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 out
<iq type='set' id='fff45a72a89f177b06ec8f10c2b2b708'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:09:51.609 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='fff45a72a89f177b06ec8f10c2b2b708' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-01-15 12:09:51.610 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 out
<presence/>
*** User 2024-01-15 12:09:51.610 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='bob_befriend_and_alienate_1681@localhost/res1' to='bob_befriend_and_alienate_1681@localhost/res1'/>
*** User 2024-01-15 12:09:51.612 ***🔗
REST request:
Code: 200
Req: {<0.19518.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92a7a16040c682ed">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,753}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.614 ***🔗
REST request:
Code: 200
Req: {<0.19528.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"101770146962c2bb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,780}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.616 ***🔗
REST request:
Code: 204
Req: {<0.19534.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"de7916aece90cd88">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1681@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1456}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1681@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.619 ***🔗
REST request:
Code: 204
Req: {<0.19547.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e504163c5e84dc93">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1681@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1445}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1681@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.621 ***🔗
REST request:
Code: 204
Req: {<0.19552.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"338063747c95a50a">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1681@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1453}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1681@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.623 ***🔗
REST request:
Code: 200
Req: {<0.19556.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c48212b471cc67ae">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
213,867}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.625 ***🔗
REST request:
Code: 200
Req: {<0.19561.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"06ee04afbfdde13e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
211,623}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.626 ***🔗
REST request:
Code: 204
Req: {<0.19565.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c60ed544a3fac4e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1028}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.628 ***🔗
REST request:
Code: 200
Req: {<0.19571.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fe6ecba23d53fec9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1681@localhost\",\"ask\":\"out\"}]">>,
210,825}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.630 ***🔗
REST request:
Code: 204
Req: {<0.19573.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1d920ec837ca22f8">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1494}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.632 ***🔗
REST request:
Code: 200
Req: {<0.19577.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ac8286849bfabba9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
209,910}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.633 ***🔗
REST request:
Code: 200
Req: {<0.19581.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f117216e7bc2b32d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
213,774}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.635 ***🔗
REST request:
Code: 204
Req: {<0.19583.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2199ec07d3f5fb72">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1424}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.637 ***🔗
REST request:
Code: 200
Req: {<0.19585.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"12262d887e22da96">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1681@localhost\",\"ask\":\"out\"}]">>,
212,723}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.639 ***🔗
REST request:
Code: 204
Req: {<0.19587.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2bd8aed010c21c3">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,1367}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.641 ***🔗
REST request:
Code: 200
Req: {<0.19589.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3f92fbeef3966e9d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
211,802}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.644 ***🔗
REST request:
Code: 200
Req: {<0.19591.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d708c3856242e68d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
213,721}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.687 ***🔗
REST request:
Code: 204
Req: {<0.19593.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ca5134bdbc7eede">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,3096}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.689 ***🔗
REST request:
Code: 200
Req: {<0.19595.1>,
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5bb55c6a33431e5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,779}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.691 ***🔗
REST request:
Code: 200
Req: {<0.19597.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a4d9c1b7fbb07a73">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1681@localhost\",\"ask\":\"none\"}]">>,
213,813}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.692 ***🔗
REST request:
Code: 204
Req: {<0.19599.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"646d7b3569a92590">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>}],
<<>>,80,539}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost/alice_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.693 ***🔗
REST request:
Code: 200
Req: {<0.19601.1>,
<<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f60b80be3f2800d3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Jan 2024 12:09:51 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,683}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1681@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-01-15 12:09:51.693 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='push5644dda93b644a82' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.693 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='pushe372405dc4c40760' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='push18c8ddbce509d818' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<presence from='bob_befriend_and_alienate_1681@localhost/res1' to='alice_befriend_and_alienate_1681@localhost/res1'/>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='push168d732c417b13d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<presence from='bob_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' type='subscribed'/>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='pushfc971188c673ecca' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<presence from='bob_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' type='subscribe'/>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='push2b7844f8299aa20d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<iq from='alice_befriend_and_alienate_1681@localhost' to='alice_befriend_and_alienate_1681@localhost/res1' id='push8e9af53f6fec3079' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:51.694 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
<presence from='bob_befriend_and_alienate_1681@localhost/res1' to='alice_befriend_and_alienate_1681@localhost/res1' type='unavailable'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='pushda9130bb8ce39083' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' type='subscribe'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='push7115c194321d4492' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='pushe5c33cadc331ab5a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost/res1' to='bob_befriend_and_alienate_1681@localhost/res1'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='push62c018598d3807cf' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' type='subscribed'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost/res1' to='bob_befriend_and_alienate_1681@localhost/res1' type='unavailable'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='push3b923c8f22bddf8e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' type='unsubscribe'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='push13c6355506519616' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<presence from='alice_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' type='unsubscribed'/>
*** User 2024-01-15 12:09:56.695 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
<iq from='bob_befriend_and_alienate_1681@localhost' to='bob_befriend_and_alienate_1681@localhost/res1' id='push95ec3f58a62f49c2' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_1681@localhost'/>
</query>
</iq>
*** User 2024-01-15 12:10:01.696 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 out
</stream:stream>
*** User 2024-01-15 12:10:01.696 ***🔗
bob_befriend_and_alienate_1681@localhost/res1 in
</stream:stream>
*** User 2024-01-15 12:10:01.696 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 out
</stream:stream>
*** User 2024-01-15 12:10:01.696 ***🔗
alice_befriend_and_alienate_1681@localhost/res1 in
</stream:stream>
=== Ended at 2024-01-15 12:10:01
=== successfully completed test case
=== === Returned value: ok