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

=== Config value:

    [{watchdog,<0.14157.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,"internal_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.35.34/rest_suite.befriend_and_alienate.74370.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.35.34/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@34a9b6d2516c.2022-01-27_15.25.07"

=== Started at 2022-01-27 15:35:35


*** CT 2022-01-27 15:35:35.531 *** View log from node mongooseim@localhost when started mongooseim@localhost_5234.html
*** CT 2022-01-27 15:35:35.532 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2357.html

*** User 2022-01-27 15:35:35.539 ***
alicE_befriend_and_alienate_1341@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:35:35.540 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09c21108c785e0d2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:35.540 ***
alicE_befriend_and_alienate_1341@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>SCRAM-SHA-256</mechanism>
		<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:35:35.540 ***
alicE_befriend_and_alienate_1341@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xMzQxAG1hdHlncnlzYQ==</auth>



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



*** User 2022-01-27 15:35:35.541 ***
alicE_befriend_and_alienate_1341@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:35:35.541 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f1ee20f6a451812e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:35.541 ***
alicE_befriend_and_alienate_1341@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:35:35.541 ***
alicE_befriend_and_alienate_1341@localhost/res1 out
<iq type='set' id='f1285c74a31845b11da55fea89b77499'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:35:35.541 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq id='f1285c74a31845b11da55fea89b77499' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1341@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:35:35.541 ***
alicE_befriend_and_alienate_1341@localhost/res1 out
<iq type='set' id='94c7ae316ef3000c426b58e7d338062b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:35.541 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq type='result' id='94c7ae316ef3000c426b58e7d338062b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:35.542 ***
alicE_befriend_and_alienate_1341@localhost/res1 out
<presence/>



*** User 2022-01-27 15:35:35.542 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1341@localhost/res1' to='alice_befriend_and_alienate_1341@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:35:35.543 ***
bOb_befriend_and_alienate_1341@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:35:35.543 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71d810f216f113c2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:35.543 ***
bOb_befriend_and_alienate_1341@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>SCRAM-SHA-256</mechanism>
		<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:35:35.543 ***
bOb_befriend_and_alienate_1341@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTM0MQBtYWtyb2xpa2E=</auth>



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



*** User 2022-01-27 15:35:35.544 ***
bOb_befriend_and_alienate_1341@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:35:35.544 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='324474cbf544ac67' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:35:35.544 ***
bOb_befriend_and_alienate_1341@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:35:35.544 ***
bOb_befriend_and_alienate_1341@localhost/res1 out
<iq type='set' id='85a247e5b92adb8aecb45580fa9d4626'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:35:35.544 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq id='85a247e5b92adb8aecb45580fa9d4626' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1341@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:35:35.544 ***
bOb_befriend_and_alienate_1341@localhost/res1 out
<iq type='set' id='1585d2b8bb20569ae83cef354dc03615'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:35.545 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq type='result' id='1585d2b8bb20569ae83cef354dc03615'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:35:35.545 ***
bOb_befriend_and_alienate_1341@localhost/res1 out
<presence/>



*** User 2022-01-27 15:35:35.545 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1341@localhost/res1' to='bob_befriend_and_alienate_1341@localhost/res1' xml:lang='en'/>



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


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


*** User 2022-01-27 15:35:35.550 ***
REST request:
Code: 204
Req: {<0.14224.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"21f3a99321b00f73">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1341@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,767}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1341@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.552 ***
REST request:
Code: 204
Req: {<0.14243.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"880205fbf215123d">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1341@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,786}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1341@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.554 ***
REST request:
Code: 200
Req: {<0.14248.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9eb3b40172777d82">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1341@localhost\",\"ask\":\"none\"}]">>,
         213,383}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.555 ***
REST request:
Code: 200
Req: {<0.14254.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e1c2e2c01c24691">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1341@localhost\",\"ask\":\"none\"}]">>,
         211,375}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.557 ***
REST request:
Code: 204
Req: {<0.14260.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b739372d2f3f4eb7">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1160}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:35:35.560 ***
REST request:
Code: 204
Req: {<0.14272.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2d38698e4cbfcebf">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,919}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


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


*** User 2022-01-27 15:35:35.565 ***
REST request:
Code: 204
Req: {<0.14287.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0778b6039a2c85b9">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,884}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.566 ***
REST request:
Code: 200
Req: {<0.14292.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1702750f4b7c913c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1341@localhost\",\"ask\":\"out\"}]">>,
         212,400}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.568 ***
REST request:
Code: 204
Req: {<0.14294.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b08277dfc9da0539">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,918}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.569 ***
REST request:
Code: 200
Req: {<0.14296.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"20bfc225ec0e6330">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1341@localhost\",\"ask\":\"none\"}]">>,
         211,373}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.570 ***
REST request:
Code: 200
Req: {<0.14298.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1371e731e943f08b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1341@localhost\",\"ask\":\"none\"}]">>,
         213,378}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.572 ***
REST request:
Code: 204
Req: {<0.14300.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b42d902577b49ae7">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1300}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1341@localhost/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:35:35.574 ***
REST request:
Code: 200
Req: {<0.14304.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"17b2769b1b3f5529">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1341@localhost\",\"ask\":\"none\"}]">>,
         213,379}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:35:35.576 ***
REST request:
Code: 204
Req: {<0.14306.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"da63d79675f8255c">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,543}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1341@localhost/alice_befriend_and_alienate_1341@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='push6176e5f7b4468779' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='pushce1f8aa5e0c45888' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1341@localhost/res1' to='alice_befriend_and_alienate_1341@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='pusha43ea0f5ce11cbec' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<presence from='bob_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='pushc7b6aacb6f955cfd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<presence from='bob_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='push01293ab5e0b295c8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<iq from='alice_befriend_and_alienate_1341@localhost' to='alice_befriend_and_alienate_1341@localhost/res1' id='push59a0a18fa5dcbe66' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:35.577 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1341@localhost/res1' to='alice_befriend_and_alienate_1341@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='pushbfdfb567c3b73503' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alice_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='pushf7b620a47a633eca' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='push9a2be1051bdfde36' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1341@localhost/res1' to='bob_befriend_and_alienate_1341@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='pushc087fca58f8fd7d7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alice_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1341@localhost/res1' to='bob_befriend_and_alienate_1341@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='pushcaabbe7a3b02650d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alice_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' type='unsubscribe'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='push5829d29d91d2ba71' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<presence from='alice_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' type='unsubscribed'/>



*** User 2022-01-27 15:35:40.578 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
<iq from='bob_befriend_and_alienate_1341@localhost' to='bob_befriend_and_alienate_1341@localhost/res1' id='pushcc28aac1c7b72d6b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1341@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:35:45.579 ***
bOb_befriend_and_alienate_1341@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:45.579 ***
bOb_befriend_and_alienate_1341@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:35:45.579 ***
alicE_befriend_and_alienate_1341@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:35:45.580 ***
alicE_befriend_and_alienate_1341@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:35:45.587 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2357.html
*** CT 2022-01-27 15:35:45.593 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5250.html



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