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

=== Config value:

    [{watchdog,<0.8863.2>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/rest_suite.befriend_and_alienate.148226.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:36:48


*** CT 2022-01-27 15:36:48.917 *** View log from node mongooseim@localhost when started mongooseim@localhost_5797.html
*** CT 2022-01-27 15:36:48.919 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

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

*** User 2022-01-27 15:36:48.929 ***
alicE_befriend_and_alienate_2150@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:36:48.929 ***
alicE_befriend_and_alienate_2150@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yMTUwAG1hdHlncnlzYQ==</auth>



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



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

*** User 2022-01-27 15:36:48.931 ***
alicE_befriend_and_alienate_2150@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:36:48.931 ***
alicE_befriend_and_alienate_2150@localhost/res1 out
<iq type='set' id='1f29069bb61e63984eeeda25b091592d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.931 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq id='1f29069bb61e63984eeeda25b091592d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_2150@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.931 ***
alicE_befriend_and_alienate_2150@localhost/res1 out
<iq type='set' id='38a0813c765c59f482ab018dd51b441b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.932 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq type='result' id='38a0813c765c59f482ab018dd51b441b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.932 ***
alicE_befriend_and_alienate_2150@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.935 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2150@localhost/res1' to='alice_befriend_and_alienate_2150@localhost/res1' xml:lang='en'/>



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

*** User 2022-01-27 15:36:48.936 ***
bOb_befriend_and_alienate_2150@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:36:48.936 ***
bOb_befriend_and_alienate_2150@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjE1MABtYWtyb2xpa2E=</auth>



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



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

*** User 2022-01-27 15:36:48.938 ***
bOb_befriend_and_alienate_2150@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:36:48.938 ***
bOb_befriend_and_alienate_2150@localhost/res1 out
<iq type='set' id='636801da65aa68f0e338f1a79ff9a69f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.938 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq id='636801da65aa68f0e338f1a79ff9a69f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_2150@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_2150@localhost/res1 out
<iq type='set' id='aba041788dce7a61d4a5ef55f02c3ea4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq type='result' id='aba041788dce7a61d4a5ef55f02c3ea4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_2150@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.941 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2150@localhost/res1' to='bob_befriend_and_alienate_2150@localhost/res1' xml:lang='en'/>



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


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


*** User 2022-01-27 15:36:48.957 ***
REST request:
Code: 204
Req: {<0.8942.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99f8b31fd56e0c24">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2150@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6270}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_2150@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.961 ***
REST request:
Code: 204
Req: {<0.8952.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b5da3865ebbc32aa">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2150@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3158}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2150@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.968 ***
REST request:
Code: 200
Req: {<0.8956.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d74aeb4d39b78e3a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         213,5465}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.976 ***
REST request:
Code: 200
Req: {<0.8966.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d44a8ec5fc90f297">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         211,7019}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.988 ***
REST request:
Code: 204
Req: {<0.8976.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d11aea6a267b6914">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10579}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:36:49.003 ***
REST request:
Code: 204
Req: {<0.8982.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"614171444dd50c2f">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7239}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:36:49.013 ***
REST request:
Code: 200
Req: {<0.8990.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"63fc3e2283f658ba">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         213,3448}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.053 ***
REST request:
Code: 204
Req: {<0.8992.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8b6896d491ddfb89">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,38779}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.057 ***
REST request:
Code: 200
Req: {<0.8996.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05630a4c2287a4d6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2150@localhost\",\"ask\":\"out\"}]">>,
         212,2573}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.066 ***
REST request:
Code: 204
Req: {<0.9000.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a57fbdea04016753">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7642}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.071 ***
REST request:
Code: 200
Req: {<0.9002.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"970c482053403969">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         211,2145}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.074 ***
REST request:
Code: 200
Req: {<0.9004.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"56e609536ae78cb0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         213,1782}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.093 ***
REST request:
Code: 204
Req: {<0.9006.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a53365d2bb7c91af">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,18088}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2150@localhost/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:36:49.101 ***
REST request:
Code: 200
Req: {<0.9010.2>,<<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ae5775e7d8bc8dcb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2150@localhost\",\"ask\":\"none\"}]">>,
         213,2252}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.106 ***
REST request:
Code: 204
Req: {<0.9012.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe17b6fbf842ceba">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3842}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2150@localhost/alice_befriend_and_alienate_2150@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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


*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='push4f03b4c19a215e5e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='push204709943900fd63' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2150@localhost/res1' to='alice_befriend_and_alienate_2150@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='pushb6d1404d09766734' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<presence from='bob_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='push6f6196b33b2aaa8c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<presence from='bob_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='push320c17565013b199' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<iq from='alice_befriend_and_alienate_2150@localhost' to='alice_befriend_and_alienate_2150@localhost/res1' id='push2f9b72e98cdd49f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.109 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2150@localhost/res1' to='alice_befriend_and_alienate_2150@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='pushe3a24004e881a561' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alice_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='push1305416445b2523a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='pusha629ab07373000d1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2150@localhost/res1' to='bob_befriend_and_alienate_2150@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='pushc0c863beda77d9f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.110 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alice_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2150@localhost/res1' to='bob_befriend_and_alienate_2150@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='push8b41df1db4eac57b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alice_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' type='unsubscribe'/>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='push4999b39600c0c4d7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<presence from='alice_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' type='unsubscribed'/>



*** User 2022-01-27 15:36:54.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
<iq from='bob_befriend_and_alienate_2150@localhost' to='bob_befriend_and_alienate_2150@localhost/res1' id='pushb53995b034f135d6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2150@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:59.111 ***
bOb_befriend_and_alienate_2150@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:59.112 ***
bOb_befriend_and_alienate_2150@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:36:59.112 ***
alicE_befriend_and_alienate_2150@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:59.112 ***
alicE_befriend_and_alienate_2150@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:36:59.114 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:36:59.115 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5805.html



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