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

=== Config value:

    [{watchdog,<0.83192.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e5832022abeb.2023-11-13_18.57.12/big_tests.tests.rest_SUITE.logs/run.2023-11-13_19.10.59/rest_suite.befriend_and_alienate.58629.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@e5832022abeb.2023-11-13_18.57.12/big_tests.tests.rest_SUITE.logs/run.2023-11-13_19.10.59/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_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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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@e5832022abeb.2023-11-13_18.57.12"

=== Started at 2023-11-13 19:11:00


*** CT 2023-11-13 19:11:00.661 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4655.html

*** User 2023-11-13 19:11:00.673 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 19:11:00.674 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92ea812f427e9fa0' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-13 19:11:00.674 ***🔗
alicE_befriend_and_alienate_2970@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 2023-11-13 19:11:00.674 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTcwAG1hdHlncnlzYQ==</auth>



*** User 2023-11-13 19:11:00.675 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 19:11:00.675 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 19:11:00.675 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80c52e8e1216e97e' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2970@localhost'>

*** User 2023-11-13 19:11:00.675 ***🔗
alicE_befriend_and_alienate_2970@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 2023-11-13 19:11:00.675 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 out
<iq type='set' id='c9f1425a9a1659eb1fb0d1c79c4da0ad'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 19:11:00.676 ***🔗
alicE_befriend_and_alienate_2970@localhost/res1 in
<iq id='c9f1425a9a1659eb1fb0d1c79c4da0ad' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2970@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 19:11:00.676 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 out
<iq type='set' id='1e0af9eda9521fde3d80a3ef8bcb9ce6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:11:00.676 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='1e0af9eda9521fde3d80a3ef8bcb9ce6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:11:00.676 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 out
<presence/>



*** User 2023-11-13 19:11:00.678 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost/res1' to='alice_befriend_and_alienate_2970@localhost/res1'/>



*** User 2023-11-13 19:11:00.679 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 19:11:00.679 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8485011bd6f87045' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-13 19:11:00.679 ***🔗
bOb_befriend_and_alienate_2970@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 2023-11-13 19:11:00.679 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk3MABtYWtyb2xpa2E=</auth>



*** User 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18c8eef2595eb9de' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2970@localhost'>

*** User 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@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 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 out
<iq type='set' id='5fba182f797dffa6d1798e7baf8a3c3a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-13 19:11:00.680 ***🔗
bOb_befriend_and_alienate_2970@localhost/res1 in
<iq id='5fba182f797dffa6d1798e7baf8a3c3a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2970@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-13 19:11:00.680 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 out
<iq type='set' id='ffd02fe5a2b8a65271ab1ae11aa3fd0e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:11:00.681 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='ffd02fe5a2b8a65271ab1ae11aa3fd0e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-13 19:11:00.681 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 out
<presence/>



*** User 2023-11-13 19:11:00.682 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='bob_befriend_and_alienate_2970@localhost/res1' to='bob_befriend_and_alienate_2970@localhost/res1'/>



*** User 2023-11-13 19:11:00.684 ***🔗
REST request:
Code: 200
Req: {<0.83296.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71430d2717087ae3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,963}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.685 ***🔗
REST request:
Code: 200
Req: {<0.83303.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14d43bb81649c608">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,845}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.688 ***🔗
REST request:
Code: 204
Req: {<0.83313.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"387f29b75117bbc9">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,1922}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.692 ***🔗
REST request:
Code: 204
Req: {<0.83323.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65706e66c4a14053">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,3002}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.695 ***🔗
REST request:
Code: 204
Req: {<0.83328.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"84eb4d6791b5a84f">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,2562}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.698 ***🔗
REST request:
Code: 200
Req: {<0.83333.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5d3909cd32b8df1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}]">>,
         213,1512}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.699 ***🔗
REST request:
Code: 200
Req: {<0.83335.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe67d0c5a3c2519f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}]">>,
         211,738}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.702 ***🔗
REST request:
Code: 204
Req: {<0.83337.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9228722cc451854d">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,2293}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.703 ***🔗
REST request:
Code: 200
Req: {<0.83343.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a219448b8e4fe9cf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}]">>,
         210,713}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.706 ***🔗
REST request:
Code: 204
Req: {<0.83347.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8805e167cc41926e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,2220}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.708 ***🔗
REST request:
Code: 200
Req: {<0.83349.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f49fe642ca586776">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}]">>,
         209,1282}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.710 ***🔗
REST request:
Code: 200
Req: {<0.83351.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c17aaf17b27b7a97">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}]">>,
         213,798}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.713 ***🔗
REST request:
Code: 204
Req: {<0.83355.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8c755af968c660e7">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,2671}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.715 ***🔗
REST request:
Code: 200
Req: {<0.83359.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"081c37d5d777bf89">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}]">>,
         212,1005}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.719 ***🔗
REST request:
Code: 204
Req: {<0.83361.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4acad75eca6d8992">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,2523}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2023-11-13 19:11:00.720 ***🔗
REST request:
Code: 200
Req: {<0.83363.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce7aeb371eeb554c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2970@localhost\"}]">>,
         211,798}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.722 ***🔗
REST request:
Code: 200
Req: {<0.83365.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f690cba800ce7168">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}]">>,
         213,913}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.727 ***🔗
REST request:
Code: 204
Req: {<0.83367.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fd97051c19b367a1">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,4123}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.728 ***🔗
REST request:
Code: 200
Req: {<0.83369.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8bf28f58959ac227">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,820}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.730 ***🔗
REST request:
Code: 200
Req: {<0.83371.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e4681cc9de13b93">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2970@localhost\"}]">>,
         213,866}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.732 ***🔗
REST request:
Code: 204
Req: {<0.83373.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"525dccd36c81302b">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>}],
         <<>>,80,1199}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2970@localhost/alice_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.734 ***🔗
REST request:
Code: 200
Req: {<0.83375.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"79f9cb6710083287">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 13 Nov 2023 19:11:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,904}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2970@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='pushbd1f7cf352d71c21' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='push773cb7c445f60919' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='push01de40fd7c9b5c73' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<presence from='bob_befriend_and_alienate_2970@localhost/res1' to='alice_befriend_and_alienate_2970@localhost/res1'/>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='push72b7906381bc66ec' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<presence from='bob_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' type='subscribed'/>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='pushfa5a574d2e66533b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<presence from='bob_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' type='subscribe'/>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='pushf2c16c2b8dc1e67c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<iq from='alice_befriend_and_alienate_2970@localhost' to='alice_befriend_and_alienate_2970@localhost/res1' id='pushcc21a453af8fa376' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:00.734 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
<presence from='bob_befriend_and_alienate_2970@localhost/res1' to='alice_befriend_and_alienate_2970@localhost/res1' type='unavailable'/>



*** User 2023-11-13 19:11:05.735 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='pushd13253b7ce507d6b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.735 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' type='subscribe'/>



*** User 2023-11-13 19:11:05.735 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='pushf8f277932721b99f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.735 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='push297bbab0240efda2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost/res1' to='bob_befriend_and_alienate_2970@localhost/res1'/>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='push253dd836b41e0dff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' type='subscribed'/>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost/res1' to='bob_befriend_and_alienate_2970@localhost/res1' type='unavailable'/>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='pushcd536d1d044a5954' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' type='unsubscribe'/>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='pushc5a16feb63009853' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<presence from='alice_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' type='unsubscribed'/>



*** User 2023-11-13 19:11:05.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
<iq from='bob_befriend_and_alienate_2970@localhost' to='bob_befriend_and_alienate_2970@localhost/res1' id='push67db2e92bae380f6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2970@localhost'/>
	</query>
</iq>



*** User 2023-11-13 19:11:10.736 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 out
</stream:stream>

*** User 2023-11-13 19:11:10.737 ***🔗
bob_befriend_and_alienate_2970@localhost/res1 in
</stream:stream>

*** User 2023-11-13 19:11:10.737 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 out
</stream:stream>

*** User 2023-11-13 19:11:10.737 ***🔗
alice_befriend_and_alienate_2970@localhost/res1 in
</stream:stream>
*** CT 2023-11-13 19:11:10.740 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4674.html



=== Ended at 2023-11-13 19:11:10
=== successfully completed test case
=== === Returned value: ok