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

=== Config value:

    [{watchdog,<0.54548.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,disabled},
     {preset,"internal_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@1bf2a27a11c0.2024-04-25_14.32.22/big_tests.tests.rest_SUITE.logs/run.2024-04-25_14.46.10/rest_suite.befriend_and_alienate.23045.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@1bf2a27a11c0.2024-04-25_14.32.22/big_tests.tests.rest_SUITE.logs/run.2024-04-25_14.46.10/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => mnesia},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,versioning => false,
              store_current_id => false},
        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_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,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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1bf2a27a11c0.2024-04-25_14.32.22"

=== Started at 2024-04-25 14:46:10


*** CT 2024-04-25 14:46:10.999 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4571.html

*** User 2024-04-25 14:46:11.005 ***🔗
alicE_befriend_and_alienate_1798@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-25 14:46:11.006 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5688f9c35b96618' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:46:11.007 ***🔗
alicE_befriend_and_alienate_1798@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-25 14:46:11.007 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzk4AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 14:46:11.008 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:46:11.008 ***🔗
alicE_befriend_and_alienate_1798@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-25 14:46:11.008 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0d5d9b48a76fe88a' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1798@localhost'>

*** User 2024-04-25 14:46:11.008 ***🔗
alicE_befriend_and_alienate_1798@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-25 14:46:11.008 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 out
<iq type='set' id='869ca2a07ac46b840d3b59cc3133f6a6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:46:11.009 ***🔗
alicE_befriend_and_alienate_1798@localhost/res1 in
<iq id='869ca2a07ac46b840d3b59cc3133f6a6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1798@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:46:11.009 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 out
<iq type='set' id='8dd1de3af12c21c67bb1bdc9ddfeb6d6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:46:11.009 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='8dd1de3af12c21c67bb1bdc9ddfeb6d6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:46:11.010 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 out
<presence/>



*** User 2024-04-25 14:46:11.011 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost/res1' to='alice_befriend_and_alienate_1798@localhost/res1'/>



*** User 2024-04-25 14:46:11.012 ***🔗
bOb_befriend_and_alienate_1798@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-25 14:46:11.012 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='077b43c94d61f0ad' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:46:11.012 ***🔗
bOb_befriend_and_alienate_1798@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-25 14:46:11.012 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTc5OABtYWtyb2xpa2E=</auth>



*** User 2024-04-25 14:46:11.013 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:46:11.013 ***🔗
bOb_befriend_and_alienate_1798@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-25 14:46:11.013 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e9fac22172de707' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1798@localhost'>

*** User 2024-04-25 14:46:11.013 ***🔗
bOb_befriend_and_alienate_1798@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-25 14:46:11.013 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 out
<iq type='set' id='cbf795e4c19cb12c03331f3422b17e78'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:46:11.014 ***🔗
bOb_befriend_and_alienate_1798@localhost/res1 in
<iq id='cbf795e4c19cb12c03331f3422b17e78' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1798@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:46:11.014 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 out
<iq type='set' id='711a5dd2965c7bc82af3d85719f9f359'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:46:11.014 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='711a5dd2965c7bc82af3d85719f9f359' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:46:11.014 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 out
<presence/>



*** User 2024-04-25 14:46:11.015 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='bob_befriend_and_alienate_1798@localhost/res1' to='bob_befriend_and_alienate_1798@localhost/res1'/>



*** User 2024-04-25 14:46:11.017 ***🔗
REST request:
Code: 200
Req: {<0.54653.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"19f91ad4732792bd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,474}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.018 ***🔗
REST request:
Code: 200
Req: {<0.54661.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f4e9bf27f7bd3db8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,402}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.021 ***🔗
REST request:
Code: 204
Req: {<0.54667.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb6b336d996312cd">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,1020}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 14:46:11.023 ***🔗
REST request:
Code: 204
Req: {<0.54674.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9bfc0de84488ebd">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,696}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 14:46:11.025 ***🔗
REST request:
Code: 204
Req: {<0.54680.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"21452fbaad9e43bc">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,771}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 14:46:11.027 ***🔗
REST request:
Code: 200
Req: {<0.54686.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"142ea99b0c8ed23b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}]">>,
         213,322}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.029 ***🔗
REST request:
Code: 200
Req: {<0.54693.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b10a2d2052fd8007">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}]">>,
         211,429}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.031 ***🔗
REST request:
Code: 204
Req: {<0.54698.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0299926407048486">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,952}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 14:46:11.032 ***🔗
REST request:
Code: 200
Req: {<0.54705.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f11b2fefca4d57ac">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}]">>,
         210,347}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.034 ***🔗
REST request:
Code: 204
Req: {<0.54707.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33201963b2c54c2b">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,1054}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 14:46:11.035 ***🔗
REST request:
Code: 200
Req: {<0.54709.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"91b8912d80f834a8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}]">>,
         209,426}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.037 ***🔗
REST request:
Code: 200
Req: {<0.54711.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aae03063ac3630f7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}]">>,
         213,356}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.038 ***🔗
REST request:
Code: 204
Req: {<0.54713.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8e2660c42dcb6bac">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,1009}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 14:46:11.040 ***🔗
REST request:
Code: 200
Req: {<0.54715.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"76b0b940f04b1cc7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}]">>,
         212,383}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.041 ***🔗
REST request:
Code: 204
Req: {<0.54717.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1ed503d7b5c0c73">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,908}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 14:46:11.043 ***🔗
REST request:
Code: 200
Req: {<0.54719.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aa9251e1cc112db0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1798@localhost\"}]">>,
         211,389}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.044 ***🔗
REST request:
Code: 200
Req: {<0.54721.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d76431461711cb64">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}]">>,
         213,429}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.047 ***🔗
REST request:
Code: 204
Req: {<0.54723.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"90c708f4f9f5e771">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,1619}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.048 ***🔗
REST request:
Code: 200
Req: {<0.54725.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7cd59ad6a7d6ed7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,421}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.050 ***🔗
REST request:
Code: 200
Req: {<0.54727.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a252da87c532d262">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1798@localhost\"}]">>,
         213,397}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.051 ***🔗
REST request:
Code: 204
Req: {<0.54729.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"58fed98ee0a849ef">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>}],
         <<>>,80,682}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1798@localhost/alice_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.053 ***🔗
REST request:
Code: 200
Req: {<0.54731.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eff649b1faa590d6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 14:46:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,415}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1798@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='push2f3392c0b7de782c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='pushaf8eae7bbc0740c2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='pushb5194b4dbc51d2ad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_1798@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<presence from='bob_befriend_and_alienate_1798@localhost/res1' to='alice_befriend_and_alienate_1798@localhost/res1'/>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='push186b5915f7cd62f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<presence from='bob_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' type='subscribed'/>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='push4b1a140d7aa574a3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<presence from='bob_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' type='subscribe'/>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='push1d4b032a921fbe18' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<iq from='alice_befriend_and_alienate_1798@localhost' to='alice_befriend_and_alienate_1798@localhost/res1' id='push9bdfc929dff790b7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1798@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 14:46:11.053 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
<presence from='bob_befriend_and_alienate_1798@localhost/res1' to='alice_befriend_and_alienate_1798@localhost/res1' type='unavailable'/>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='push29253b54bdee96fc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' type='subscribe'/>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='push29b752b21507681b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='push18778086c5a6fbe5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_1798@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost/res1' to='bob_befriend_and_alienate_1798@localhost/res1'/>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='pushcceaa3cbb60d8144' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.054 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' type='subscribed'/>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost/res1' to='bob_befriend_and_alienate_1798@localhost/res1' type='unavailable'/>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='push9feb94210aa328ae' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' type='unsubscribe'/>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='push03de7ae17e031aa7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<presence from='alice_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' type='unsubscribed'/>



*** User 2024-04-25 14:46:16.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
<iq from='bob_befriend_and_alienate_1798@localhost' to='bob_befriend_and_alienate_1798@localhost/res1' id='pushda0bc017516174e8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1798@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 14:46:21.055 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:46:21.056 ***🔗
bob_befriend_and_alienate_1798@localhost/res1 in
</stream:stream>

*** User 2024-04-25 14:46:21.056 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:46:21.056 ***🔗
alice_befriend_and_alienate_1798@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 14:46:21.058 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4590.html



=== Ended at 2024-04-25 14:46:21
=== successfully completed test case
=== === Returned value: ok