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

=== Config value:

    [{watchdog,<0.54654.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@5f3f77efe7fd.2024-04-25_09.33.10/big_tests.tests.rest_SUITE.logs/run.2024-04-25_09.47.34/rest_suite.befriend_and_alienate.59779.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@5f3f77efe7fd.2024-04-25_09.33.10/big_tests.tests.rest_SUITE.logs/run.2024-04-25_09.47.34/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_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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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_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@5f3f77efe7fd.2024-04-25_09.33.10"

=== Started at 2024-04-25 09:47:35


*** CT 2024-04-25 09:47:35.457 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4710.html

*** User 2024-04-25 09:47:35.465 ***🔗
alicE_befriend_and_alienate_1787@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 09:47:35.466 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8959bb642d17323a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 09:47:35.467 ***🔗
alicE_befriend_and_alienate_1787@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 09:47:35.467 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzg3AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 09:47:35.468 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 09:47:35.468 ***🔗
alicE_befriend_and_alienate_1787@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 09:47:35.469 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1f4894f79d20a02' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1787@localhost'>

*** User 2024-04-25 09:47:35.469 ***🔗
alicE_befriend_and_alienate_1787@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 09:47:35.469 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 out
<iq type='set' id='ad715a1be6da823299d1a771990d4b0d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 09:47:35.470 ***🔗
alicE_befriend_and_alienate_1787@localhost/res1 in
<iq id='ad715a1be6da823299d1a771990d4b0d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1787@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 09:47:35.476 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 out
<iq type='set' id='636c55612bd7683032481c05fbe6307d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 09:47:35.479 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='636c55612bd7683032481c05fbe6307d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 09:47:35.479 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 out
<presence/>



*** User 2024-04-25 09:47:35.480 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost/res1' to='alice_befriend_and_alienate_1787@localhost/res1'/>



*** User 2024-04-25 09:47:35.487 ***🔗
bOb_befriend_and_alienate_1787@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 09:47:35.488 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cff68d8a45f2434d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 09:47:35.488 ***🔗
bOb_befriend_and_alienate_1787@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 09:47:35.488 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTc4NwBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 09:47:35.489 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 09:47:35.489 ***🔗
bOb_befriend_and_alienate_1787@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 09:47:35.489 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af16b9715f23b8b5' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1787@localhost'>

*** User 2024-04-25 09:47:35.489 ***🔗
bOb_befriend_and_alienate_1787@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 09:47:35.489 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 out
<iq type='set' id='c65a52b5b0a9ac31fde39260b4070859'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 09:47:35.490 ***🔗
bOb_befriend_and_alienate_1787@localhost/res1 in
<iq id='c65a52b5b0a9ac31fde39260b4070859' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1787@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 09:47:35.490 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 out
<iq type='set' id='4eb359bd74a203a5bf9b0faadca63d71'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 09:47:35.491 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='4eb359bd74a203a5bf9b0faadca63d71' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 09:47:35.491 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 out
<presence/>



*** User 2024-04-25 09:47:35.492 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='bob_befriend_and_alienate_1787@localhost/res1' to='bob_befriend_and_alienate_1787@localhost/res1'/>



*** User 2024-04-25 09:47:35.497 ***🔗
REST request:
Code: 200
Req: {<0.54754.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef7007ac721771c7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,719}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.511 ***🔗
REST request:
Code: 200
Req: {<0.54764.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13a59a7606b1c713">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1353}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.520 ***🔗
REST request:
Code: 204
Req: {<0.54772.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"963cdae30b715991">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1723}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 09:47:35.528 ***🔗
REST request:
Code: 204
Req: {<0.54776.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a108c107e4c4086">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1132}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 09:47:35.538 ***🔗
REST request:
Code: 204
Req: {<0.54782.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7afaff5de58d039b">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,7236}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 09:47:35.541 ***🔗
REST request:
Code: 200
Req: {<0.54790.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3191ac6f35222c64">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}]">>,
         213,484}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.543 ***🔗
REST request:
Code: 200
Req: {<0.54796.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"681597cbb5ac9281">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}]">>,
         211,487}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.546 ***🔗
REST request:
Code: 204
Req: {<0.54802.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c8655dcbf5828573">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1391}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 09:47:35.547 ***🔗
REST request:
Code: 200
Req: {<0.54806.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"272bc871c0234a25">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}]">>,
         210,435}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.550 ***🔗
REST request:
Code: 204
Req: {<0.54811.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7d8b63d6e796ca19">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1192}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 09:47:35.551 ***🔗
REST request:
Code: 200
Req: {<0.54815.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"61cde29211e394b4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}]">>,
         209,390}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.553 ***🔗
REST request:
Code: 200
Req: {<0.54817.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c7838232b3cb720a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}]">>,
         213,370}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.555 ***🔗
REST request:
Code: 204
Req: {<0.54819.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ad3cf16badd8e8a9">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,981}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 09:47:35.556 ***🔗
REST request:
Code: 200
Req: {<0.54821.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74e3293a467aea0a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}]">>,
         212,379}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.558 ***🔗
REST request:
Code: 204
Req: {<0.54823.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c93f890ea9c81552">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1054}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 09:47:35.560 ***🔗
REST request:
Code: 200
Req: {<0.54825.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f77c86e1c3532c7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1787@localhost\"}]">>,
         211,363}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.561 ***🔗
REST request:
Code: 200
Req: {<0.54827.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"edcd174fcb79e843">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}]">>,
         213,400}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.564 ***🔗
REST request:
Code: 204
Req: {<0.54829.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e7dff74f01a8493">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1430}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.581 ***🔗
REST request:
Code: 200
Req: {<0.54831.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3455e0ddc174cd04">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4649}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.605 ***🔗
REST request:
Code: 200
Req: {<0.54833.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"194b185fe8310bc9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1787@localhost\"}]">>,
         213,4047}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.616 ***🔗
REST request:
Code: 204
Req: {<0.54835.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"684ef6a97a867001">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>}],
         <<>>,80,1372}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1787@localhost/alice_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.626 ***🔗
REST request:
Code: 200
Req: {<0.54837.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49fad14d9684e250">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 09:47:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,738}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1787@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 09:47:35.626 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='pushfa650aaf13128e3f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.626 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='pushdecb968dc5b46bb0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.626 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='pushbe7b235f754c3680' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_1787@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<presence from='bob_befriend_and_alienate_1787@localhost/res1' to='alice_befriend_and_alienate_1787@localhost/res1'/>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='pushbfec79400b259261' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<presence from='bob_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' type='subscribed'/>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='push255a6112d19781ab' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<presence from='bob_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' type='subscribe'/>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='push8e1255a84d00502e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<iq from='alice_befriend_and_alienate_1787@localhost' to='alice_befriend_and_alienate_1787@localhost/res1' id='push1de1a340ac18e410' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1787@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 09:47:35.627 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
<presence from='bob_befriend_and_alienate_1787@localhost/res1' to='alice_befriend_and_alienate_1787@localhost/res1' type='unavailable'/>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='pushdadff2cf5158858d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' type='subscribe'/>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='pushae581efaea5113c6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='pushd0e767d91b5e2d74' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_1787@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost/res1' to='bob_befriend_and_alienate_1787@localhost/res1'/>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='pushfc7fd698566b8948' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' type='subscribed'/>



*** User 2024-04-25 09:47:40.628 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost/res1' to='bob_befriend_and_alienate_1787@localhost/res1' type='unavailable'/>



*** User 2024-04-25 09:47:40.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='push62ff0646eaa53f40' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' type='unsubscribe'/>



*** User 2024-04-25 09:47:40.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='pusha378ec121e77fce9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 09:47:40.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<presence from='alice_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' type='unsubscribed'/>



*** User 2024-04-25 09:47:40.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
<iq from='bob_befriend_and_alienate_1787@localhost' to='bob_befriend_and_alienate_1787@localhost/res1' id='push4155c87df383a13c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1787@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 09:47:45.629 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 out
</stream:stream>

*** User 2024-04-25 09:47:45.630 ***🔗
bob_befriend_and_alienate_1787@localhost/res1 in
</stream:stream>

*** User 2024-04-25 09:47:45.630 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 out
</stream:stream>

*** User 2024-04-25 09:47:45.630 ***🔗
alice_befriend_and_alienate_1787@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 09:47:45.632 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4729.html



=== Ended at 2024-04-25 09:47:45
=== successfully completed test case
=== === Returned value: ok