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

=== Config value:

    [{watchdog,<0.71879.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.29.10/rest_suite.befriend_and_alienate.171778.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@6b87bb397ec6.2024-04-16_10.12.53/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.29.10/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@6b87bb397ec6.2024-04-16_10.12.53"

=== Started at 2024-04-16 10:29:10


*** CT 2024-04-16 10:29:10.807 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4575.html

*** User 2024-04-16 10:29:10.819 ***🔗
alicE_befriend_and_alienate_2475@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-16 10:29:10.828 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0ae6d3e2f4c2e2b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:29:10.828 ***🔗
alicE_befriend_and_alienate_2475@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-16 10:29:10.829 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNDc1AG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:29:10.830 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:29:10.830 ***🔗
alicE_befriend_and_alienate_2475@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-16 10:29:10.830 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5183375c89eb056c' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2475@localhost'>

*** User 2024-04-16 10:29:10.831 ***🔗
alicE_befriend_and_alienate_2475@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-16 10:29:10.831 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 out
<iq type='set' id='6272e053338131d6484a2b306d3cf36d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:29:10.832 ***🔗
alicE_befriend_and_alienate_2475@localhost/res1 in
<iq id='6272e053338131d6484a2b306d3cf36d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2475@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:29:10.832 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 out
<iq type='set' id='e87f382a8b8a7331ab39abb93e075d72'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:29:10.832 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='e87f382a8b8a7331ab39abb93e075d72' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:29:10.832 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 out
<presence/>



*** User 2024-04-16 10:29:10.833 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost/res1' to='alice_befriend_and_alienate_2475@localhost/res1'/>



*** User 2024-04-16 10:29:10.834 ***🔗
bOb_befriend_and_alienate_2475@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-16 10:29:10.834 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7e84cc3d547032f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:29:10.834 ***🔗
bOb_befriend_and_alienate_2475@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-16 10:29:10.834 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjQ3NQBtYWtyb2xpa2E=</auth>



*** User 2024-04-16 10:29:10.835 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:29:10.835 ***🔗
bOb_befriend_and_alienate_2475@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-16 10:29:10.836 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a14b8c2adf3cd152' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2475@localhost'>

*** User 2024-04-16 10:29:10.836 ***🔗
bOb_befriend_and_alienate_2475@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-16 10:29:10.836 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 out
<iq type='set' id='0bb8b85c32484e0139367ec177163d3a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:29:10.836 ***🔗
bOb_befriend_and_alienate_2475@localhost/res1 in
<iq id='0bb8b85c32484e0139367ec177163d3a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2475@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:29:10.836 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 out
<iq type='set' id='605a63e4a9b10fc21cc58cefb3cbb041'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:29:10.837 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='605a63e4a9b10fc21cc58cefb3cbb041' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:29:10.837 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 out
<presence/>



*** User 2024-04-16 10:29:10.837 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='bob_befriend_and_alienate_2475@localhost/res1' to='bob_befriend_and_alienate_2475@localhost/res1'/>



*** User 2024-04-16 10:29:10.839 ***🔗
REST request:
Code: 200
Req: {<0.71973.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"24ad043c7eb2cdd2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,674}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.841 ***🔗
REST request:
Code: 200
Req: {<0.71985.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b17a1fd9aaad7aae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,550}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.844 ***🔗
REST request:
Code: 204
Req: {<0.71993.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13fd9410ee6fc62c">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,1130}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}">>,
          return_headers => true}


*** User 2024-04-16 10:29:10.847 ***🔗
REST request:
Code: 204
Req: {<0.72000.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b67896b405deced">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,969}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}">>,
          return_headers => true}


*** User 2024-04-16 10:29:10.849 ***🔗
REST request:
Code: 204
Req: {<0.72007.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"864caf40414dd6fa">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,805}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}">>,
          return_headers => true}


*** User 2024-04-16 10:29:10.851 ***🔗
REST request:
Code: 200
Req: {<0.72015.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f313998fce422492">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}]">>,
         213,581}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.857 ***🔗
REST request:
Code: 200
Req: {<0.72021.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"148e86cba71d0c4b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}]">>,
         211,4566}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.865 ***🔗
REST request:
Code: 204
Req: {<0.72023.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d501a4ff4e29858">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,5178}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-16 10:29:10.866 ***🔗
REST request:
Code: 200
Req: {<0.72031.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cae1ae0fefc46ddd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}]">>,
         210,569}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.869 ***🔗
REST request:
Code: 204
Req: {<0.72035.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5938faee04977a26">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,1352}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-16 10:29:10.873 ***🔗
REST request:
Code: 200
Req: {<0.72039.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9bbf01929d48ed56">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}]">>,
         209,1795}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.877 ***🔗
REST request:
Code: 200
Req: {<0.72042.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"028f22ae8ed68cb0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}]">>,
         213,561}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.881 ***🔗
REST request:
Code: 204
Req: {<0.72044.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"abb2367e44b29250">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,1848}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-16 10:29:10.893 ***🔗
REST request:
Code: 200
Req: {<0.72046.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1d9fb4c39fa7f2d8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}]">>,
         212,754}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.896 ***🔗
REST request:
Code: 204
Req: {<0.72048.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"06a31a6db613c4b2">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,1542}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-16 10:29:10.898 ***🔗
REST request:
Code: 200
Req: {<0.72050.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"af549889fb03abac">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2475@localhost\"}]">>,
         211,643}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.900 ***🔗
REST request:
Code: 200
Req: {<0.72052.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"67fd81531be8ea38">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}]">>,
         213,719}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.903 ***🔗
REST request:
Code: 204
Req: {<0.72054.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5e41a92df0484ca8">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,1792}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.905 ***🔗
REST request:
Code: 200
Req: {<0.72056.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"75292ecd81d79888">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,494}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.907 ***🔗
REST request:
Code: 200
Req: {<0.72058.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8daa2d798d2589e8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2475@localhost\"}]">>,
         213,615}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.910 ***🔗
REST request:
Code: 204
Req: {<0.72060.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d48c45b2dbd0f5db">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>}],
         <<>>,80,786}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2475@localhost/alice_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.912 ***🔗
REST request:
Code: 200
Req: {<0.72062.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fddffb1ed9b94862">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:29:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,569}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2475@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='pusha37dbf41bf56bae3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='push12a64515d289d2c4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='push04ce4f71daa3b6f3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2475@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<presence from='bob_befriend_and_alienate_2475@localhost/res1' to='alice_befriend_and_alienate_2475@localhost/res1'/>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='push072f3260be7cf0ae' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<presence from='bob_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' type='subscribed'/>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='pushf8b47c75dc875220' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<presence from='bob_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' type='subscribe'/>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='push7602b9c24a48a333' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<iq from='alice_befriend_and_alienate_2475@localhost' to='alice_befriend_and_alienate_2475@localhost/res1' id='push618fea282cae49d2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2475@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 10:29:10.912 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
<presence from='bob_befriend_and_alienate_2475@localhost/res1' to='alice_befriend_and_alienate_2475@localhost/res1' type='unavailable'/>



*** User 2024-04-16 10:29:15.913 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='pushba3f24063a8338d1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.913 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' type='subscribe'/>



*** User 2024-04-16 10:29:15.913 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='push22474102a6c73692' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.913 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='pushb7ea776ede9ca26b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2475@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost/res1' to='bob_befriend_and_alienate_2475@localhost/res1'/>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='push15a54f8db7fbd05b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' type='subscribed'/>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost/res1' to='bob_befriend_and_alienate_2475@localhost/res1' type='unavailable'/>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='push1fc5273454b8a9be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' type='unsubscribe'/>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='pushb954203ec1b3f083' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<presence from='alice_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' type='unsubscribed'/>



*** User 2024-04-16 10:29:15.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
<iq from='bob_befriend_and_alienate_2475@localhost' to='bob_befriend_and_alienate_2475@localhost/res1' id='push97051acbf62df225' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2475@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 10:29:20.914 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:29:20.917 ***🔗
bob_befriend_and_alienate_2475@localhost/res1 in
</stream:stream>

*** User 2024-04-16 10:29:20.917 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:29:20.917 ***🔗
alice_befriend_and_alienate_2475@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 10:29:20.921 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4594.html



=== Ended at 2024-04-16 10:29:20
=== successfully completed test case
=== === Returned value: ok