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

=== Config value:

    [{watchdog,<0.25384.1>},
     {{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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.befriend_and_alienate.108675.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:36:32


*** CT 2022-01-27 12:36:32.385 *** View log from node mongooseim@localhost when started mongooseim@localhost_2461.html
*** CT 2022-01-27 12:36:32.386 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_655.html

*** User 2022-01-27 12:36:32.439 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:36:32.439 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='db96e1104becb7de' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.439 ***
alicE_befriend_and_alienate_1736@domain.example.com/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 12:36:32.440 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzM2AG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 12:36:32.448 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.448 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:36:32.449 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b6c913bd7600d8f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.449 ***
alicE_befriend_and_alienate_1736@domain.example.com/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 12:36:32.449 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<iq type='set' id='680486d1a0a9b4b9d8d127841a82a46f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.450 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq id='680486d1a0a9b4b9d8d127841a82a46f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1736@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.450 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<iq type='set' id='a033b4d4797689e4b376e9ca6ae648b1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.450 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq type='result' id='a033b4d4797689e4b376e9ca6ae648b1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.450 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.454 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1736@domain.example.com/res1' to='alice_befriend_and_alienate_1736@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.455 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:36:32.455 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2147cc10885f9f64' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.455 ***
bOb_befriend_and_alienate_1736@domain.example.com/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 12:36:32.456 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTczNgBtYWtyb2xpa2E=</auth>



*** User 2022-01-27 12:36:32.458 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.458 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 12:36:32.458 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c38606c2faceceb8' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.458 ***
bOb_befriend_and_alienate_1736@domain.example.com/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 12:36:32.458 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<iq type='set' id='8abae663e6e4062363651490fa897760'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq id='8abae663e6e4062363651490fa897760' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1736@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<iq type='set' id='950093742b75f96a6253d9ac0c895066'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq type='result' id='950093742b75f96a6253d9ac0c895066'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.462 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1736@domain.example.com/res1' to='bob_befriend_and_alienate_1736@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.503 ***
REST request:
Code: 200
Req: {<0.25445.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aaa77f25be9bbf26">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,38665}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.508 ***
REST request:
Code: 200
Req: {<0.25459.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec78baae48e010bd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3042}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.520 ***
REST request:
Code: 204
Req: {<0.25461.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3cfcdb78a4b6b81e">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10215}
Params: #{body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.530 ***
REST request:
Code: 204
Req: {<0.25473.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"999bc6b0c70e7540">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8969}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.539 ***
REST request:
Code: 200
Req: {<0.25481.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9d9421c4b152975">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         222,7398}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.551 ***
REST request:
Code: 200
Req: {<0.25489.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0c0df5b8ae2b45fd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         220,11207}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.579 ***
REST request:
Code: 204
Req: {<0.25497.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe94816603af8505">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,26210}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.595 ***
REST request:
Code: 200
Req: {<0.25499.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e623fc3aa604f9b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"out\"}]">>,
         219,13773}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.609 ***
REST request:
Code: 204
Req: {<0.25501.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c57c7e70d862cbf2">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,11006}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.619 ***
REST request:
Code: 200
Req: {<0.25507.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"585d9559c9dd7c17">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         218,9035}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.626 ***
REST request:
Code: 200
Req: {<0.25511.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"84fc7214e60a3aa4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         222,5346}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.659 ***
REST request:
Code: 204
Req: {<0.25513.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"721ac4a210ab3e96">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,31470}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.664 ***
REST request:
Code: 200
Req: {<0.25517.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e4e4646ef8026104">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"out\"}]">>,
         221,3506}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.678 ***
REST request:
Code: 204
Req: {<0.25521.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"92d27bfa0e9a0c9e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,11740}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.682 ***
REST request:
Code: 200
Req: {<0.25523.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f6780a1b5f8a87a8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         220,2646}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.687 ***
REST request:
Code: 200
Req: {<0.25525.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"20a5c7ffb4022073">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         222,3407}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.718 ***
REST request:
Code: 204
Req: {<0.25527.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"12dbadec0be57917">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,29355}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.723 ***
REST request:
Code: 200
Req: {<0.25529.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0c2d7a192813115f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2842}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.727 ***
REST request:
Code: 200
Req: {<0.25531.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36c9faff861fe92e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1736@domain.example.com\",\"ask\":\"none\"}]">>,
         222,2606}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.736 ***
REST request:
Code: 204
Req: {<0.25533.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9ddb615ca1479893">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7092}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com/alice_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.740 ***
REST request:
Code: 200
Req: {<0.25535.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d54fcc0f588f14a5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2643}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1736@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.740 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push91966529375cfae6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.740 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push71dc56e52fea1d67' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.740 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1736@domain.example.com/res1' to='alice_befriend_and_alienate_1736@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.740 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push55ca30344b171a20' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.740 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' type='subscribed'/>



*** User 2022-01-27 12:36:32.741 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push5d3f078483b3d892' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.741 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' type='subscribe'/>



*** User 2022-01-27 12:36:32.741 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push53a26b21123e1a98' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.741 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1736@domain.example.com' to='alice_befriend_and_alienate_1736@domain.example.com/res1' id='push99a79d476839453f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.741 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1736@domain.example.com/res1' to='alice_befriend_and_alienate_1736@domain.example.com/res1' type='unavailable'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='push04b27a68757b98f5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' type='subscribe'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='push9d819715ba5dddf6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='push7401bb998af2de7f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1736@domain.example.com/res1' to='bob_befriend_and_alienate_1736@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='pushcad58e90e2414c80' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' type='subscribed'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1736@domain.example.com/res1' to='bob_befriend_and_alienate_1736@domain.example.com/res1' type='unavailable'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='push5e97b855a45a6638' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='pushfbe562370576b146' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-01-27 12:36:37.742 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1736@domain.example.com' to='bob_befriend_and_alienate_1736@domain.example.com/res1' id='push6e32a9ecb87fa52a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1736@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:42.743 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:42.743 ***
bOb_befriend_and_alienate_1736@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:36:42.745 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:42.745 ***
alicE_befriend_and_alienate_1736@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:36:42.748 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_655.html
*** CT 2022-01-27 12:36:42.749 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2469.html



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