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

=== Config value:

    [{watchdog,<0.14356.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/rest_suite.befriend_and_alienate.69762.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/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@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:38:08


*** CT 2022-03-03 10:38:08.903 *** View log from node mongooseim@localhost when started mongooseim@localhost_4993.html
*** CT 2022-03-03 10:38:08.903 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:38:08.910 ***
alicE_befriend_and_alienate_1288@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-03-03 10:38:08.911 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8bdfa2d5815dcc6e' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:08.911 ***
alicE_befriend_and_alienate_1288@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-03-03 10:38:08.911 ***
alicE_befriend_and_alienate_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xMjg4AG1hdHlncnlzYQ==</auth>



*** User 2022-03-03 10:38:08.912 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:08.912 ***
alicE_befriend_and_alienate_1288@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-03-03 10:38:08.912 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7dc8cf051c30e1c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:08.912 ***
alicE_befriend_and_alienate_1288@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-03-03 10:38:08.912 ***
alicE_befriend_and_alienate_1288@localhost/res1 out
<iq type='set' id='a4f04fc8498e6f79ff6e86f9b26cd756'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:08.913 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq id='a4f04fc8498e6f79ff6e86f9b26cd756' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:08.913 ***
alicE_befriend_and_alienate_1288@localhost/res1 out
<iq type='set' id='4785e5e285070c3db177dfdc1219638f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:08.913 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq type='result' id='4785e5e285070c3db177dfdc1219638f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:08.913 ***
alicE_befriend_and_alienate_1288@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:08.913 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1288@localhost/res1' to='alice_befriend_and_alienate_1288@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:08.914 ***
bOb_befriend_and_alienate_1288@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-03-03 10:38:08.915 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d9edef3ed2ae548' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:08.915 ***
bOb_befriend_and_alienate_1288@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-03-03 10:38:08.915 ***
bOb_befriend_and_alienate_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTI4OABtYWtyb2xpa2E=</auth>



*** User 2022-03-03 10:38:08.916 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:08.916 ***
bOb_befriend_and_alienate_1288@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-03-03 10:38:08.916 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50d3476771f0d56a' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:08.916 ***
bOb_befriend_and_alienate_1288@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-03-03 10:38:08.916 ***
bOb_befriend_and_alienate_1288@localhost/res1 out
<iq type='set' id='1beea644cafa164d620617da1909689c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:08.917 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq id='1beea644cafa164d620617da1909689c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:08.917 ***
bOb_befriend_and_alienate_1288@localhost/res1 out
<iq type='set' id='021b5bb5549c686fd6e2f1b32cd96d0c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:08.917 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq type='result' id='021b5bb5549c686fd6e2f1b32cd96d0c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:08.917 ***
bOb_befriend_and_alienate_1288@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:08.918 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1288@localhost/res1' to='bob_befriend_and_alienate_1288@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:08.919 ***
REST request:
Code: 200
Req: {<0.14411.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8cda6b742bf0101d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,683}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.921 ***
REST request:
Code: 200
Req: {<0.14419.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f6a87b4e07fbf35">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,690}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.923 ***
REST request:
Code: 204
Req: {<0.14428.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"056bc9d9a4096f4e">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1288@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,693}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1288@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.925 ***
REST request:
Code: 204
Req: {<0.14435.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1ed485cb5de2042e">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1288@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,638}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1288@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.926 ***
REST request:
Code: 200
Req: {<0.14439.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c085037c26b07300">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         213,551}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.928 ***
REST request:
Code: 200
Req: {<0.14443.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9477b6565bc78554">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         211,613}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.931 ***
REST request:
Code: 204
Req: {<0.14447.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"526e1ae792e4bfdb">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1602}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.932 ***
REST request:
Code: 200
Req: {<0.14457.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fbcd539656371a05">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1288@localhost\",\"ask\":\"out\"}]">>,
         210,562}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.934 ***
REST request:
Code: 204
Req: {<0.14463.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"804636fb53145b0c">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1602}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.936 ***
REST request:
Code: 200
Req: {<0.14467.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"73ebb9e6afcabd94">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         209,369}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.937 ***
REST request:
Code: 200
Req: {<0.14472.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"12868a8bcd1eb2cb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         213,473}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.940 ***
REST request:
Code: 204
Req: {<0.14480.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bde1f55f49b1f1db">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2313}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.942 ***
REST request:
Code: 200
Req: {<0.14483.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d964bd01b649b385">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1288@localhost\",\"ask\":\"out\"}]">>,
         212,543}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.945 ***
REST request:
Code: 204
Req: {<0.14485.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7f8ddeb4c4bfe18">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1891}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.946 ***
REST request:
Code: 200
Req: {<0.14487.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9d15dd1f3f299b3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         211,520}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.948 ***
REST request:
Code: 200
Req: {<0.14489.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cfb742f910e53b4a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         213,480}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.951 ***
REST request:
Code: 204
Req: {<0.14491.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04b52593e0a7662b">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3067}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.953 ***
REST request:
Code: 200
Req: {<0.14493.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"70f321ab82ffb08b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,471}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.954 ***
REST request:
Code: 200
Req: {<0.14495.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f497ff820b3197db">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1288@localhost\",\"ask\":\"none\"}]">>,
         213,466}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.956 ***
REST request:
Code: 204
Req: {<0.14497.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3807d3c2af4355aa">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,678}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1288@localhost/alice_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.957 ***
REST request:
Code: 200
Req: {<0.14499.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fcde9048863dd797">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,502}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1288@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push65560906861507dc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push260530b9a7d9d59d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1288@localhost/res1' to='alice_befriend_and_alienate_1288@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push2ec55d7681b35b01' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<presence from='bob_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' type='subscribed'/>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push7ed67a81a05ed99c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<presence from='bob_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' type='subscribe'/>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push6102c76b9b9ce8c8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<iq from='alice_befriend_and_alienate_1288@localhost' to='alice_befriend_and_alienate_1288@localhost/res1' id='push95544270c34da29b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:08.957 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1288@localhost/res1' to='alice_befriend_and_alienate_1288@localhost/res1' type='unavailable'/>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push26bd97ddee6dd7c4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alice_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' type='subscribe'/>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push483ccef43770061f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='pushf725041b1b1b07a7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1288@localhost/res1' to='bob_befriend_and_alienate_1288@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push95dde2d1ad3b9e71' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alice_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' type='subscribed'/>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1288@localhost/res1' to='bob_befriend_and_alienate_1288@localhost/res1' type='unavailable'/>



*** User 2022-03-03 10:38:13.958 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push9bc89dc4324ed192' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.959 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alice_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' type='unsubscribe'/>



*** User 2022-03-03 10:38:13.959 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push6e585501cfc75ccb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:13.959 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<presence from='alice_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' type='unsubscribed'/>



*** User 2022-03-03 10:38:13.959 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
<iq from='bob_befriend_and_alienate_1288@localhost' to='bob_befriend_and_alienate_1288@localhost/res1' id='push77e31793c0dcc270' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1288@localhost'/>
	</query>
</iq>



*** User 2022-03-03 10:38:18.959 ***
bOb_befriend_and_alienate_1288@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:18.960 ***
bOb_befriend_and_alienate_1288@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:18.960 ***
alicE_befriend_and_alienate_1288@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:18.960 ***
alicE_befriend_and_alienate_1288@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:38:18.962 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:38:18.962 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5013.html



=== Ended at 2022-03-03 10:38:18
=== successfully completed test case
=== === Returned value: ok