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

=== Config value:

    [{watchdog,<0.85134.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_SUITE.logs/run.2024-02-22_12.55.44/rest_suite.befriend_and_alienate.101124.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@fb43d4252d17.2024-02-22_12.37.44/big_tests.tests.rest_SUITE.logs/run.2024-02-22_12.55.44/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        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@fb43d4252d17.2024-02-22_12.37.44"

=== Started at 2024-02-22 12:55:45


*** CT 2024-02-22 12:55:45.864 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4698.html

*** User 2024-02-22 12:55:45.885 ***🔗
alicE_befriend_and_alienate_3239@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-02-22 12:55:45.885 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c623ef08e7983e42' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:45.886 ***🔗
alicE_befriend_and_alienate_3239@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>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-22 12:55:45.886 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMjM5AG1hdHlncnlzYQ==</auth>



*** User 2024-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@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-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='951e87a099ae9558' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3239@localhost'>

*** User 2024-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@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-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 out
<iq type='set' id='aac7c0938faa74ddd34801c0ec04cdc6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:45.891 ***🔗
alicE_befriend_and_alienate_3239@localhost/res1 in
<iq id='aac7c0938faa74ddd34801c0ec04cdc6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3239@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:45.892 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 out
<iq type='set' id='940fb00b64f86ae79dc2145aae43f4a1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:45.892 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='940fb00b64f86ae79dc2145aae43f4a1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:45.892 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:45.895 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost/res1' to='alice_befriend_and_alienate_3239@localhost/res1'/>



*** User 2024-02-22 12:55:45.895 ***🔗
bOb_befriend_and_alienate_3239@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-02-22 12:55:45.896 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9a5cf5ea76e79e5' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-22 12:55:45.896 ***🔗
bOb_befriend_and_alienate_3239@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>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-02-22 12:55:45.896 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzIzOQBtYWtyb2xpa2E=</auth>



*** User 2024-02-22 12:55:45.897 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-22 12:55:45.897 ***🔗
bOb_befriend_and_alienate_3239@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-02-22 12:55:45.897 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8c3237c51c267008' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3239@localhost'>

*** User 2024-02-22 12:55:45.898 ***🔗
bOb_befriend_and_alienate_3239@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-02-22 12:55:45.898 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 out
<iq type='set' id='bb65dca415ebe0bcd44ba810a70ae06c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-22 12:55:45.898 ***🔗
bOb_befriend_and_alienate_3239@localhost/res1 in
<iq id='bb65dca415ebe0bcd44ba810a70ae06c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3239@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-22 12:55:45.898 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 out
<iq type='set' id='374687d23d6069e2c2b7280eae5a2efe'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:45.899 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='374687d23d6069e2c2b7280eae5a2efe' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-22 12:55:45.899 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 out
<presence/>



*** User 2024-02-22 12:55:45.901 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='bob_befriend_and_alienate_3239@localhost/res1' to='bob_befriend_and_alienate_3239@localhost/res1'/>



*** User 2024-02-22 12:55:45.904 ***🔗
REST request:
Code: 200
Req: {<0.85242.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"81e477271aa99781">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2014}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:45.908 ***🔗
REST request:
Code: 200
Req: {<0.85253.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2588aaea49c6ce78">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2159}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:45.915 ***🔗
REST request:
Code: 204
Req: {<0.85260.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"66767c05662a1632">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,5132}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:55:45.966 ***🔗
REST request:
Code: 204
Req: {<0.85266.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3d093dad86adefba">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,49760}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:55:45.973 ***🔗
REST request:
Code: 204
Req: {<0.85270.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"702373938a067fc8">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,5938}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}">>,
          return_headers => true}


*** User 2024-02-22 12:55:45.976 ***🔗
REST request:
Code: 200
Req: {<0.85275.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"968f65679881fb91">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}]">>,
         213,1882}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:45.981 ***🔗
REST request:
Code: 200
Req: {<0.85277.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bfc8697432c039e3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}]">>,
         211,4388}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:45.990 ***🔗
REST request:
Code: 204
Req: {<0.85279.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5023b6b0dc01add">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,6899}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-02-22 12:55:45.993 ***🔗
REST request:
Code: 200
Req: {<0.85283.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d79e0d081fe64eb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}]">>,
         210,2141}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.005 ***🔗
REST request:
Code: 204
Req: {<0.85287.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d03c6e76d9b460d9">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,10999}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-02-22 12:55:46.011 ***🔗
REST request:
Code: 200
Req: {<0.85291.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c187f5585b53a8e7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}]">>,
         209,4264}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.014 ***🔗
REST request:
Code: 200
Req: {<0.85293.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8a10c3cbede09621">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}]">>,
         213,2276}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.022 ***🔗
REST request:
Code: 204
Req: {<0.85297.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"56f9251ba55cce29">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,6787}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-02-22 12:55:46.025 ***🔗
REST request:
Code: 200
Req: {<0.85301.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3aeb00113a3fa843">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}]">>,
         212,2317}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.033 ***🔗
REST request:
Code: 204
Req: {<0.85303.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d35e11052e15a28d">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,6626}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-02-22 12:55:46.037 ***🔗
REST request:
Code: 200
Req: {<0.85305.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2810c9ae980de89">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3239@localhost\"}]">>,
         211,2559}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.064 ***🔗
REST request:
Code: 200
Req: {<0.85307.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5b3b4946ffd7a8e2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}]">>,
         213,25340}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.080 ***🔗
REST request:
Code: 204
Req: {<0.85309.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"85d1751c0e834484">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,15021}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.084 ***🔗
REST request:
Code: 200
Req: {<0.85311.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9a819c9ff6fd6cd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2526}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.088 ***🔗
REST request:
Code: 200
Req: {<0.85313.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b0d3098931b537c5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3239@localhost\"}]">>,
         213,2467}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.093 ***🔗
REST request:
Code: 204
Req: {<0.85315.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"35163ee652c73d98">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>}],
         <<>>,80,3674}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3239@localhost/alice_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.096 ***🔗
REST request:
Code: 200
Req: {<0.85317.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0557f19b815e867">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 22 Feb 2024 12:55:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1925}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3239@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='pushef0ceba7871d0107' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='push9d01ae0830f62f0a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='push62f941786eb5d293' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<presence from='bob_befriend_and_alienate_3239@localhost/res1' to='alice_befriend_and_alienate_3239@localhost/res1'/>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='pushcd90b551ed2a68bd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<presence from='bob_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' type='subscribed'/>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='push7b9fbedcf47efd48' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<presence from='bob_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' type='subscribe'/>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='pushcd561f8fec4b35d8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<iq from='alice_befriend_and_alienate_3239@localhost' to='alice_befriend_and_alienate_3239@localhost/res1' id='pushc0cc0f216ddf261a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:46.096 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
<presence from='bob_befriend_and_alienate_3239@localhost/res1' to='alice_befriend_and_alienate_3239@localhost/res1' type='unavailable'/>



*** User 2024-02-22 12:55:51.097 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='pusha7c0e472a7f3ca30' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.097 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' type='subscribe'/>



*** User 2024-02-22 12:55:51.097 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='push6c1a37aeb39807ae' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='push7d5df0deffafb4f2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost/res1' to='bob_befriend_and_alienate_3239@localhost/res1'/>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='push2c3043cce4068c91' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' type='subscribed'/>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost/res1' to='bob_befriend_and_alienate_3239@localhost/res1' type='unavailable'/>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='pushad8b361e2809b37b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' type='unsubscribe'/>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='push85f1efabb73fd1f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<presence from='alice_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' type='unsubscribed'/>



*** User 2024-02-22 12:55:51.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
<iq from='bob_befriend_and_alienate_3239@localhost' to='bob_befriend_and_alienate_3239@localhost/res1' id='push2dc8aee43aba5a95' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_3239@localhost'/>
	</query>
</iq>



*** User 2024-02-22 12:55:56.098 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:55:56.099 ***🔗
bob_befriend_and_alienate_3239@localhost/res1 in
</stream:stream>

*** User 2024-02-22 12:55:56.099 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 out
</stream:stream>

*** User 2024-02-22 12:55:56.099 ***🔗
alice_befriend_and_alienate_3239@localhost/res1 in
</stream:stream>
*** CT 2024-02-22 12:55:56.103 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4698.html



=== Ended at 2024-02-22 12:55:56
=== successfully completed test case
=== === Returned value: ok