=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)

=== Config value:

    [{watchdog,<0.52119.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@e830f4894539.2024-03-21_07.45.56/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.58.24/rest_suite.befriend_and_alienate.64643.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@e830f4894539.2024-03-21_07.45.56/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.58.24/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">>}],
                    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">>]}],
                    pool_tag => default,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 => []},
              iqdisc => parallel,backend => ldap},
        mod_roster =>
            #{iqdisc => one_queue,versioning => false,
              store_current_id => false,backend => mnesia},
        mod_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {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@e830f4894539.2024-03-21_07.45.56"

=== Started at 2024-03-21 07:58:24


*** CT 2024-03-21 07:58:24.935 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4466.html

*** User 2024-03-21 07:58:24.948 ***🔗
alicE_befriend_and_alienate_1706@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-03-21 07:58:24.949 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71ab9f9a6b436c5a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:58:24.949 ***🔗
alicE_befriend_and_alienate_1706@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-03-21 07:58:24.949 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzA2AG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 07:58:24.951 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:58:24.951 ***🔗
alicE_befriend_and_alienate_1706@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-03-21 07:58:24.951 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='328c4fbef19dabef' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1706@localhost'>

*** User 2024-03-21 07:58:24.951 ***🔗
alicE_befriend_and_alienate_1706@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-03-21 07:58:24.951 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 out
<iq type='set' id='8eff6a12015842bfef74d1016e4cb835'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:58:24.952 ***🔗
alicE_befriend_and_alienate_1706@localhost/res1 in
<iq id='8eff6a12015842bfef74d1016e4cb835' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1706@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:58:24.952 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 out
<iq type='set' id='f4a894400e41352176d209c58dbb0c76'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:58:24.952 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='f4a894400e41352176d209c58dbb0c76' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:58:24.953 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 out
<presence/>



*** User 2024-03-21 07:58:24.953 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost/res1' to='alice_befriend_and_alienate_1706@localhost/res1'/>



*** User 2024-03-21 07:58:24.954 ***🔗
bOb_befriend_and_alienate_1706@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-03-21 07:58:24.955 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5ccd9e2a0136fadd' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:58:24.955 ***🔗
bOb_befriend_and_alienate_1706@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-03-21 07:58:24.955 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTcwNgBtYWtyb2xpa2E=</auth>



*** User 2024-03-21 07:58:24.956 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:58:24.956 ***🔗
bOb_befriend_and_alienate_1706@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-03-21 07:58:24.956 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='87b12c25f54c9ade' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1706@localhost'>

*** User 2024-03-21 07:58:24.957 ***🔗
bOb_befriend_and_alienate_1706@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-03-21 07:58:24.957 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 out
<iq type='set' id='074139f565e15ce456f41587d55e4edb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:58:24.957 ***🔗
bOb_befriend_and_alienate_1706@localhost/res1 in
<iq id='074139f565e15ce456f41587d55e4edb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1706@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:58:24.957 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 out
<iq type='set' id='319d7edf1e2b9069d89b38fb2790a260'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:58:24.958 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='319d7edf1e2b9069d89b38fb2790a260' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:58:24.958 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 out
<presence/>



*** User 2024-03-21 07:58:24.958 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='bob_befriend_and_alienate_1706@localhost/res1' to='bob_befriend_and_alienate_1706@localhost/res1'/>



*** User 2024-03-21 07:58:24.960 ***🔗
REST request:
Code: 200
Req: {<0.52221.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c8f3207957aa4ca2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,883}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.963 ***🔗
REST request:
Code: 200
Req: {<0.52227.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"abf4a555f439a4c0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1114}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.965 ***🔗
REST request:
Code: 204
Req: {<0.52238.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9f64c529713e260">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1773}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.968 ***🔗
REST request:
Code: 204
Req: {<0.52246.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"83ac85671d9f7078">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1860}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.971 ***🔗
REST request:
Code: 204
Req: {<0.52255.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"88c640aa4751b2ee">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1811}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.973 ***🔗
REST request:
Code: 200
Req: {<0.52259.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3f5bc52c087779e8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}]">>,
         213,798}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.975 ***🔗
REST request:
Code: 200
Req: {<0.52262.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"098c61ca46ee7e5e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}]">>,
         211,824}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.978 ***🔗
REST request:
Code: 204
Req: {<0.52266.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"47e99b53f8f2c47c">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1445}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.980 ***🔗
REST request:
Code: 200
Req: {<0.52272.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2294e63e3fa84f70">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}]">>,
         210,1047}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.982 ***🔗
REST request:
Code: 204
Req: {<0.52274.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e4f79d01a332323">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1524}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.984 ***🔗
REST request:
Code: 200
Req: {<0.52278.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"83de9c290c768931">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}]">>,
         209,828}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.986 ***🔗
REST request:
Code: 200
Req: {<0.52282.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8d94cc6dc98d4fb5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}]">>,
         213,918}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.988 ***🔗
REST request:
Code: 204
Req: {<0.52284.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"48ba8f0e41e10649">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1612}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.990 ***🔗
REST request:
Code: 200
Req: {<0.52286.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82be5f8d3636823b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}]">>,
         212,839}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.992 ***🔗
REST request:
Code: 204
Req: {<0.52288.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2ac4c9245df90998">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,1477}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:58:24.994 ***🔗
REST request:
Code: 200
Req: {<0.52290.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5fef775726b8e970">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1706@localhost\"}]">>,
         211,886}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:24.996 ***🔗
REST request:
Code: 200
Req: {<0.52292.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec87b24c8720c50c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}]">>,
         213,995}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.035 ***🔗
REST request:
Code: 204
Req: {<0.52294.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"de194b506e830192">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,38102}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.038 ***🔗
REST request:
Code: 200
Req: {<0.52296.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1f568a1eda6d3e3d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1133}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.040 ***🔗
REST request:
Code: 200
Req: {<0.52298.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cd253e6744bbd6e0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1706@localhost\"}]">>,
         213,954}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.042 ***🔗
REST request:
Code: 204
Req: {<0.52300.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1cc278bef89d9a6d">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>}],
         <<>>,80,862}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1706@localhost/alice_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.044 ***🔗
REST request:
Code: 200
Req: {<0.52302.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5b91a4ac7ad6c965">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:58:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1218}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1706@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:58:25.044 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push4ab1b31cd58d1aba' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push96a0fdaf6535a743' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push327018f37fffdb6c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_1706@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<presence from='bob_befriend_and_alienate_1706@localhost/res1' to='alice_befriend_and_alienate_1706@localhost/res1'/>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push1966ab95e45f5d2e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<presence from='bob_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' type='subscribed'/>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='pushd6eedc5ffe77105a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<presence from='bob_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' type='subscribe'/>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push134eaad1d650c635' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<iq from='alice_befriend_and_alienate_1706@localhost' to='alice_befriend_and_alienate_1706@localhost/res1' id='push139a6849574d5f48' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1706@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 07:58:25.045 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
<presence from='bob_befriend_and_alienate_1706@localhost/res1' to='alice_befriend_and_alienate_1706@localhost/res1' type='unavailable'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='pusha55eecfc9b909d45' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' type='subscribe'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='pushd0de87a24fd871c9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='push2af1d379ac9fd4c9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_1706@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost/res1' to='bob_befriend_and_alienate_1706@localhost/res1'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='pusha466c2fd98fdea8e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' type='subscribed'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost/res1' to='bob_befriend_and_alienate_1706@localhost/res1' type='unavailable'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='push99f69add6459771e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' type='unsubscribe'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='pushb609dc76b28dae63' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<presence from='alice_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' type='unsubscribed'/>



*** User 2024-03-21 07:58:30.046 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
<iq from='bob_befriend_and_alienate_1706@localhost' to='bob_befriend_and_alienate_1706@localhost/res1' id='push50d2f95fb21d092b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1706@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 07:58:35.047 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:58:35.047 ***🔗
bob_befriend_and_alienate_1706@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:58:35.047 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:58:35.048 ***🔗
alice_befriend_and_alienate_1706@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:58:35.050 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4485.html



=== Ended at 2024-03-21 07:58:35
=== successfully completed test case
=== === Returned value: ok