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

=== Config value:

    [{watchdog,<0.76095.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_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@8ac7ebc93e6b.2024-03-20_18.07.02/big_tests.tests.rest_SUITE.logs/run.2024-03-20_18.20.37/rest_suite.befriend_and_alienate.221698.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@8ac7ebc93e6b.2024-03-20_18.07.02/big_tests.tests.rest_SUITE.logs/run.2024-03-20_18.20.37/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8ac7ebc93e6b.2024-03-20_18.07.02"

=== Started at 2024-03-20 18:20:38


*** CT 2024-03-20 18:20:38.564 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3631.html

*** User 2024-03-20 18:20:38.575 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-20 18:20:38.576 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6046c3bb0a5860a8' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-20 18:20:38.576 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/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-20 18:20:38.576 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTE4AG1hdHlncnlzYQ==</auth>



*** User 2024-03-20 18:20:38.577 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-20 18:20:38.578 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-20 18:20:38.578 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8c4d0b3983b5bf32' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2918@domain.example.com'>

*** User 2024-03-20 18:20:38.578 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/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-20 18:20:38.578 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 out
<iq type='set' id='e5aa01e3ddb7348df1104030efad1733'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-20 18:20:38.578 ***🔗
alicE_befriend_and_alienate_2918@domain.example.com/res1 in
<iq id='e5aa01e3ddb7348df1104030efad1733' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2918@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-20 18:20:38.579 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 out
<iq type='set' id='d54cec0208c9e98a2e11daa3f239e9c7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 18:20:38.579 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='d54cec0208c9e98a2e11daa3f239e9c7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 18:20:38.579 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 out
<presence/>



*** User 2024-03-20 18:20:38.581 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com/res1' to='alice_befriend_and_alienate_2918@domain.example.com/res1'/>



*** User 2024-03-20 18:20:38.583 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-20 18:20:38.584 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69dc0dce2eacd8f3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-20 18:20:38.584 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/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-20 18:20:38.584 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkxOABtYWtyb2xpa2E=</auth>



*** User 2024-03-20 18:20:38.587 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-20 18:20:38.587 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-20 18:20:38.587 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d817cc5d2811f7b4' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2918@domain.example.com'>

*** User 2024-03-20 18:20:38.588 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/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-20 18:20:38.588 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 out
<iq type='set' id='e8294601fea321730b78c4fa412fab23'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-20 18:20:38.588 ***🔗
bOb_befriend_and_alienate_2918@domain.example.com/res1 in
<iq id='e8294601fea321730b78c4fa412fab23' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2918@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-20 18:20:38.588 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 out
<iq type='set' id='b5d160053048ad242a6ea28e5394e489'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 18:20:38.589 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='b5d160053048ad242a6ea28e5394e489' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-20 18:20:38.590 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 out
<presence/>



*** User 2024-03-20 18:20:38.591 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2918@domain.example.com/res1' to='bob_befriend_and_alienate_2918@domain.example.com/res1'/>



*** User 2024-03-20 18:20:38.596 ***🔗
REST request:
Code: 200
Req: {<0.76212.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cd2585e20c600f5b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3067}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.599 ***🔗
REST request:
Code: 200
Req: {<0.76222.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"35fd7d1f467e55b0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1644}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.604 ***🔗
REST request:
Code: 204
Req: {<0.76227.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d19ba945864f9e65">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,3598}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.608 ***🔗
REST request:
Code: 204
Req: {<0.76232.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"882488b3aa079db0">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,2977}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.612 ***🔗
REST request:
Code: 204
Req: {<0.76234.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a207b7aabaa3191c">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,2619}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.615 ***🔗
REST request:
Code: 200
Req: {<0.76236.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a49a577496bb8699">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}]">>,
         222,1387}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.618 ***🔗
REST request:
Code: 200
Req: {<0.76238.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4f4e2fe807368f08">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}]">>,
         220,1778}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.626 ***🔗
REST request:
Code: 204
Req: {<0.76240.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6ac10c28ceb90482">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,6438}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.629 ***🔗
REST request:
Code: 200
Req: {<0.76244.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b3b68c483a7e908">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}]">>,
         219,1980}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.638 ***🔗
REST request:
Code: 204
Req: {<0.76248.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13e58a235c9af22f">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,7304}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.640 ***🔗
REST request:
Code: 200
Req: {<0.76252.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cb31512f0dff171d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}]">>,
         218,1308}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.643 ***🔗
REST request:
Code: 200
Req: {<0.76254.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"76f4229feebb9851">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}]">>,
         222,1648}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.683 ***🔗
REST request:
Code: 204
Req: {<0.76258.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ecc49fcb7f9bf394">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,38196}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.686 ***🔗
REST request:
Code: 200
Req: {<0.76262.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"85be9fd3167c2284">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}]">>,
         221,1670}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.692 ***🔗
REST request:
Code: 204
Req: {<0.76264.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a8af417ab816c77">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,4534}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-03-20 18:20:38.695 ***🔗
REST request:
Code: 200
Req: {<0.76266.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4f2aa3a2b35da856">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2918@domain.example.com\"}]">>,
         220,1690}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.698 ***🔗
REST request:
Code: 200
Req: {<0.76268.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1f0dc39c440a1325">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}]">>,
         222,1498}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.706 ***🔗
REST request:
Code: 204
Req: {<0.76270.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"526ad9ab76569dbc">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,6945}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.709 ***🔗
REST request:
Code: 200
Req: {<0.76272.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"920862b86c00601b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1607}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.712 ***🔗
REST request:
Code: 200
Req: {<0.76274.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a6c4267cd6eceea9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2918@domain.example.com\"}]">>,
         222,1404}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.715 ***🔗
REST request:
Code: 204
Req: {<0.76276.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"852c427233c6c374">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>}],
         <<>>,80,2286}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com/alice_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.720 ***🔗
REST request:
Code: 200
Req: {<0.76278.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3f6d88ad1e8a8715">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 20 Mar 2024 18:20:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1544}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2918@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='pushde4bfdf96cd6267e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='push965a55fdc5cf68e5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='push39874f82e72356df' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2918@domain.example.com/res1' to='alice_befriend_and_alienate_2918@domain.example.com/res1'/>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='push8e987cb7ecb8fa2a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' type='subscribed'/>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='pusha0b591a4f5554eed' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' type='subscribe'/>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='pushe306edc0526d5808' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2918@domain.example.com' to='alice_befriend_and_alienate_2918@domain.example.com/res1' id='pushfa04b79d58302eef' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2918@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-20 18:20:38.721 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2918@domain.example.com/res1' to='alice_befriend_and_alienate_2918@domain.example.com/res1' type='unavailable'/>



*** User 2024-03-20 18:20:43.722 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push2882474db29a1e2c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.722 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' type='subscribe'/>



*** User 2024-03-20 18:20:43.722 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='pushc3e6bd7b3582ec63' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.722 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push4a3afa95dd9cebed' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.722 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com/res1' to='bob_befriend_and_alienate_2918@domain.example.com/res1'/>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push192bd2787a12e470' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' type='subscribed'/>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com/res1' to='bob_befriend_and_alienate_2918@domain.example.com/res1' type='unavailable'/>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push6d47d1abd7f33bbc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push06cb11a47a9b7b54' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-03-20 18:20:43.723 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2918@domain.example.com' to='bob_befriend_and_alienate_2918@domain.example.com/res1' id='push4fd184b426eb889d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2918@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-20 18:20:48.724 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-20 18:20:48.725 ***🔗
bob_befriend_and_alienate_2918@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-20 18:20:48.725 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-20 18:20:48.725 ***🔗
alice_befriend_and_alienate_2918@domain.example.com/res1 in
</stream:stream>
*** CT 2024-03-20 18:20:48.734 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3650.html



=== Ended at 2024-03-20 18:20:48
=== successfully completed test case
=== === Returned value: ok