=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.19508.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@0d4ea28ae0f7.2024-04-25_14.31.22/big_tests.tests.rest_SUITE.logs/run.2024-04-25_14.42.53/rest_suite.befriend_and_alienate.118018.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@0d4ea28ae0f7.2024-04-25_14.31.22/big_tests.tests.rest_SUITE.logs/run.2024-04-25_14.42.53/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@0d4ea28ae0f7.2024-04-25_14.31.22"
=== Started at 2024-04-25 14:42:54
*** User 2024-04-25 14:42:54.537 ***🔗
alicE_befriend_and_alienate_1696@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-25 14:42:54.537 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5c224144be80a118' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:42:54.537 ***🔗
alicE_befriend_and_alienate_1696@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-25 14:42:54.537 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjk2AG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@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-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1c26ffa7cc5c74c' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1696@localhost'>
*** User 2024-04-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@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-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 out
<iq type='set' id='aadd6d18fd296005b1701e0678d164e6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:42:54.539 ***🔗
alicE_befriend_and_alienate_1696@localhost/res1 in
<iq id='aadd6d18fd296005b1701e0678d164e6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1696@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:42:54.540 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 out
<iq type='set' id='a5b7bed82afb97a5da405dd7abb162e8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:42:54.540 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='a5b7bed82afb97a5da405dd7abb162e8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:42:54.540 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 out
<presence/>
*** User 2024-04-25 14:42:54.541 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost/res1' to='alice_befriend_and_alienate_1696@localhost/res1'/>
*** User 2024-04-25 14:42:54.541 ***🔗
bOb_befriend_and_alienate_1696@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-25 14:42:54.542 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4650df9c1c340607' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 14:42:54.542 ***🔗
bOb_befriend_and_alienate_1696@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-25 14:42:54.542 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY5NgBtYWtyb2xpa2E=</auth>
*** User 2024-04-25 14:42:54.543 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 14:42:54.543 ***🔗
bOb_befriend_and_alienate_1696@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-25 14:42:54.543 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd4e91f17349ca63' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1696@localhost'>
*** User 2024-04-25 14:42:54.543 ***🔗
bOb_befriend_and_alienate_1696@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-25 14:42:54.543 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 out
<iq type='set' id='44ddfbdc4542cb809226d2a48172c3eb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 14:42:54.544 ***🔗
bOb_befriend_and_alienate_1696@localhost/res1 in
<iq id='44ddfbdc4542cb809226d2a48172c3eb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1696@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 14:42:54.544 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 out
<iq type='set' id='3ee7f3c20961685353782b0fea6ce06a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:42:54.544 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='3ee7f3c20961685353782b0fea6ce06a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 14:42:54.544 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 out
<presence/>
*** User 2024-04-25 14:42:54.544 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='bob_befriend_and_alienate_1696@localhost/res1' to='bob_befriend_and_alienate_1696@localhost/res1'/>
*** User 2024-04-25 14:42:54.546 ***🔗
REST request:
Code: 200
Req: {<0.19610.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56afe975844b7e93">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,865}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.548 ***🔗
REST request:
Code: 200
Req: {<0.19623.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5aee3e5ae4a76873">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,970}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.550 ***🔗
REST request:
Code: 204
Req: {<0.19629.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c67503edaf50284">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1696@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1450}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1696@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.553 ***🔗
REST request:
Code: 204
Req: {<0.19636.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68a15e03ee681850">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1696@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1459}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1696@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.555 ***🔗
REST request:
Code: 204
Req: {<0.19642.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b8baa8051696df17">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1696@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1656}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1696@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.557 ***🔗
REST request:
Code: 200
Req: {<0.19646.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1bc5131c54d8eb7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
213,785}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.559 ***🔗
REST request:
Code: 200
Req: {<0.19653.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3dc8eb919237c0a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
211,761}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.561 ***🔗
REST request:
Code: 204
Req: {<0.19657.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"caba546c6091e7d5">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1356}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.563 ***🔗
REST request:
Code: 200
Req: {<0.19661.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0171c7a7a6eddcb0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1696@localhost\",\"ask\":\"out\"}]">>,
210,825}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.565 ***🔗
REST request:
Code: 204
Req: {<0.19663.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2b20e3f676f52329">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1545}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.567 ***🔗
REST request:
Code: 200
Req: {<0.19669.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2db856608bff20c1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
209,928}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.568 ***🔗
REST request:
Code: 200
Req: {<0.19671.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff5ce0eb3250b529">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
213,735}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.571 ***🔗
REST request:
Code: 204
Req: {<0.19673.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"db5e43d446bfb5b5">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1382}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.572 ***🔗
REST request:
Code: 200
Req: {<0.19675.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18bb0f3a031e6c3d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1696@localhost\",\"ask\":\"out\"}]">>,
212,829}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.575 ***🔗
REST request:
Code: 204
Req: {<0.19677.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"506de79fe386a59f">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,1468}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.576 ***🔗
REST request:
Code: 200
Req: {<0.19679.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"166d1ecf699edf24">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
211,721}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.577 ***🔗
REST request:
Code: 200
Req: {<0.19681.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"490ccf03b14ef6ad">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
213,830}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.581 ***🔗
REST request:
Code: 204
Req: {<0.19683.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"08f4ff6ae3b9eb69">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,2296}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.582 ***🔗
REST request:
Code: 200
Req: {<0.19685.1>,
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6fa832969ccd382e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,793}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.584 ***🔗
REST request:
Code: 200
Req: {<0.19687.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51c5e1068e322211">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1696@localhost\",\"ask\":\"none\"}]">>,
213,785}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.585 ***🔗
REST request:
Code: 204
Req: {<0.19689.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f44dc881c5ee87bf">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>}],
<<>>,80,620}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost/alice_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.587 ***🔗
REST request:
Code: 200
Req: {<0.19691.1>,
<<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9867eea17000b0ac">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 14:42:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,861}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_1696@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='push92274d4ea30b685b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='push181cd3b3c82a15c8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='pushe56129c63a9fa88b' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_1696@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<presence from='bob_befriend_and_alienate_1696@localhost/res1' to='alice_befriend_and_alienate_1696@localhost/res1'/>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='push74ee3409fc2918a9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<presence from='bob_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' type='subscribed'/>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='push8eb131b8dd8aaf7e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<presence from='bob_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' type='subscribe'/>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='pushfa1e3cb826648c53' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<iq from='alice_befriend_and_alienate_1696@localhost' to='alice_befriend_and_alienate_1696@localhost/res1' id='push5b2f4b46138833d7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1696@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 14:42:54.587 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
<presence from='bob_befriend_and_alienate_1696@localhost/res1' to='alice_befriend_and_alienate_1696@localhost/res1' type='unavailable'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push2cedb32051a4c9d2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' type='subscribe'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='pushb0cd9f69b5e3b88e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push06452a99fa0c56aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_1696@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost/res1' to='bob_befriend_and_alienate_1696@localhost/res1'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push3cfbe73426f7f217' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' type='subscribed'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost/res1' to='bob_befriend_and_alienate_1696@localhost/res1' type='unavailable'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push278c52ef953114ee' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' type='unsubscribe'/>
*** User 2024-04-25 14:42:59.588 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push4719e241c63f4e9b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 14:42:59.589 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<presence from='alice_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' type='unsubscribed'/>
*** User 2024-04-25 14:42:59.589 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
<iq from='bob_befriend_and_alienate_1696@localhost' to='bob_befriend_and_alienate_1696@localhost/res1' id='push8cb1aa75ab3c886c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1696@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 14:43:04.590 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 out
</stream:stream>
*** User 2024-04-25 14:43:04.590 ***🔗
bob_befriend_and_alienate_1696@localhost/res1 in
</stream:stream>
*** User 2024-04-25 14:43:04.590 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 out
</stream:stream>
*** User 2024-04-25 14:43:04.591 ***🔗
alice_befriend_and_alienate_1696@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 14:43:04
=== successfully completed test case
=== === Returned value: ok