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

=== Config value:

    [{watchdog,<0.81419.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.01.30/rest_suite.befriend_and_alienate.194690.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.01.30/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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => cets,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        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@e06ff82a20fb.2024-03-21_07.45.38"

=== Started at 2024-03-21 08:01:31


*** CT 2024-03-21 08:01:31.134 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5637.html

*** User 2024-03-21 08:01:31.152 ***🔗
alicE_befriend_and_alienate_3167@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 08:01:31.152 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df43e85a5c2ac487' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:31.152 ***🔗
alicE_befriend_and_alienate_3167@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 08:01:31.152 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMTY3AG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 08:01:31.153 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:31.154 ***🔗
alicE_befriend_and_alienate_3167@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 08:01:31.155 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ecffc83b082e9d54' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3167@localhost'>

*** User 2024-03-21 08:01:31.155 ***🔗
alicE_befriend_and_alienate_3167@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 08:01:31.155 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 out
<iq type='set' id='3d428c73ae282ff09d5f01b0990a9c6e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:31.155 ***🔗
alicE_befriend_and_alienate_3167@localhost/res1 in
<iq id='3d428c73ae282ff09d5f01b0990a9c6e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3167@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:31.155 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 out
<iq type='set' id='609e8627cb339f3ded5a52a04e6da534'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:31.156 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='609e8627cb339f3ded5a52a04e6da534' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:31.156 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:31.158 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost/res1' to='alice_befriend_and_alienate_3167@localhost/res1'/>



*** User 2024-03-21 08:01:31.160 ***🔗
bOb_befriend_and_alienate_3167@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 08:01:31.161 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6dbf6ccab70e3dc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:31.161 ***🔗
bOb_befriend_and_alienate_3167@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 08:01:31.161 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzE2NwBtYWtyb2xpa2E=</auth>



*** User 2024-03-21 08:01:31.163 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:31.163 ***🔗
bOb_befriend_and_alienate_3167@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 08:01:31.163 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='921ada993706d53f' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3167@localhost'>

*** User 2024-03-21 08:01:31.163 ***🔗
bOb_befriend_and_alienate_3167@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 08:01:31.164 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 out
<iq type='set' id='ad1a610cb957f6450d91a0f1349eaced'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:31.164 ***🔗
bOb_befriend_and_alienate_3167@localhost/res1 in
<iq id='ad1a610cb957f6450d91a0f1349eaced' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3167@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:31.164 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 out
<iq type='set' id='2e978d9522f51670018d4991a6aed6cb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:31.165 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='2e978d9522f51670018d4991a6aed6cb' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:31.165 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:31.167 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='bob_befriend_and_alienate_3167@localhost/res1' to='bob_befriend_and_alienate_3167@localhost/res1'/>



*** User 2024-03-21 08:01:31.169 ***🔗
REST request:
Code: 200
Req: {<0.81526.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f5c4936248f733a7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1432}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.173 ***🔗
REST request:
Code: 200
Req: {<0.81534.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c53dc18a2882b32">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2232}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.177 ***🔗
REST request:
Code: 204
Req: {<0.81544.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"72fe10db5f7a9bc1">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,3440}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:31.182 ***🔗
REST request:
Code: 204
Req: {<0.81553.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2bc2ae6ab34c9647">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,3406}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:31.185 ***🔗
REST request:
Code: 204
Req: {<0.81558.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"73fcd02706b82805">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,2208}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:31.189 ***🔗
REST request:
Code: 200
Req: {<0.81560.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"560d46f57de0442b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}]">>,
         213,3092}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.191 ***🔗
REST request:
Code: 200
Req: {<0.81562.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"075db3c799e90db7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}]">>,
         211,1365}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.197 ***🔗
REST request:
Code: 204
Req: {<0.81564.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"55e3cdbfed0e4b1e">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,4996}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-03-21 08:01:31.200 ***🔗
REST request:
Code: 200
Req: {<0.81566.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1657edd088bb8f6f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}]">>,
         210,1497}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.206 ***🔗
REST request:
Code: 204
Req: {<0.81570.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9e52c4d5b68dc4a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,4062}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-03-21 08:01:31.208 ***🔗
REST request:
Code: 200
Req: {<0.81576.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0fbdd589a17a6cf7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}]">>,
         209,1420}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.212 ***🔗
REST request:
Code: 200
Req: {<0.81578.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62eae5317172bf3d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}]">>,
         213,2360}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.216 ***🔗
REST request:
Code: 204
Req: {<0.81580.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"25d43cf22623ebe8">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,3333}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-03-21 08:01:31.262 ***🔗
REST request:
Code: 200
Req: {<0.81584.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a081445f022a5821">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}]">>,
         212,1387}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.267 ***🔗
REST request:
Code: 204
Req: {<0.81586.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7335e034c2542ab2">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,3991}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-03-21 08:01:31.270 ***🔗
REST request:
Code: 200
Req: {<0.81590.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e4e8afa4c044d36c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3167@localhost\"}]">>,
         211,1411}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.272 ***🔗
REST request:
Code: 200
Req: {<0.81592.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c2f4ff97f15d8a22">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}]">>,
         213,1240}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.279 ***🔗
REST request:
Code: 204
Req: {<0.81594.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f2b6b17215ea7e75">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,6054}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.282 ***🔗
REST request:
Code: 200
Req: {<0.81596.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"868857a24fdfe404">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1268}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.284 ***🔗
REST request:
Code: 200
Req: {<0.81598.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ea2e10e6c7e7e931">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3167@localhost\"}]">>,
         213,1213}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.287 ***🔗
REST request:
Code: 204
Req: {<0.81600.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cb68006d6b7c6ff5">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>}],
         <<>>,80,2192}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3167@localhost/alice_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.289 ***🔗
REST request:
Code: 200
Req: {<0.81602.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2e77d05b3f0f072">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1211}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3167@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='push3e63e89b3680d4bd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='pushab1b89cba0a129d1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='push3a65b106e075a19e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3167@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<presence from='bob_befriend_and_alienate_3167@localhost/res1' to='alice_befriend_and_alienate_3167@localhost/res1'/>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='pushe7f359df07381299' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<presence from='bob_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' type='subscribed'/>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='push984031f137506e56' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<presence from='bob_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' type='subscribe'/>



*** User 2024-03-21 08:01:31.289 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='push0743d03889b3cc50' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.290 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<iq from='alice_befriend_and_alienate_3167@localhost' to='alice_befriend_and_alienate_3167@localhost/res1' id='pushf3e235ffe37c4ab2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3167@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 08:01:31.290 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
<presence from='bob_befriend_and_alienate_3167@localhost/res1' to='alice_befriend_and_alienate_3167@localhost/res1' type='unavailable'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push71ed8daf1c903d41' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' type='subscribe'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push63f759700212e108' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push65e58e5ae71a663d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3167@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost/res1' to='bob_befriend_and_alienate_3167@localhost/res1'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push28390ad0eb497aa5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' type='subscribed'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost/res1' to='bob_befriend_and_alienate_3167@localhost/res1' type='unavailable'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='pushf9ec0fc555d52474' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' type='unsubscribe'/>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push71b11bd492e0c6f7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:36.290 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<presence from='alice_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' type='unsubscribed'/>



*** User 2024-03-21 08:01:36.291 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
<iq from='bob_befriend_and_alienate_3167@localhost' to='bob_befriend_and_alienate_3167@localhost/res1' id='push622c1c5bea1f3b6f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3167@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 08:01:41.291 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:41.292 ***🔗
bob_befriend_and_alienate_3167@localhost/res1 in
</stream:stream>

*** User 2024-03-21 08:01:41.292 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:41.292 ***🔗
alice_befriend_and_alienate_3167@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 08:01:41.295 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5656.html



=== Ended at 2024-03-21 08:01:41
=== successfully completed test case
=== === Returned value: ok