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

=== Config value:

    [{watchdog,<0.86888.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@f41cbf1d623b.2024-04-15_16.46.00/big_tests.tests.rest_SUITE.logs/run.2024-04-15_17.03.49/rest_suite.befriend_and_alienate.180227.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@f41cbf1d623b.2024-04-15_16.46.00/big_tests.tests.rest_SUITE.logs/run.2024-04-15_17.03.49/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_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@f41cbf1d623b.2024-04-15_16.46.00"

=== Started at 2024-04-15 17:03:50


*** CT 2024-04-15 17:03:50.710 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4764.html

*** User 2024-04-15 17:03:50.723 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 17:03:50.723 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c7fea72f6eeda45' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 17:03:50.724 ***🔗
alicE_befriend_and_alienate_3369@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-04-15 17:03:50.724 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzY5AG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 17:03:50.725 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 17:03:50.726 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 17:03:50.726 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3bb7dd28c6814d1' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3369@localhost'>

*** User 2024-04-15 17:03:50.726 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 17:03:50.726 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 out
<iq type='set' id='2001bdd330edfdca3f3c68fbd78ede51'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 17:03:50.726 ***🔗
alicE_befriend_and_alienate_3369@localhost/res1 in
<iq id='2001bdd330edfdca3f3c68fbd78ede51' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3369@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 17:03:50.727 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 out
<iq type='set' id='b12e59b65c83e2d579efe4e41ee5cc78'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 17:03:50.727 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='b12e59b65c83e2d579efe4e41ee5cc78' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 17:03:50.727 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 out
<presence/>



*** User 2024-04-15 17:03:50.729 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost/res1' to='alice_befriend_and_alienate_3369@localhost/res1'/>



*** User 2024-04-15 17:03:50.730 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 17:03:50.730 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c0f8d52802a3d3dd' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 17:03:50.731 ***🔗
bOb_befriend_and_alienate_3369@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-04-15 17:03:50.731 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM2OQBtYWtyb2xpa2E=</auth>



*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c2579daf46af57f' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3369@localhost'>

*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 out
<iq type='set' id='e27d5e510a6462f4a2ab20069af2fd42'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 17:03:50.732 ***🔗
bOb_befriend_and_alienate_3369@localhost/res1 in
<iq id='e27d5e510a6462f4a2ab20069af2fd42' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3369@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 17:03:50.733 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 out
<iq type='set' id='7c92a76e8ce31fa1529efce093782385'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 17:03:50.733 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='7c92a76e8ce31fa1529efce093782385' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 17:03:50.733 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 out
<presence/>



*** User 2024-04-15 17:03:50.738 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='bob_befriend_and_alienate_3369@localhost/res1' to='bob_befriend_and_alienate_3369@localhost/res1'/>



*** User 2024-04-15 17:03:50.741 ***🔗
REST request:
Code: 200
Req: {<0.87011.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a11dfe178c617373">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2550}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.746 ***🔗
REST request:
Code: 200
Req: {<0.87015.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3fbd13f429f8fa8a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3339}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.752 ***🔗
REST request:
Code: 204
Req: {<0.87022.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a3b1b9a8f9c311c1">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>}],
         <<>>,80,4690}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.759 ***🔗
REST request:
Code: 204
Req: {<0.87025.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"17d40100232ecb6f">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>}],
         <<>>,80,5215}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.764 ***🔗
REST request:
Code: 204
Req: {<0.87027.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bb118af9f60a1a8e">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>}],
         <<>>,80,3926}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.772 ***🔗
REST request:
Code: 200
Req: {<0.87029.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c786f9511c187a8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}]">>,
         213,6886}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.824 ***🔗
REST request:
Code: 200
Req: {<0.87031.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"68da33fd7d63c3e9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}]">>,
         211,2463}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.833 ***🔗
REST request:
Code: 204
Req: {<0.87033.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2990beb24af4be78">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,7347}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.836 ***🔗
REST request:
Code: 200
Req: {<0.87039.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd7077e47ae607d2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}]">>,
         210,1989}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.843 ***🔗
REST request:
Code: 204
Req: {<0.87043.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e6745804611c019">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,5913}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.846 ***🔗
REST request:
Code: 200
Req: {<0.87045.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a4ac15deacc8a8a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}]">>,
         209,2008}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.850 ***🔗
REST request:
Code: 200
Req: {<0.87047.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b522091a7986ac89">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}]">>,
         213,2532}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.858 ***🔗
REST request:
Code: 204
Req: {<0.87051.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd0bfa72ad2a64ea">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,6944}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.861 ***🔗
REST request:
Code: 200
Req: {<0.87055.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"12bff1721bd8f2b4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}]">>,
         212,2043}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.869 ***🔗
REST request:
Code: 204
Req: {<0.87057.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5c637c3f0abf8e58">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,6221}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-15 17:03:50.872 ***🔗
REST request:
Code: 200
Req: {<0.87059.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f8d80021cbf894c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3369@localhost\"}]">>,
         211,2276}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.875 ***🔗
REST request:
Code: 200
Req: {<0.87061.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a906a893faf40122">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}]">>,
         213,2156}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.889 ***🔗
REST request:
Code: 204
Req: {<0.87063.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36e6562273c94166">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,11879}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.892 ***🔗
REST request:
Code: 200
Req: {<0.87065.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6066df349ef5084">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2361}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.895 ***🔗
REST request:
Code: 200
Req: {<0.87067.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b7bd1b3d4166c725">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3369@localhost\"}]">>,
         213,2062}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.899 ***🔗
REST request:
Code: 204
Req: {<0.87069.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3be9c5accd30d64f">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>}],
         <<>>,80,2992}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3369@localhost/alice_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.902 ***🔗
REST request:
Code: 200
Req: {<0.87071.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ee268222db8feab8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 17:03:50 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1903}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3369@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push0f599e0d8c0e0689' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push53ffc8facf89288a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push78891c56f25f36c2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3369@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<presence from='bob_befriend_and_alienate_3369@localhost/res1' to='alice_befriend_and_alienate_3369@localhost/res1'/>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push766f7bc7dbd3d376' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<presence from='bob_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' type='subscribed'/>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push6c7b52688dc8eccc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<presence from='bob_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' type='subscribe'/>



*** User 2024-04-15 17:03:50.902 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push659ab040625ae304' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.903 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<iq from='alice_befriend_and_alienate_3369@localhost' to='alice_befriend_and_alienate_3369@localhost/res1' id='push3c06d1c15eddee9f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3369@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-15 17:03:50.903 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
<presence from='bob_befriend_and_alienate_3369@localhost/res1' to='alice_befriend_and_alienate_3369@localhost/res1' type='unavailable'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='push46f48d9069da9dc3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' type='subscribe'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='pushcf8535ed254c5274' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='pushe9174f4e85bf0dad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3369@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost/res1' to='bob_befriend_and_alienate_3369@localhost/res1'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='push569e1ea649a1a13b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' type='subscribed'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost/res1' to='bob_befriend_and_alienate_3369@localhost/res1' type='unavailable'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='pushf3a683dc878a99a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' type='unsubscribe'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='pushcd1528d35458ae41' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<presence from='alice_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' type='unsubscribed'/>



*** User 2024-04-15 17:03:55.904 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
<iq from='bob_befriend_and_alienate_3369@localhost' to='bob_befriend_and_alienate_3369@localhost/res1' id='pushb4f50820a8c1ba02' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3369@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-15 17:04:00.906 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 out
</stream:stream>

*** User 2024-04-15 17:04:00.906 ***🔗
bob_befriend_and_alienate_3369@localhost/res1 in
</stream:stream>

*** User 2024-04-15 17:04:00.906 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 out
</stream:stream>

*** User 2024-04-15 17:04:00.907 ***🔗
alice_befriend_and_alienate_3369@localhost/res1 in
</stream:stream>
*** CT 2024-04-15 17:04:00.909 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4764.html



=== Ended at 2024-04-15 17:04:00
=== successfully completed test case
=== === Returned value: ok