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

=== Config value:

    [{watchdog,<0.71003.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_SUITE.logs/run.2023-12-07_07.57.47/rest_suite.befriend_and_alienate.98052.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_SUITE.logs/run.2023-12-07_07.57.47/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_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_sic => #{iqdisc => one_queue},
        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_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"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@d3b7dd7159a8.2023-12-07_07.46.41"

=== Started at 2023-12-07 07:57:47


*** CT 2023-12-07 07:57:47.728 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2393.html

*** User 2023-12-07 07:57:47.741 ***🔗
alicE_befriend_and_alienate_2546@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 2023-12-07 07:57:47.742 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6643fe1df0f0f155' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:57:47.742 ***🔗
alicE_befriend_and_alienate_2546@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 2023-12-07 07:57:47.742 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNTQ2AG1hdHlncnlzYQ==</auth>



*** User 2023-12-07 07:57:47.743 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:57:47.743 ***🔗
alicE_befriend_and_alienate_2546@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 2023-12-07 07:57:47.743 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25b311103ea9bf01' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2546@domain.example.com'>

*** User 2023-12-07 07:57:47.743 ***🔗
alicE_befriend_and_alienate_2546@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 2023-12-07 07:57:47.743 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 out
<iq type='set' id='c932f3722bbd5f691496049488b3328d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:57:47.744 ***🔗
alicE_befriend_and_alienate_2546@domain.example.com/res1 in
<iq id='c932f3722bbd5f691496049488b3328d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2546@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:57:47.744 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 out
<iq type='set' id='4f962168e71f72cd024b946847690595'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:47.745 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='4f962168e71f72cd024b946847690595' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:47.745 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:57:47.748 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com/res1' to='alice_befriend_and_alienate_2546@domain.example.com/res1'/>



*** User 2023-12-07 07:57:47.748 ***🔗
bOb_befriend_and_alienate_2546@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 2023-12-07 07:57:47.748 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b61573a1672c23c9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:57:47.749 ***🔗
bOb_befriend_and_alienate_2546@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 2023-12-07 07:57:47.749 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjU0NgBtYWtyb2xpa2E=</auth>



*** User 2023-12-07 07:57:47.749 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:57:47.750 ***🔗
bOb_befriend_and_alienate_2546@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 2023-12-07 07:57:47.750 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3aa9679ba944d5b1' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2546@domain.example.com'>

*** User 2023-12-07 07:57:47.750 ***🔗
bOb_befriend_and_alienate_2546@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 2023-12-07 07:57:47.750 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 out
<iq type='set' id='d278581416008aab21bb0429123d9247'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:57:47.750 ***🔗
bOb_befriend_and_alienate_2546@domain.example.com/res1 in
<iq id='d278581416008aab21bb0429123d9247' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2546@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:57:47.750 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 out
<iq type='set' id='e784b8a3a4700d8ce969fa1c9872d8e1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:47.751 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='e784b8a3a4700d8ce969fa1c9872d8e1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:57:47.751 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:57:47.753 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2546@domain.example.com/res1' to='bob_befriend_and_alienate_2546@domain.example.com/res1'/>



*** User 2023-12-07 07:57:47.756 ***🔗
REST request:
Code: 200
Req: {<0.71109.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"88afcba4f8526fb4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1584}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.758 ***🔗
REST request:
Code: 200
Req: {<0.71120.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ab2c95effa01a997">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2065}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.763 ***🔗
REST request:
Code: 204
Req: {<0.71130.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed2806e68ccb8a8e">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,3267}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:57:47.767 ***🔗
REST request:
Code: 204
Req: {<0.71137.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7d4b17def5e15693">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,3092}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:57:47.770 ***🔗
REST request:
Code: 204
Req: {<0.71142.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1b67bdd839bfaa16">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,2919}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:57:47.773 ***🔗
REST request:
Code: 200
Req: {<0.71144.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a5b0c4eab6f0fc72">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}]">>,
         222,1716}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.776 ***🔗
REST request:
Code: 200
Req: {<0.71146.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"19c030ff4654d1fe">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}]">>,
         220,2057}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.781 ***🔗
REST request:
Code: 204
Req: {<0.71148.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"77b311d3fdc3c814">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,4253}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2023-12-07 07:57:47.826 ***🔗
REST request:
Code: 200
Req: {<0.71150.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a4779bedaf598613">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}]">>,
         219,44137}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.833 ***🔗
REST request:
Code: 204
Req: {<0.71152.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9e88ce0652844e90">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,5309}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2023-12-07 07:57:47.835 ***🔗
REST request:
Code: 200
Req: {<0.71158.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"28ff4137be0e897d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}]">>,
         218,1416}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.839 ***🔗
REST request:
Code: 200
Req: {<0.71160.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f09c24bc8f28f3e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}]">>,
         222,3021}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.844 ***🔗
REST request:
Code: 204
Req: {<0.71164.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8792e7e7c68c92cf">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,4729}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2023-12-07 07:57:47.848 ***🔗
REST request:
Code: 200
Req: {<0.71166.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5c0f0f3ee7ba9c0e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}]">>,
         221,2460}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.854 ***🔗
REST request:
Code: 204
Req: {<0.71170.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0816a988111da9e6">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,5335}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2023-12-07 07:57:47.856 ***🔗
REST request:
Code: 200
Req: {<0.71174.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b8b5559f50f7f12">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2546@domain.example.com\"}]">>,
         220,1698}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.859 ***🔗
REST request:
Code: 200
Req: {<0.71176.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62a25b3827149efd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}]">>,
         222,1449}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.868 ***🔗
REST request:
Code: 204
Req: {<0.71178.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dcc36ab1bbfc52af">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,8186}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.870 ***🔗
REST request:
Code: 200
Req: {<0.71180.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bfcb9c7b24ab8109">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1553}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.873 ***🔗
REST request:
Code: 200
Req: {<0.71182.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62fd34908ee912eb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2546@domain.example.com\"}]">>,
         222,1626}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.876 ***🔗
REST request:
Code: 204
Req: {<0.71184.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f5c8170422dedb3">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>}],
         <<>>,80,2343}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com/alice_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.878 ***🔗
REST request:
Code: 200
Req: {<0.71186.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6214354c6f9d67c0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:57:47 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1665}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2546@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='pushfe39b093098ba96e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='push4f5306f63777fd4d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='pushd526e092524b1d24' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2546@domain.example.com/res1' to='alice_befriend_and_alienate_2546@domain.example.com/res1'/>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='push441d01dabb1e657f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' type='subscribed'/>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='push37d69ffd6e13fc7f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' type='subscribe'/>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='pushcc0074b5c174a4b5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2546@domain.example.com' to='alice_befriend_and_alienate_2546@domain.example.com/res1' id='pushb3672d368d5e7e28' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:47.879 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2546@domain.example.com/res1' to='alice_befriend_and_alienate_2546@domain.example.com/res1' type='unavailable'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='push3bccc19233430ff1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' type='subscribe'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='push50e7c996caa6d5cd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='push2165734b30938d00' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com/res1' to='bob_befriend_and_alienate_2546@domain.example.com/res1'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='pushd1d4fe0d2cdca247' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' type='subscribed'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com/res1' to='bob_befriend_and_alienate_2546@domain.example.com/res1' type='unavailable'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='push83639ccd49be95e8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' type='unsubscribe'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='push070aaafcd76d971c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' type='unsubscribed'/>



*** User 2023-12-07 07:57:52.880 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2546@domain.example.com' to='bob_befriend_and_alienate_2546@domain.example.com/res1' id='pushaedb639f0d03b1e1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2546@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:57:57.881 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:57:57.881 ***🔗
bob_befriend_and_alienate_2546@domain.example.com/res1 in
</stream:stream>

*** User 2023-12-07 07:57:57.881 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:57:57.882 ***🔗
alice_befriend_and_alienate_2546@domain.example.com/res1 in
</stream:stream>
*** CT 2023-12-07 07:57:57.884 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2412.html



=== Ended at 2023-12-07 07:57:57
=== successfully completed test case
=== === Returned value: ok