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

=== Config value:

    [{watchdog,<0.87939.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_SUITE.logs/run.2024-03-21_22.34.47/rest_suite.befriend_and_alienate.178179.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@17a96e781220.2024-03-21_22.20.25/big_tests.tests.rest_SUITE.logs/run.2024-03-21_22.34.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_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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@17a96e781220.2024-03-21_22.20.25"

=== Started at 2024-03-21 22:34:48


*** CT 2024-03-21 22:34:48.680 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5674.html

*** User 2024-03-21 22:34:48.695 ***🔗
alicE_befriend_and_alienate_3121@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-03-21 22:34:48.696 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b5440f8071bfe4b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 22:34:48.696 ***🔗
alicE_befriend_and_alienate_3121@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-03-21 22:34:48.696 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMTIxAG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 22:34:48.697 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 22:34:48.697 ***🔗
alicE_befriend_and_alienate_3121@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-03-21 22:34:48.698 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0491f06ec1e05b9a' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3121@localhost'>

*** User 2024-03-21 22:34:48.698 ***🔗
alicE_befriend_and_alienate_3121@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-03-21 22:34:48.698 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 out
<iq type='set' id='225cbe50892d10c186815fe658c1732b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 22:34:48.698 ***🔗
alicE_befriend_and_alienate_3121@localhost/res1 in
<iq id='225cbe50892d10c186815fe658c1732b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3121@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 22:34:48.698 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 out
<iq type='set' id='b8686641c67487b1d35be2d498f7ce2e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:34:48.699 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='b8686641c67487b1d35be2d498f7ce2e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:34:48.699 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 out
<presence/>



*** User 2024-03-21 22:34:48.701 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost/res1' to='alice_befriend_and_alienate_3121@localhost/res1'/>



*** User 2024-03-21 22:34:48.702 ***🔗
bOb_befriend_and_alienate_3121@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-03-21 22:34:48.702 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e797a9cf4c3a703d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 22:34:48.703 ***🔗
bOb_befriend_and_alienate_3121@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-03-21 22:34:48.703 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzEyMQBtYWtyb2xpa2E=</auth>



*** User 2024-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@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-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cecd0055660063c5' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3121@localhost'>

*** User 2024-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@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-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 out
<iq type='set' id='2979c4e6ce60664808b939e0a064dcf6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 22:34:48.704 ***🔗
bOb_befriend_and_alienate_3121@localhost/res1 in
<iq id='2979c4e6ce60664808b939e0a064dcf6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3121@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 22:34:48.705 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 out
<iq type='set' id='b44b4c71b8f5b6cecc8e84a3bc0805a8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:34:48.705 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='b44b4c71b8f5b6cecc8e84a3bc0805a8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 22:34:48.706 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 out
<presence/>



*** User 2024-03-21 22:34:48.708 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='bob_befriend_and_alienate_3121@localhost/res1' to='bob_befriend_and_alienate_3121@localhost/res1'/>



*** User 2024-03-21 22:34:48.710 ***🔗
REST request:
Code: 200
Req: {<0.88045.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f21a6633f009c94">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1615}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.713 ***🔗
REST request:
Code: 200
Req: {<0.88056.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1d3fdd19a0f08766">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1552}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.718 ***🔗
REST request:
Code: 204
Req: {<0.88064.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1003266baf11d525">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,4592}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.722 ***🔗
REST request:
Code: 204
Req: {<0.88073.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"79f23df7bad14cef">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,3046}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.726 ***🔗
REST request:
Code: 204
Req: {<0.88078.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f3ccfda6042a686">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,3186}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.729 ***🔗
REST request:
Code: 200
Req: {<0.88080.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"209bc1b396e0cd3d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}]">>,
         213,1625}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.731 ***🔗
REST request:
Code: 200
Req: {<0.88082.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4746257dfa95db6f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}]">>,
         211,1316}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.736 ***🔗
REST request:
Code: 204
Req: {<0.88084.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"79f3696eec227744">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,4160}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.781 ***🔗
REST request:
Code: 200
Req: {<0.88086.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2ed2ca9191c42043">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}]">>,
         210,44323}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.787 ***🔗
REST request:
Code: 204
Req: {<0.88088.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"478490825e402dd3">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,4965}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.789 ***🔗
REST request:
Code: 200
Req: {<0.88094.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fab6250a49aab32b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}]">>,
         209,1395}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.792 ***🔗
REST request:
Code: 200
Req: {<0.88098.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3924d412097ef749">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}]">>,
         213,2029}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.797 ***🔗
REST request:
Code: 204
Req: {<0.88100.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"31ffbda22898dac4">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,4079}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.799 ***🔗
REST request:
Code: 200
Req: {<0.88102.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5942e1febf9c6754">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}]">>,
         212,1312}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.805 ***🔗
REST request:
Code: 204
Req: {<0.88104.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3bdf24cebde6c93d">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,4647}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 22:34:48.807 ***🔗
REST request:
Code: 200
Req: {<0.88110.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4bb66ab0aa5b2c87">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3121@localhost\"}]">>,
         211,1191}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.809 ***🔗
REST request:
Code: 200
Req: {<0.88112.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ff1ad769187ce336">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}]">>,
         213,1464}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.818 ***🔗
REST request:
Code: 204
Req: {<0.88114.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e3039308bbc46c8">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,8070}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.820 ***🔗
REST request:
Code: 200
Req: {<0.88116.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"227ca751de19aeef">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1539}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.822 ***🔗
REST request:
Code: 200
Req: {<0.88118.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"802a359bb7f29a34">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3121@localhost\"}]">>,
         213,1293}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.826 ***🔗
REST request:
Code: 204
Req: {<0.88120.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8c6fb9c0c74db173">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>}],
         <<>>,80,2428}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3121@localhost/alice_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.828 ***🔗
REST request:
Code: 200
Req: {<0.88122.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"991f4f212bbdf892">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 22:34:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1452}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3121@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='push8b9bfdbdf897831c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='pushdfac7c61f1f30068' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='push0098839370802f31' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3121@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<presence from='bob_befriend_and_alienate_3121@localhost/res1' to='alice_befriend_and_alienate_3121@localhost/res1'/>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='push35d22afd51be857c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<presence from='bob_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' type='subscribed'/>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='pushae3becad0dfd6eb2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<presence from='bob_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' type='subscribe'/>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='pushbd0959d932755fda' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<iq from='alice_befriend_and_alienate_3121@localhost' to='alice_befriend_and_alienate_3121@localhost/res1' id='push25f69bbe1753aca7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3121@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 22:34:48.828 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
<presence from='bob_befriend_and_alienate_3121@localhost/res1' to='alice_befriend_and_alienate_3121@localhost/res1' type='unavailable'/>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='pushd7ab6a16409a382a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' type='subscribe'/>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='push72690b0b55a6cb62' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='push057be41b712d3b93' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3121@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost/res1' to='bob_befriend_and_alienate_3121@localhost/res1'/>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='push6c5fb9e08a4bb719' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' type='subscribed'/>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost/res1' to='bob_befriend_and_alienate_3121@localhost/res1' type='unavailable'/>



*** User 2024-03-21 22:34:53.829 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='push112a309fc714f0ac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.830 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' type='unsubscribe'/>



*** User 2024-03-21 22:34:53.830 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='pushe6bbe644a05c8be7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 22:34:53.830 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<presence from='alice_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' type='unsubscribed'/>



*** User 2024-03-21 22:34:53.830 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
<iq from='bob_befriend_and_alienate_3121@localhost' to='bob_befriend_and_alienate_3121@localhost/res1' id='pushf281c5d160fee763' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3121@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 22:34:58.830 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 out
</stream:stream>

*** User 2024-03-21 22:34:58.831 ***🔗
bob_befriend_and_alienate_3121@localhost/res1 in
</stream:stream>

*** User 2024-03-21 22:34:58.831 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 out
</stream:stream>

*** User 2024-03-21 22:34:58.831 ***🔗
alice_befriend_and_alienate_3121@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 22:34:58.833 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5693.html



=== Ended at 2024-03-21 22:34:58
=== successfully completed test case
=== === Returned value: ok