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

=== Config value:

    [{watchdog,<0.85858.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_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@3709086d5689.2024-02-27_12.00.42/big_tests.tests.rest_SUITE.logs/run.2024-02-27_12.17.01/rest_suite.befriend_and_alienate.236034.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@3709086d5689.2024-02-27_12.00.42/big_tests.tests.rest_SUITE.logs/run.2024-02-27_12.17.01/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_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_carboncopy => #{iqdisc => no_queue},
        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}}},
     {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@3709086d5689.2024-02-27_12.00.42"

=== Started at 2024-02-27 12:17:02


*** CT 2024-02-27 12:17:02.609 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4883.html

*** User 2024-02-27 12:17:02.626 ***🔗
alicE_befriend_and_alienate_3243@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-27 12:17:02.626 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da3b62677607c18f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.626 ***🔗
alicE_befriend_and_alienate_3243@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-27 12:17:02.627 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMjQzAG1hdHlncnlzYQ==</auth>



*** User 2024-02-27 12:17:02.628 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:17:02.628 ***🔗
alicE_befriend_and_alienate_3243@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-27 12:17:02.628 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90a1618bb1f18ff2' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3243@localhost'>

*** User 2024-02-27 12:17:02.629 ***🔗
alicE_befriend_and_alienate_3243@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-27 12:17:02.629 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 out
<iq type='set' id='b2bbaa26d5a9730cb7b670828a0bf5c6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.629 ***🔗
alicE_befriend_and_alienate_3243@localhost/res1 in
<iq id='b2bbaa26d5a9730cb7b670828a0bf5c6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3243@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.629 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 out
<iq type='set' id='3a6bb39a56903228d0afa813c2afb3e8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.630 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='3a6bb39a56903228d0afa813c2afb3e8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.630 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 out
<presence/>



*** User 2024-02-27 12:17:02.632 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost/res1' to='alice_befriend_and_alienate_3243@localhost/res1'/>



*** User 2024-02-27 12:17:02.632 ***🔗
bOb_befriend_and_alienate_3243@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-27 12:17:02.633 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d3397944378773c1' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-27 12:17:02.633 ***🔗
bOb_befriend_and_alienate_3243@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-27 12:17:02.633 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzI0MwBtYWtyb2xpa2E=</auth>



*** User 2024-02-27 12:17:02.634 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-27 12:17:02.634 ***🔗
bOb_befriend_and_alienate_3243@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-27 12:17:02.634 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0694abe62f61156f' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3243@localhost'>

*** User 2024-02-27 12:17:02.634 ***🔗
bOb_befriend_and_alienate_3243@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-27 12:17:02.634 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 out
<iq type='set' id='010535e7a3bf367a8c22d325ce34950d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.635 ***🔗
bOb_befriend_and_alienate_3243@localhost/res1 in
<iq id='010535e7a3bf367a8c22d325ce34950d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3243@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-27 12:17:02.635 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 out
<iq type='set' id='03fec415b3765b6faa7e65dc063d8ec0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.635 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='03fec415b3765b6faa7e65dc063d8ec0' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-27 12:17:02.636 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 out
<presence/>



*** User 2024-02-27 12:17:02.637 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='bob_befriend_and_alienate_3243@localhost/res1' to='bob_befriend_and_alienate_3243@localhost/res1'/>



*** User 2024-02-27 12:17:02.639 ***🔗
REST request:
Code: 200
Req: {<0.85958.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5096e9971d7efe53">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1353}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.642 ***🔗
REST request:
Code: 200
Req: {<0.85965.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dee3f1ae9dfb7fe4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1263}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.646 ***🔗
REST request:
Code: 204
Req: {<0.85973.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14097c588192f926">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3111}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.651 ***🔗
REST request:
Code: 204
Req: {<0.85981.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fcd5401024d562d8">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3090}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.664 ***🔗
REST request:
Code: 204
Req: {<0.85994.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c0446a57906ca33">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,12100}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.668 ***🔗
REST request:
Code: 200
Req: {<0.85999.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3cf1daf85b074177">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}]">>,
         213,2628}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.671 ***🔗
REST request:
Code: 200
Req: {<0.86001.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e9c60746c5ff9018">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}]">>,
         211,1634}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.676 ***🔗
REST request:
Code: 204
Req: {<0.86003.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ff7155752a557494">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3571}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.678 ***🔗
REST request:
Code: 200
Req: {<0.86005.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3bb1236da6962005">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}]">>,
         210,1181}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.683 ***🔗
REST request:
Code: 204
Req: {<0.86007.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3898322b305ab9f4">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3708}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.686 ***🔗
REST request:
Code: 200
Req: {<0.86013.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e3f5ad020150f204">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}]">>,
         209,1449}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.688 ***🔗
REST request:
Code: 200
Req: {<0.86017.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ba4792947e73b05d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}]">>,
         213,1324}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.693 ***🔗
REST request:
Code: 204
Req: {<0.86019.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49fb3b2a67667709">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3357}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.695 ***🔗
REST request:
Code: 200
Req: {<0.86021.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b408927a1c33c573">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}]">>,
         212,1123}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.700 ***🔗
REST request:
Code: 204
Req: {<0.86025.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f784f8eb7f2c7415">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,3627}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-27 12:17:02.702 ***🔗
REST request:
Code: 200
Req: {<0.86029.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8070d6b7352dea58">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3243@localhost\"}]">>,
         211,1202}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.704 ***🔗
REST request:
Code: 200
Req: {<0.86031.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e67e57f9e57ea5bb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}]">>,
         213,1253}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.711 ***🔗
REST request:
Code: 204
Req: {<0.86033.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e7e881c0859d50e">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,6447}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.714 ***🔗
REST request:
Code: 200
Req: {<0.86035.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8b953da05e427875">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1451}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.716 ***🔗
REST request:
Code: 200
Req: {<0.86037.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ddcb2481c1b6c93">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3243@localhost\"}]">>,
         213,1364}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.719 ***🔗
REST request:
Code: 204
Req: {<0.86039.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fc994efd2e9142d">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>}],
         <<>>,80,2015}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3243@localhost/alice_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.721 ***🔗
REST request:
Code: 200
Req: {<0.86041.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4877cbd564b7a252">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 27 Feb 2024 12:17:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1243}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3243@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push9e3bbd178ab853a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push974bc85a56caf673' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push42eec982da1794bc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<presence from='bob_befriend_and_alienate_3243@localhost/res1' to='alice_befriend_and_alienate_3243@localhost/res1'/>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push6c5b5f0ccbc76070' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<presence from='bob_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' type='subscribed'/>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push1b6aa23b6c086c31' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<presence from='bob_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' type='subscribe'/>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push6261932146cddd77' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<iq from='alice_befriend_and_alienate_3243@localhost' to='alice_befriend_and_alienate_3243@localhost/res1' id='push034d338e3a6c79c1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:02.722 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
<presence from='bob_befriend_and_alienate_3243@localhost/res1' to='alice_befriend_and_alienate_3243@localhost/res1' type='unavailable'/>



*** User 2024-02-27 12:17:07.722 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='push261a26da43eaa0f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' type='subscribe'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='pushbf400560873f8f15' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='pushcdd30ce67d980f9f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost/res1' to='bob_befriend_and_alienate_3243@localhost/res1'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='pusha526a8479978ce61' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' type='subscribed'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost/res1' to='bob_befriend_and_alienate_3243@localhost/res1' type='unavailable'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='push351a38fe748a4144' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' type='unsubscribe'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='pushfe6e9344a0052c7f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<presence from='alice_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' type='unsubscribed'/>



*** User 2024-02-27 12:17:07.723 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
<iq from='bob_befriend_and_alienate_3243@localhost' to='bob_befriend_and_alienate_3243@localhost/res1' id='push0f2c02ecd14ede88' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_3243@localhost'/>
	</query>
</iq>



*** User 2024-02-27 12:17:12.724 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:17:12.725 ***🔗
bob_befriend_and_alienate_3243@localhost/res1 in
</stream:stream>

*** User 2024-02-27 12:17:12.725 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 out
</stream:stream>

*** User 2024-02-27 12:17:12.726 ***🔗
alice_befriend_and_alienate_3243@localhost/res1 in
</stream:stream>
*** CT 2024-02-27 12:17:12.737 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4902.html



=== Ended at 2024-02-27 12:17:12
=== successfully completed test case
=== === Returned value: ok