=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.52518.0>},
{{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@f05a521485b1.2024-04-23_06.47.08/big_tests.tests.rest_SUITE.logs/run.2024-04-23_06.59.32/rest_suite.befriend_and_alienate.107394.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@f05a521485b1.2024-04-23_06.47.08/big_tests.tests.rest_SUITE.logs/run.2024-04-23_06.59.32/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,
ldap =>
#{filter => <<"(objectClass=inetOrgPerson)">>,
base => <<"ou=Users,dc=esl,dc=com">>,
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">>}],
pool_tag => default,
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">>]}],
deref => never,
uids => [{<<"uid">>,<<"%u">>}],
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">>}],
search_operator => 'and',binary_search_fields => []},
backend => ldap,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2}}},
{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@f05a521485b1.2024-04-23_06.47.08"
=== Started at 2024-04-23 06:59:32
*** User 2024-04-23 06:59:32.847 ***🔗
alicE_befriend_and_alienate_1718@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-23 06:59:32.847 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b7ffd061761946a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:59:32.847 ***🔗
alicE_befriend_and_alienate_1718@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-23 06:59:32.847 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzE4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 06:59:32.849 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:59:32.849 ***🔗
alicE_befriend_and_alienate_1718@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-23 06:59:32.850 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b31078fb299ce158' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1718@localhost'>
*** User 2024-04-23 06:59:32.850 ***🔗
alicE_befriend_and_alienate_1718@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-23 06:59:32.850 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 out
<iq type='set' id='3581d015eee92f61a6e66be2d6823ad4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 06:59:32.851 ***🔗
alicE_befriend_and_alienate_1718@localhost/res1 in
<iq id='3581d015eee92f61a6e66be2d6823ad4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1718@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 06:59:32.851 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 out
<iq type='set' id='4b3646bd7cb399acae246be1be41aee2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:59:32.851 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='4b3646bd7cb399acae246be1be41aee2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:59:32.851 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 out
<presence/>
*** User 2024-04-23 06:59:32.852 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost/res1' to='alice_befriend_and_alienate_1718@localhost/res1'/>
*** User 2024-04-23 06:59:32.853 ***🔗
bOb_befriend_and_alienate_1718@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-23 06:59:32.856 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18c8c39d7198dd18' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:59:32.856 ***🔗
bOb_befriend_and_alienate_1718@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-23 06:59:32.856 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTcxOABtYWtyb2xpa2E=</auth>
*** User 2024-04-23 06:59:32.859 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:59:32.859 ***🔗
bOb_befriend_and_alienate_1718@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-23 06:59:32.860 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='104f86bb9d542af8' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1718@localhost'>
*** User 2024-04-23 06:59:32.860 ***🔗
bOb_befriend_and_alienate_1718@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-23 06:59:32.860 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 out
<iq type='set' id='a8e4195d5fae3e143c5ba4f35144fb92'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 06:59:32.861 ***🔗
bOb_befriend_and_alienate_1718@localhost/res1 in
<iq id='a8e4195d5fae3e143c5ba4f35144fb92' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1718@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 06:59:32.861 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 out
<iq type='set' id='d3348444c832a24b2a19f2b37c95d9e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:59:32.861 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='d3348444c832a24b2a19f2b37c95d9e9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 06:59:32.862 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 out
<presence/>
*** User 2024-04-23 06:59:32.864 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='bob_befriend_and_alienate_1718@localhost/res1' to='bob_befriend_and_alienate_1718@localhost/res1'/>
*** User 2024-04-23 06:59:32.868 ***🔗
REST request:
Code: 200
Req: {<0.52629.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ec8bf56c6b62d35">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1970}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.871 ***🔗
REST request:
Code: 200
Req: {<0.52637.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c60f020c0d8d7ff8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2062}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.880 ***🔗
REST request:
Code: 204
Req: {<0.52644.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"275bfbfc7b96da2f">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,7652}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body => <<"{\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 06:59:32.890 ***🔗
REST request:
Code: 204
Req: {<0.52648.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ccc4b3ac34570663">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,4276}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body => <<"{\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 06:59:32.903 ***🔗
REST request:
Code: 204
Req: {<0.52654.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"09e769d2fcff0ccc">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,6194}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 06:59:32.908 ***🔗
REST request:
Code: 200
Req: {<0.52661.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"769db781d6c45148">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}]">>,
213,1849}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.911 ***🔗
REST request:
Code: 200
Req: {<0.52665.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b6bd35562c0a1058">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}]">>,
211,1688}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.916 ***🔗
REST request:
Code: 204
Req: {<0.52667.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"513c1b5dc568a2be">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,3099}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-23 06:59:32.918 ***🔗
REST request:
Code: 200
Req: {<0.52671.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3dfc2766b665b3a8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}]">>,
210,954}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.923 ***🔗
REST request:
Code: 204
Req: {<0.52673.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c9ecd4ff58380fc">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,3008}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-23 06:59:32.926 ***🔗
REST request:
Code: 200
Req: {<0.52679.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a8d4bcd4a72831b4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}]">>,
209,1370}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.928 ***🔗
REST request:
Code: 200
Req: {<0.52681.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7adf56646be3b833">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}]">>,
213,1048}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.931 ***🔗
REST request:
Code: 204
Req: {<0.52683.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1fb9391a367a68e6">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,1894}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-23 06:59:32.933 ***🔗
REST request:
Code: 200
Req: {<0.52685.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e4f8c11e539ba31e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}]">>,
212,1105}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.936 ***🔗
REST request:
Code: 204
Req: {<0.52687.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e54f74861e84e3ff">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,1770}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-23 06:59:32.938 ***🔗
REST request:
Code: 200
Req: {<0.52689.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"01827f786cc88f64">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1718@localhost\"}]">>,
211,934}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.940 ***🔗
REST request:
Code: 200
Req: {<0.52691.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"45ad5d5f6e4dbc20">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}]">>,
213,912}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.945 ***🔗
REST request:
Code: 204
Req: {<0.52693.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d26e8360c401959">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,3548}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-23 06:59:32.948 ***🔗
REST request:
Code: 200
Req: {<0.52695.0>,
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"688c14f172d96b36">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1185}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.950 ***🔗
REST request:
Code: 200
Req: {<0.52697.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"544bcddfd76c2399">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1718@localhost\"}]">>,
213,1222}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.952 ***🔗
REST request:
Code: 204
Req: {<0.52699.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c109f239369106c2">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>}],
<<>>,80,774}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost/alice_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-23 06:59:32.956 ***🔗
REST request:
Code: 200
Req: {<0.52701.0>,
<<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2d0419aa1c1fe67">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 06:59:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2439}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1718@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='pushf9bc6fd0345312fd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='push9298593d3b231d7d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='push51cbeabdb62e36b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_1718@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<presence from='bob_befriend_and_alienate_1718@localhost/res1' to='alice_befriend_and_alienate_1718@localhost/res1'/>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='pushbccb050a62a59de5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<presence from='bob_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' type='subscribed'/>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='push9e39ab44ba619d91' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<presence from='bob_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' type='subscribe'/>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='push4e5fbd01aecb3214' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<iq from='alice_befriend_and_alienate_1718@localhost' to='alice_befriend_and_alienate_1718@localhost/res1' id='pushbaf6e32ae14524ab' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1718@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-23 06:59:32.957 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
<presence from='bob_befriend_and_alienate_1718@localhost/res1' to='alice_befriend_and_alienate_1718@localhost/res1' type='unavailable'/>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='push153fb29cd961ce2c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' type='subscribe'/>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='pushbd243ec241d29618' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='push7147439755568fb5' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_1718@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost/res1' to='bob_befriend_and_alienate_1718@localhost/res1'/>
*** User 2024-04-23 06:59:37.958 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='push3cdd56438b141594' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' type='subscribed'/>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost/res1' to='bob_befriend_and_alienate_1718@localhost/res1' type='unavailable'/>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='push5e1691c75b933825' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' type='unsubscribe'/>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='push9ddb72717c070232' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<presence from='alice_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' type='unsubscribed'/>
*** User 2024-04-23 06:59:37.959 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
<iq from='bob_befriend_and_alienate_1718@localhost' to='bob_befriend_and_alienate_1718@localhost/res1' id='pushd8147d07be298a59' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1718@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-23 06:59:42.960 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 out
</stream:stream>
*** User 2024-04-23 06:59:42.961 ***🔗
bob_befriend_and_alienate_1718@localhost/res1 in
</stream:stream>
*** User 2024-04-23 06:59:42.961 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 out
</stream:stream>
*** User 2024-04-23 06:59:42.961 ***🔗
alice_befriend_and_alienate_1718@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 06:59:42
=== successfully completed test case
=== === Returned value: ok