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

=== Config value:

    [{watchdog,<0.18115.2>},
     {{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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.rest_SUITE.logs/run.2023-12-04_15.55.14/rest_suite.befriend_and_alienate.240002.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@cdcecdf9c9e0.2023-12-04_15.40.23/big_tests.tests.rest_SUITE.logs/run.2023-12-04_15.55.14/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {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@cdcecdf9c9e0.2023-12-04_15.40.23"

=== Started at 2023-12-04 15:55:15


*** CT 2023-12-04 15:55:15.305 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4955.html

*** User 2023-12-04 15:55:15.321 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:55:15.321 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce4594d02a1db04b' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-04 15:55:15.321 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-12-04 15:55:15.321 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMDY5AG1hdHlncnlzYQ==</auth>



*** User 2023-12-04 15:55:15.322 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-04 15:55:15.322 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:55:15.323 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e272c02392244d1' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3069@localhost'>

*** User 2023-12-04 15:55:15.323 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-12-04 15:55:15.323 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 out
<iq type='set' id='fc72999913869243008118ca5403d44d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-04 15:55:15.323 ***🔗
alicE_befriend_and_alienate_3069@localhost/res1 in
<iq id='fc72999913869243008118ca5403d44d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3069@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-12-04 15:55:15.323 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 out
<iq type='set' id='c8eaa7acd29d70f5bcb481511f61a171'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:55:15.324 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='c8eaa7acd29d70f5bcb481511f61a171' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:55:15.324 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 out
<presence/>



*** User 2023-12-04 15:55:15.325 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost/res1' to='alice_befriend_and_alienate_3069@localhost/res1'/>



*** User 2023-12-04 15:55:15.326 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:55:15.327 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2993316dbc47656f' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-12-04 15:55:15.327 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-12-04 15:55:15.327 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzA2OQBtYWtyb2xpa2E=</auth>



*** User 2023-12-04 15:55:15.328 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-04 15:55:15.328 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-12-04 15:55:15.328 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a64087a0556850ff' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3069@localhost'>

*** User 2023-12-04 15:55:15.329 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-12-04 15:55:15.329 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 out
<iq type='set' id='ea34db69143e63f1c621393275ca7a6b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-04 15:55:15.329 ***🔗
bOb_befriend_and_alienate_3069@localhost/res1 in
<iq id='ea34db69143e63f1c621393275ca7a6b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3069@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-12-04 15:55:15.329 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 out
<iq type='set' id='9325f40c1311400e890a3a101823a2ea'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:55:15.329 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='9325f40c1311400e890a3a101823a2ea' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-04 15:55:15.329 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 out
<presence/>



*** User 2023-12-04 15:55:15.331 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='bob_befriend_and_alienate_3069@localhost/res1' to='bob_befriend_and_alienate_3069@localhost/res1'/>



*** User 2023-12-04 15:55:15.333 ***🔗
REST request:
Code: 200
Req: {<0.18219.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e3a4ed8bd11248e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1114}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.336 ***🔗
REST request:
Code: 200
Req: {<0.18223.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac24971c155651e7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1254}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.339 ***🔗
REST request:
Code: 204
Req: {<0.18236.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fcd2e7a2498a5a7c">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3069@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,2592}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3069@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.343 ***🔗
REST request:
Code: 204
Req: {<0.18247.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e46a52a262ee9ad1">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3069@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,2398}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3069@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.346 ***🔗
REST request:
Code: 204
Req: {<0.18251.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"910c8102501fd75e">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3069@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,2568}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3069@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.350 ***🔗
REST request:
Code: 200
Req: {<0.18256.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"32f1b72065ba1ad5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         213,3077}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.353 ***🔗
REST request:
Code: 200
Req: {<0.18258.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"77c2a9f2339e6646">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         211,1304}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.358 ***🔗
REST request:
Code: 204
Req: {<0.18260.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"233726a301baac4a">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,3959}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.360 ***🔗
REST request:
Code: 200
Req: {<0.18266.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0ad98f07ea469a0c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3069@localhost\",\"ask\":\"out\"}]">>,
         210,1309}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.364 ***🔗
REST request:
Code: 204
Req: {<0.18270.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df42aaf4000e8265">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,3352}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.367 ***🔗
REST request:
Code: 200
Req: {<0.18272.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bf8d0b295b4dd377">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         209,1419}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.369 ***🔗
REST request:
Code: 200
Req: {<0.18274.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eab059ce05ac9b2a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         213,1160}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.373 ***🔗
REST request:
Code: 204
Req: {<0.18278.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"410e3802c7185958">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,3423}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.375 ***🔗
REST request:
Code: 200
Req: {<0.18282.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a9d441d9d6e4b82d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3069@localhost\",\"ask\":\"out\"}]">>,
         212,1192}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.380 ***🔗
REST request:
Code: 204
Req: {<0.18284.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3d0921ac8ec5c7ab">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,3407}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.382 ***🔗
REST request:
Code: 200
Req: {<0.18286.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d0a2125e1af4883">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         211,1233}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.384 ***🔗
REST request:
Code: 200
Req: {<0.18288.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"565e8eb6ea93e76a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         213,1306}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.391 ***🔗
REST request:
Code: 204
Req: {<0.18290.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc5bdb1ff16143ca">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,6371}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.395 ***🔗
REST request:
Code: 200
Req: {<0.18292.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71f9d27bc35f0eaa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2359}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.433 ***🔗
REST request:
Code: 200
Req: {<0.18294.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dcceb0a7cb12c80b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3069@localhost\",\"ask\":\"none\"}]">>,
         213,1810}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.436 ***🔗
REST request:
Code: 204
Req: {<0.18296.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8433c7fe19e8f481">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>}],
         <<>>,80,2329}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3069@localhost/alice_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.439 ***🔗
REST request:
Code: 200
Req: {<0.18298.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0db2b39a92b93de3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Dec 2023 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1439}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3069@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-12-04 15:55:15.439 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='push4af627d0f3d706a3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='pushf20a4ba4250a65d7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='push89810c81a97f845d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<presence from='bob_befriend_and_alienate_3069@localhost/res1' to='alice_befriend_and_alienate_3069@localhost/res1'/>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='push248528754e890688' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<presence from='bob_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' type='subscribed'/>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='push50800a003dfe1e38' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<presence from='bob_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' type='subscribe'/>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='push4a7239af6009931f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<iq from='alice_befriend_and_alienate_3069@localhost' to='alice_befriend_and_alienate_3069@localhost/res1' id='pusha99759feedd691c0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:15.440 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
<presence from='bob_befriend_and_alienate_3069@localhost/res1' to='alice_befriend_and_alienate_3069@localhost/res1' type='unavailable'/>



*** User 2023-12-04 15:55:20.440 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push2cfb1d05bfac5770' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' type='subscribe'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push43a03aba2e02c6c0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='pushf2f07573f8b1bc95' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost/res1' to='bob_befriend_and_alienate_3069@localhost/res1'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push4ff1917a64bf3aac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' type='subscribed'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost/res1' to='bob_befriend_and_alienate_3069@localhost/res1' type='unavailable'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push9742fbb1f1d0f27b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' type='unsubscribe'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push16571aa787b3c74d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<presence from='alice_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' type='unsubscribed'/>



*** User 2023-12-04 15:55:20.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
<iq from='bob_befriend_and_alienate_3069@localhost' to='bob_befriend_and_alienate_3069@localhost/res1' id='push9f0f7c9458adc849' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_3069@localhost'/>
	</query>
</iq>



*** User 2023-12-04 15:55:25.441 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 out
</stream:stream>

*** User 2023-12-04 15:55:25.442 ***🔗
bob_befriend_and_alienate_3069@localhost/res1 in
</stream:stream>

*** User 2023-12-04 15:55:25.442 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 out
</stream:stream>

*** User 2023-12-04 15:55:25.442 ***🔗
alice_befriend_and_alienate_3069@localhost/res1 in
</stream:stream>
*** CT 2023-12-04 15:55:25.447 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4974.html



=== Ended at 2023-12-04 15:55:25
=== successfully completed test case
=== === Returned value: ok