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

=== Config value:

    [{watchdog,<0.12831.1>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,disabled},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/rest_suite.befriend_and_alienate.72194.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.33.42/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27"

=== Started at 2022-01-27 15:33:43


*** CT 2022-01-27 15:33:43.881 *** View log from node mongooseim@localhost when started mongooseim@localhost_4981.html
*** CT 2022-01-27 15:33:43.882 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2322.html

*** User 2022-01-27 15:33:43.891 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:33:43.891 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6e7e430097fbbfe' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:43.892 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:33:43.892 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xMTA3AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:33:43.893 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:33:43.893 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:33:43.893 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb421910c326341d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:43.893 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:33:43.893 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<iq type='set' id='a389e1cdfcf9a891e62103134f05028c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:33:43.894 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq id='a389e1cdfcf9a891e62103134f05028c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1107@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:33:43.894 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<iq type='set' id='5675d7e72e3c25d5a8291175d73cc766'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:43.894 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq type='result' id='5675d7e72e3c25d5a8291175d73cc766'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:43.894 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
<presence/>



*** User 2022-01-27 15:33:43.895 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1107@localhost/res1' to='alice_befriend_and_alienate_1107@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:43.896 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:33:43.897 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='709b6961c0134458' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:43.897 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:33:43.898 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTEwNwBtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:33:43.899 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:33:43.899 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:33:43.899 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d0eeda5ea8d26404' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<iq type='set' id='407105a5d071324b7d2a140b00395e17'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq id='407105a5d071324b7d2a140b00395e17' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1107@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<iq type='set' id='e36b19ccbbedf90f0d569b45107dbb4f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq type='result' id='e36b19ccbbedf90f0d569b45107dbb4f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:33:43.900 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
<presence/>



*** User 2022-01-27 15:33:43.901 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1107@localhost/res1' to='bob_befriend_and_alienate_1107@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:43.902 ***
REST request:
Code: 200
Req: {<0.12884.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a2ce156736485dcc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,633}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.904 ***
REST request:
Code: 200
Req: {<0.12892.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"55e3faf288747d6a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,559}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.906 ***
REST request:
Code: 204
Req: {<0.12899.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2820accd01db2ef6">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1107@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,843}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1107@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.908 ***
REST request:
Code: 204
Req: {<0.12910.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1b2421e905b6c919">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1107@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,797}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1107@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.909 ***
REST request:
Code: 200
Req: {<0.12914.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4831c72946ed1f4a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         213,440}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.910 ***
REST request:
Code: 200
Req: {<0.12916.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cc5ab36c763db3dd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         211,458}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.912 ***
REST request:
Code: 204
Req: {<0.12920.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1f764120700e6e85">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1633}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.914 ***
REST request:
Code: 200
Req: {<0.12928.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36bf1542bf371ba4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1107@localhost\",\"ask\":\"out\"}]">>,
         210,708}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.917 ***
REST request:
Code: 204
Req: {<0.12934.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"383bb1ca7a27f628">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1912}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.918 ***
REST request:
Code: 200
Req: {<0.12940.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c0aeecebfcccbcac">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         209,558}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.919 ***
REST request:
Code: 200
Req: {<0.12944.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d78b5459dc69cc3c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         213,408}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.922 ***
REST request:
Code: 204
Req: {<0.12946.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"15b0aa49637d1033">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1505}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.923 ***
REST request:
Code: 200
Req: {<0.12958.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0c9091e6e0247149">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1107@localhost\",\"ask\":\"out\"}]">>,
         212,409}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.925 ***
REST request:
Code: 204
Req: {<0.12960.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80a4fd99eeb96a62">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1663}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.926 ***
REST request:
Code: 200
Req: {<0.12962.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f541ece2ea9be19">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         211,437}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.928 ***
REST request:
Code: 200
Req: {<0.12964.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8b1eb3fa20443fc7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         213,427}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.932 ***
REST request:
Code: 204
Req: {<0.12966.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b6b13f7ffe97dae7">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3179}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.933 ***
REST request:
Code: 200
Req: {<0.12968.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e657447348a3f573">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,515}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.934 ***
REST request:
Code: 200
Req: {<0.12970.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2da37aab620a334a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1107@localhost\",\"ask\":\"none\"}]">>,
         213,442}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.936 ***
REST request:
Code: 204
Req: {<0.12972.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed965aff4507f3a3">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,696}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1107@localhost/alice_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.937 ***
REST request:
Code: 200
Req: {<0.12974.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"66ad28816c4c94cd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:33:43 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,400}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1107@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='pushd1d992d5e8291394' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='pushd2ee2be2b9e73b46' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1107@localhost/res1' to='alice_befriend_and_alienate_1107@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='push8cf4b6de432c315a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<presence from='bob_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='pusha03b8228abd68e26' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<presence from='bob_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='push909f85245cba779f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<iq from='alice_befriend_and_alienate_1107@localhost' to='alice_befriend_and_alienate_1107@localhost/res1' id='push305e4ae1d23d16b4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:43.937 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1107@localhost/res1' to='alice_befriend_and_alienate_1107@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='push91ff7cbf331437aa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alice_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='pushab67f69f140c08a9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='pushac8a233bf40b4590' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1107@localhost/res1' to='bob_befriend_and_alienate_1107@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:33:48.938 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='push754b6ccdcfcbefc7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alice_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1107@localhost/res1' to='bob_befriend_and_alienate_1107@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='push5c2931a05b05595d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alice_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' type='unsubscribe'/>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='push7b20e565ac76a5be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<presence from='alice_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' type='unsubscribed'/>



*** User 2022-01-27 15:33:48.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
<iq from='bob_befriend_and_alienate_1107@localhost' to='bob_befriend_and_alienate_1107@localhost/res1' id='push29eee39e2390651f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1107@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:33:53.939 ***
bOb_befriend_and_alienate_1107@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:33:53.940 ***
bOb_befriend_and_alienate_1107@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:33:53.940 ***
alicE_befriend_and_alienate_1107@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:33:53.940 ***
alicE_befriend_and_alienate_1107@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:33:53.941 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2322.html
*** CT 2022-01-27 15:33:53.942 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5001.html



=== Ended at 2022-01-27 15:33:53
=== successfully completed test case
=== === Returned value: ok