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

=== Config value:

    [{watchdog,<0.88783.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.44.47/rest_suite.befriend_and_alienate.127108.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@cec807ac1e64.2024-04-22_17.28.38/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.44.47/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{server_info => [],iqdisc => one_queue,extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{inactivity => 30,max_pause => 120,max_wait => infinity,
              server_acks => false,backend => mnesia},
        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@cec807ac1e64.2024-04-22_17.28.38"

=== Started at 2024-04-22 17:44:48


*** CT 2024-04-22 17:44:48.748 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5631.html

*** User 2024-04-22 17:44:48.768 ***🔗
alicE_befriend_and_alienate_3198@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-22 17:44:48.768 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6125b2a8763a24ac' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:44:48.769 ***🔗
alicE_befriend_and_alienate_3198@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-22 17:44:48.769 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMTk4AG1hdHlncnlzYQ==</auth>



*** User 2024-04-22 17:44:48.770 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:44:48.770 ***🔗
alicE_befriend_and_alienate_3198@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-22 17:44:48.770 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13c0bfd9d73e58fa' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3198@localhost'>

*** User 2024-04-22 17:44:48.771 ***🔗
alicE_befriend_and_alienate_3198@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-22 17:44:48.771 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 out
<iq type='set' id='dd0360e4118100a5c6cc27d7a7a7bd44'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:44:48.771 ***🔗
alicE_befriend_and_alienate_3198@localhost/res1 in
<iq id='dd0360e4118100a5c6cc27d7a7a7bd44' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3198@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:44:48.771 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 out
<iq type='set' id='4ebf4da27281dfc49f64e7ac95776b7e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:44:48.773 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='4ebf4da27281dfc49f64e7ac95776b7e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:44:48.773 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 out
<presence/>



*** User 2024-04-22 17:44:48.775 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost/res1' to='alice_befriend_and_alienate_3198@localhost/res1'/>



*** User 2024-04-22 17:44:48.775 ***🔗
bOb_befriend_and_alienate_3198@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-22 17:44:48.776 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='826b298aff1ff932' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:44:48.776 ***🔗
bOb_befriend_and_alienate_3198@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-22 17:44:48.776 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzE5OABtYWtyb2xpa2E=</auth>



*** User 2024-04-22 17:44:48.778 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:44:48.778 ***🔗
bOb_befriend_and_alienate_3198@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-22 17:44:48.778 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='275abb12fbede90b' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3198@localhost'>

*** User 2024-04-22 17:44:48.779 ***🔗
bOb_befriend_and_alienate_3198@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-22 17:44:48.779 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 out
<iq type='set' id='4bd354a0ffd3ef5b35e92050b1585635'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:44:48.780 ***🔗
bOb_befriend_and_alienate_3198@localhost/res1 in
<iq id='4bd354a0ffd3ef5b35e92050b1585635' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3198@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:44:48.780 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 out
<iq type='set' id='515062da30db6256ebe65c53c8770b30'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:44:48.780 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='515062da30db6256ebe65c53c8770b30' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:44:48.781 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 out
<presence/>



*** User 2024-04-22 17:44:48.782 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='bob_befriend_and_alienate_3198@localhost/res1' to='bob_befriend_and_alienate_3198@localhost/res1'/>



*** User 2024-04-22 17:44:48.785 ***🔗
REST request:
Code: 200
Req: {<0.88892.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f5e62500d4c50ee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1852}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.788 ***🔗
REST request:
Code: 200
Req: {<0.88898.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1abc7da9d6a68e8a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2079}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.794 ***🔗
REST request:
Code: 204
Req: {<0.88906.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8b29b72a8f096553">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,4684}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}">>,
          return_headers => true}


*** User 2024-04-22 17:44:48.799 ***🔗
REST request:
Code: 204
Req: {<0.88916.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"90fddf605cf60595">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,3400}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}">>,
          return_headers => true}


*** User 2024-04-22 17:44:48.848 ***🔗
REST request:
Code: 204
Req: {<0.88922.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"76974608c595d82c">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,48786}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}">>,
          return_headers => true}


*** User 2024-04-22 17:44:48.855 ***🔗
REST request:
Code: 200
Req: {<0.88924.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64e6104c4772680b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}]">>,
         213,4596}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.858 ***🔗
REST request:
Code: 200
Req: {<0.88926.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"51b4b73d73448045">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}]">>,
         211,1904}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.872 ***🔗
REST request:
Code: 204
Req: {<0.88928.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6cbc4cc3e50f6dc8">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,12997}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-22 17:44:48.876 ***🔗
REST request:
Code: 200
Req: {<0.88930.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d19bc8fea42192af">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}]">>,
         210,2057}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.883 ***🔗
REST request:
Code: 204
Req: {<0.88934.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f7f95065b61d6bcc">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,5670}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-22 17:44:48.886 ***🔗
REST request:
Code: 200
Req: {<0.88940.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f7e27b5bff5c7f7b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}]">>,
         209,1924}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.888 ***🔗
REST request:
Code: 200
Req: {<0.88942.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"57d34c4e75258b57">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}]">>,
         213,1794}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.894 ***🔗
REST request:
Code: 204
Req: {<0.88944.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6a6c68567d0fc26d">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,5120}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-22 17:44:48.897 ***🔗
REST request:
Code: 200
Req: {<0.88948.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"73bf87f88b41f8b5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}]">>,
         212,1743}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.905 ***🔗
REST request:
Code: 204
Req: {<0.88950.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e452fe94f9152c1">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,6551}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-22 17:44:48.908 ***🔗
REST request:
Code: 200
Req: {<0.88954.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"55aa56926358490b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3198@localhost\"}]">>,
         211,1916}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.910 ***🔗
REST request:
Code: 200
Req: {<0.88956.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80a13de0b3fb6244">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}]">>,
         213,1519}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.921 ***🔗
REST request:
Code: 204
Req: {<0.88958.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b764b6fa15a835d6">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,9219}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.923 ***🔗
REST request:
Code: 200
Req: {<0.88960.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8290283add372e8b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1347}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.925 ***🔗
REST request:
Code: 200
Req: {<0.88962.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"564e0ea35e40e3da">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3198@localhost\"}]">>,
         213,1352}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.929 ***🔗
REST request:
Code: 204
Req: {<0.88964.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"37cd3646c6e52693">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>}],
         <<>>,80,2998}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3198@localhost/alice_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.945 ***🔗
REST request:
Code: 200
Req: {<0.88966.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6631b3ffdf83592c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:44:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2435}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3198@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='push7374d329d9b89860' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='push10a8d0524d22e321' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='push2bb8751805011650' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3198@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<presence from='bob_befriend_and_alienate_3198@localhost/res1' to='alice_befriend_and_alienate_3198@localhost/res1'/>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='push92e6451cb023624c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<presence from='bob_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' type='subscribed'/>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='pushb3bdc4cf2af465bd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<presence from='bob_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' type='subscribe'/>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='push6eebd693899969dc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<iq from='alice_befriend_and_alienate_3198@localhost' to='alice_befriend_and_alienate_3198@localhost/res1' id='pushba2b94c4acb861f5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3198@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-22 17:44:48.946 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
<presence from='bob_befriend_and_alienate_3198@localhost/res1' to='alice_befriend_and_alienate_3198@localhost/res1' type='unavailable'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='push93c3ef867a3e04a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' type='subscribe'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='pushbd7b296486d9f5d1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='push4f4158a37d6d4596' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3198@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost/res1' to='bob_befriend_and_alienate_3198@localhost/res1'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='push468a2c1f72664c50' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' type='subscribed'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost/res1' to='bob_befriend_and_alienate_3198@localhost/res1' type='unavailable'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='pushe023618f1faabcda' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' type='unsubscribe'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='pushc8d1a1dd0af07547' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<presence from='alice_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' type='unsubscribed'/>



*** User 2024-04-22 17:44:53.947 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
<iq from='bob_befriend_and_alienate_3198@localhost' to='bob_befriend_and_alienate_3198@localhost/res1' id='push1bd7a7f593c64e1d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3198@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-22 17:44:58.948 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:44:58.948 ***🔗
bob_befriend_and_alienate_3198@localhost/res1 in
</stream:stream>

*** User 2024-04-22 17:44:58.949 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:44:58.949 ***🔗
alice_befriend_and_alienate_3198@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 17:44:58.952 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5631.html



=== Ended at 2024-04-22 17:44:58
=== successfully completed test case
=== === Returned value: ok