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

=== Config value:

    [{watchdog,<0.75585.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.rest_SUITE.logs/run.2024-04-15_16.05.24/rest_suite.befriend_and_alienate.221058.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@82e417e9e7f3.2024-04-15_15.52.32/big_tests.tests.rest_SUITE.logs/run.2024-04-15_16.05.24/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_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_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}},
     {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@82e417e9e7f3.2024-04-15_15.52.32"

=== Started at 2024-04-15 16:05:25


*** CT 2024-04-15 16:05:25.834 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2624.html

*** User 2024-04-15 16:05:25.848 ***🔗
alicE_befriend_and_alienate_2924@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-04-15 16:05:25.848 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cdd6776664480bec' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:05:25.848 ***🔗
alicE_befriend_and_alienate_2924@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-04-15 16:05:25.848 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTI0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-15 16:05:25.849 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:05:25.849 ***🔗
alicE_befriend_and_alienate_2924@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-04-15 16:05:25.850 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7e3f8a3aacc782cb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2924@domain.example.com'>

*** User 2024-04-15 16:05:25.850 ***🔗
alicE_befriend_and_alienate_2924@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-04-15 16:05:25.850 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 out
<iq type='set' id='0b2f3a18a4f85f116c0caba96911d5f6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 16:05:25.851 ***🔗
alicE_befriend_and_alienate_2924@domain.example.com/res1 in
<iq id='0b2f3a18a4f85f116c0caba96911d5f6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2924@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 16:05:25.851 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 out
<iq type='set' id='a6b3279b3526586cff64e788e88b20e9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:05:25.853 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='a6b3279b3526586cff64e788e88b20e9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:05:25.853 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 out
<presence/>



*** User 2024-04-15 16:05:25.855 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com/res1' to='alice_befriend_and_alienate_2924@domain.example.com/res1'/>



*** User 2024-04-15 16:05:25.856 ***🔗
bOb_befriend_and_alienate_2924@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-04-15 16:05:25.857 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b85a321a7307c1cd' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:05:25.857 ***🔗
bOb_befriend_and_alienate_2924@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-04-15 16:05:25.857 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkyNABtYWtyb2xpa2E=</auth>



*** User 2024-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@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-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9a698a627205ad44' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2924@domain.example.com'>

*** User 2024-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@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-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 out
<iq type='set' id='aeb5361770920a7cf7d0e0f4f0e4d815'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-15 16:05:25.858 ***🔗
bOb_befriend_and_alienate_2924@domain.example.com/res1 in
<iq id='aeb5361770920a7cf7d0e0f4f0e4d815' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2924@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-15 16:05:25.859 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 out
<iq type='set' id='5c8080b8eebf34a340c01fd2367e4b2d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:05:25.859 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='5c8080b8eebf34a340c01fd2367e4b2d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-15 16:05:25.859 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 out
<presence/>



*** User 2024-04-15 16:05:25.860 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2924@domain.example.com/res1' to='bob_befriend_and_alienate_2924@domain.example.com/res1'/>



*** User 2024-04-15 16:05:25.864 ***🔗
REST request:
Code: 200
Req: {<0.75693.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"21de0fca4b94071d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2044}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.869 ***🔗
REST request:
Code: 200
Req: {<0.75703.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8945738d4b89effb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3632}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.874 ***🔗
REST request:
Code: 204
Req: {<0.75712.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2568ac409e561c97">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,3812}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-15 16:05:25.882 ***🔗
REST request:
Code: 204
Req: {<0.75719.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2d612f8c58c00ec2">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,7064}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-15 16:05:25.888 ***🔗
REST request:
Code: 204
Req: {<0.75724.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c0683a9af632ec4c">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,4549}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-15 16:05:25.892 ***🔗
REST request:
Code: 200
Req: {<0.75726.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33e890c238601eb1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}]">>,
         222,1756}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.895 ***🔗
REST request:
Code: 200
Req: {<0.75728.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a457fd78ca92d233">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}]">>,
         220,1482}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.904 ***🔗
REST request:
Code: 204
Req: {<0.75730.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b3d42d97c23c83f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,7366}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-15 16:05:25.907 ***🔗
REST request:
Code: 200
Req: {<0.75734.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64527d9ef551851d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}]">>,
         219,1886}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.916 ***🔗
REST request:
Code: 204
Req: {<0.75738.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b3e2f7e375f8b0fc">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,7434}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-15 16:05:25.919 ***🔗
REST request:
Code: 200
Req: {<0.75742.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7a8d05abc8f835d3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}]">>,
         218,1836}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.922 ***🔗
REST request:
Code: 200
Req: {<0.75744.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"064a2953b6c51612">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}]">>,
         222,1497}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.928 ***🔗
REST request:
Code: 204
Req: {<0.75746.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec0c8e6c9d64db9e">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,5206}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-15 16:05:25.932 ***🔗
REST request:
Code: 200
Req: {<0.75752.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f4d82f94fdb224c8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}]">>,
         221,1616}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.937 ***🔗
REST request:
Code: 204
Req: {<0.75754.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"12bacdf8727b7304">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,4252}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-15 16:05:25.967 ***🔗
REST request:
Code: 200
Req: {<0.75756.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a91784e650de779b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2924@domain.example.com\"}]">>,
         220,1822}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.970 ***🔗
REST request:
Code: 200
Req: {<0.75758.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"38538ef324c0ec18">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}]">>,
         222,1719}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.980 ***🔗
REST request:
Code: 204
Req: {<0.75760.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"16a8ca916444402e">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,8137}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.983 ***🔗
REST request:
Code: 200
Req: {<0.75762.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e4a2d61fd419084d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1888}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.986 ***🔗
REST request:
Code: 200
Req: {<0.75764.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4399b954c6cb0e83">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2924@domain.example.com\"}]">>,
         222,1785}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.990 ***🔗
REST request:
Code: 204
Req: {<0.75766.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f286a2573f0f078f">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>}],
         <<>>,80,2389}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com/alice_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.993 ***🔗
REST request:
Code: 200
Req: {<0.75768.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2619dab54dd2efd6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 15 Apr 2024 16:05:25 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1675}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2924@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='pushac9d3916bed95677' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='push584e375be9b5cca6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='pushde40d6d1b99e4e12' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2924@domain.example.com/res1' to='alice_befriend_and_alienate_2924@domain.example.com/res1'/>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='pushf5e27b7adfb39a77' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='pushc6ec71b54c470097' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='pushcf1eab87f247b6b4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2924@domain.example.com' to='alice_befriend_and_alienate_2924@domain.example.com/res1' id='push7371634183690fa0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2924@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-15 16:05:25.993 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2924@domain.example.com/res1' to='alice_befriend_and_alienate_2924@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='push2fee2bda38dbfaf6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='pushadc489e99bc8e0a6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='pushcb9c0cf144bf1844' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com/res1' to='bob_befriend_and_alienate_2924@domain.example.com/res1'/>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='push2f5654cfee8abe94' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com/res1' to='bob_befriend_and_alienate_2924@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='pushf6d2c7d9aa4135a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.994 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-04-15 16:05:30.995 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='push7a8fd12979fa5046' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-15 16:05:30.995 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-04-15 16:05:30.995 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2924@domain.example.com' to='bob_befriend_and_alienate_2924@domain.example.com/res1' id='push1998891087bfce23' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2924@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-15 16:05:35.996 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-15 16:05:35.996 ***🔗
bob_befriend_and_alienate_2924@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-15 16:05:35.996 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-15 16:05:35.997 ***🔗
alice_befriend_and_alienate_2924@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-15 16:05:36.000 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2643.html



=== Ended at 2024-04-15 16:05:36
=== successfully completed test case
=== === Returned value: ok