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

=== Config value:

    [{watchdog,<0.81932.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f9d3eab3b59f.2024-04-22_17.28.49/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.43.18/rest_suite.befriend_and_alienate.208386.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@f9d3eab3b59f.2024-04-22_17.28.49/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.43.18/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,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 => cets,
              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 => cets},
        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@f9d3eab3b59f.2024-04-22_17.28.49"

=== Started at 2024-04-22 17:43:19


*** CT 2024-04-22 17:43:19.146 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5532.html

*** User 2024-04-22 17:43:19.156 ***🔗
alicE_befriend_and_alienate_2991@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:43:19.157 ***🔗
alicE_befriend_and_alienate_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='acb2809ec2cab8a1' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2024-04-22 17:43:19.159 ***🔗
alicE_befriend_and_alienate_2991@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:43:19.159 ***🔗
alicE_befriend_and_alienate_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6abf76f339612c97' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2991@localhost'>

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



*** User 2024-04-22 17:43:19.159 ***🔗
alicE_befriend_and_alienate_2991@localhost/res1 in
<iq id='a755976cb59b02b21bd50be92f91a88a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2991@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:43:19.159 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 out
<iq type='set' id='006cd7ed4b95c19ba822ddd2c8ce2db6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:19.160 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='006cd7ed4b95c19ba822ddd2c8ce2db6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:19.160 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 out
<presence/>



*** User 2024-04-22 17:43:19.161 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost/res1' to='alice_befriend_and_alienate_2991@localhost/res1'/>



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

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



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



*** User 2024-04-22 17:43:19.163 ***🔗
bOb_befriend_and_alienate_2991@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:43:19.164 ***🔗
bOb_befriend_and_alienate_2991@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='44c44eed862576e1' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2991@localhost'>

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



*** User 2024-04-22 17:43:19.164 ***🔗
bOb_befriend_and_alienate_2991@localhost/res1 in
<iq id='ebad098db0583ffa6d46109181ee39a3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2991@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:43:19.164 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 out
<iq type='set' id='1d53a5e1679e5de69b208944d306f08f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:19.165 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='1d53a5e1679e5de69b208944d306f08f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:43:19.165 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 out
<presence/>



*** User 2024-04-22 17:43:19.167 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='bob_befriend_and_alienate_2991@localhost/res1' to='bob_befriend_and_alienate_2991@localhost/res1'/>



*** User 2024-04-22 17:43:19.169 ***🔗
REST request:
Code: 200
Req: {<0.82049.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8379b6a21ae570f7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1534}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.172 ***🔗
REST request:
Code: 200
Req: {<0.82053.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"41536385b1c68f41">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1496}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.175 ***🔗
REST request:
Code: 204
Req: {<0.82061.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"40100e695e17931b">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,2082}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-22 17:43:19.178 ***🔗
REST request:
Code: 204
Req: {<0.82066.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f4dbe56d50282d8">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,2148}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-22 17:43:19.182 ***🔗
REST request:
Code: 204
Req: {<0.82071.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c8aeacea478efb92">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,2584}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-22 17:43:19.184 ***🔗
REST request:
Code: 200
Req: {<0.82073.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b442b791d621c053">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}]">>,
         213,996}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.186 ***🔗
REST request:
Code: 200
Req: {<0.82075.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"07dcced3be1ed1a5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}]">>,
         211,1001}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.190 ***🔗
REST request:
Code: 204
Req: {<0.82077.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04917d0a4c0b9846">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,3069}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-22 17:43:19.192 ***🔗
REST request:
Code: 200
Req: {<0.82081.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"444be96f93381dea">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}]">>,
         210,1312}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.196 ***🔗
REST request:
Code: 204
Req: {<0.82085.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97415049ae4f0665">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,3293}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-22 17:43:19.199 ***🔗
REST request:
Code: 200
Req: {<0.82089.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49fdd49c765ad25e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}]">>,
         209,1322}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.201 ***🔗
REST request:
Code: 200
Req: {<0.82091.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9602e4a0f2e71d5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}]">>,
         213,1077}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.205 ***🔗
REST request:
Code: 204
Req: {<0.82093.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"01cf500ea98d4f30">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,3468}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-22 17:43:19.207 ***🔗
REST request:
Code: 200
Req: {<0.82099.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bb73051da27a4357">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}]">>,
         212,1111}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.256 ***🔗
REST request:
Code: 204
Req: {<0.82101.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1ba008d9f3994e8a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,47727}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-22 17:43:19.259 ***🔗
REST request:
Code: 200
Req: {<0.82103.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b7aadbde6a3a2112">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2991@localhost\"}]">>,
         211,1489}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.261 ***🔗
REST request:
Code: 200
Req: {<0.82105.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dbd8dd6fbdbd753f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}]">>,
         213,1201}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.268 ***🔗
REST request:
Code: 204
Req: {<0.82107.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"45e1c3227bdc4cb8">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,6140}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2991@localhost/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"DELETE">>,
          return_headers => true}


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


*** User 2024-04-22 17:43:19.272 ***🔗
REST request:
Code: 200
Req: {<0.82111.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c04c28c1dd73dadf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2991@localhost\"}]">>,
         213,1213}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.275 ***🔗
REST request:
Code: 204
Req: {<0.82113.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dcec33e35079b035">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>}],
         <<>>,80,1946}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2991@localhost/alice_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.277 ***🔗
REST request:
Code: 200
Req: {<0.82115.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7126f62eac2301a1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 22 Apr 2024 17:43:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1066}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2991@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push664af8610130752d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push44bd46a7b0a4d6ec' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push047331fb7d74a70e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2991@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<presence from='bob_befriend_and_alienate_2991@localhost/res1' to='alice_befriend_and_alienate_2991@localhost/res1'/>



*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push53e632608af2aa7f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.277 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<presence from='bob_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' type='subscribed'/>



*** User 2024-04-22 17:43:19.278 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push94cf324c5e5aa214' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.278 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<presence from='bob_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' type='subscribe'/>



*** User 2024-04-22 17:43:19.278 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push856db0c212675e16' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.278 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<iq from='alice_befriend_and_alienate_2991@localhost' to='alice_befriend_and_alienate_2991@localhost/res1' id='push6f8327ce6c1f0b00' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2991@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-22 17:43:19.278 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
<presence from='bob_befriend_and_alienate_2991@localhost/res1' to='alice_befriend_and_alienate_2991@localhost/res1' type='unavailable'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='pushccf0a1d8bbc49af8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' type='subscribe'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='pusha2280ee5650caeae' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='push038bfc858a5e0dda' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2991@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost/res1' to='bob_befriend_and_alienate_2991@localhost/res1'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='pushefeb69f142042b4a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' type='subscribed'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost/res1' to='bob_befriend_and_alienate_2991@localhost/res1' type='unavailable'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='push7de09694b2401acd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' type='unsubscribe'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='pushe0fe74d41db0f922' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<presence from='alice_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' type='unsubscribed'/>



*** User 2024-04-22 17:43:24.279 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
<iq from='bob_befriend_and_alienate_2991@localhost' to='bob_befriend_and_alienate_2991@localhost/res1' id='push7fcf78e314986145' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2991@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-22 17:43:29.280 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:43:29.280 ***🔗
bob_befriend_and_alienate_2991@localhost/res1 in
</stream:stream>

*** User 2024-04-22 17:43:29.280 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:43:29.280 ***🔗
alice_befriend_and_alienate_2991@localhost/res1 in
</stream:stream>
*** CT 2024-04-22 17:43:29.282 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5532.html



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