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

=== Config value:

    [{watchdog,<0.27618.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.befriend_and_alienate.151938.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:25:02


*** CT 2022-03-04 11:25:02.088 *** View log from node mongooseim@localhost when started mongooseim@localhost_2509.html
*** CT 2022-03-04 11:25:02.088 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_646.html

*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_1794@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-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17dc84a73b90c06b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_1794@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-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzk0AG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_1794@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-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1a1d5f42d98261c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@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-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 out
<iq type='set' id='aa01e7c5aa6a41281fe262e8cbd2607d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq id='aa01e7c5aa6a41281fe262e8cbd2607d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1794@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 out
<iq type='set' id='65487d13c6b8311ecf98cd70aad81aae'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq type='result' id='65487d13c6b8311ecf98cd70aad81aae'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.101 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1794@domain.example.com/res1' to='alice_befriend_and_alienate_1794@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_1794@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-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0784baf1877a85e0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_1794@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-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTc5NABtYWtyb2xpa2E=</auth>



*** User 2022-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_1794@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-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e991648c1c804358' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@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-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 out
<iq type='set' id='82ca9f3639db2477299535b14b86ce11'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq id='82ca9f3639db2477299535b14b86ce11' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1794@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 out
<iq type='set' id='e7cdc8303070b85296abad98c4cb5a65'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq type='result' id='e7cdc8303070b85296abad98c4cb5a65'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.104 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.106 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1794@domain.example.com/res1' to='bob_befriend_and_alienate_1794@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.108 ***
REST request:
Code: 200
Req: {<0.27679.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3c51463fbd9b786e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1147}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.111 ***
REST request:
Code: 200
Req: {<0.27685.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"31312306cccc8429">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1677}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.114 ***
REST request:
Code: 204
Req: {<0.27693.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5e377f2b14a2b391">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2077}
Params: #{body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.119 ***
REST request:
Code: 204
Req: {<0.27704.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f71d62f92cbbcb9f">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3641}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.121 ***
REST request:
Code: 200
Req: {<0.27709.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"623fe8c1e21b9e7f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1331}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.124 ***
REST request:
Code: 200
Req: {<0.27715.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc1791885c5d7fa4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         220,2609}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.131 ***
REST request:
Code: 204
Req: {<0.27721.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f071f34267c7c714">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5586}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.134 ***
REST request:
Code: 200
Req: {<0.27731.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a2e33276edadb8de">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"out\"}]">>,
         219,2663}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.140 ***
REST request:
Code: 204
Req: {<0.27733.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e8ef70c52fe786a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5325}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.144 ***
REST request:
Code: 200
Req: {<0.27739.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"45d1e91366fea88f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         218,2413}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.146 ***
REST request:
Code: 200
Req: {<0.27743.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6a76d3abb6b1706a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         222,2007}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.154 ***
REST request:
Code: 204
Req: {<0.27745.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10c72404d1168eeb">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6438}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.156 ***
REST request:
Code: 200
Req: {<0.27749.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"34b91799bd0d6d3f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"out\"}]">>,
         221,1279}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.161 ***
REST request:
Code: 204
Req: {<0.27753.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f5d4139e1465923">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4251}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.162 ***
REST request:
Code: 200
Req: {<0.27755.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a66787aacc72b06f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         220,948}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.164 ***
REST request:
Code: 200
Req: {<0.27757.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df8b16d992a2a1d1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1049}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.172 ***
REST request:
Code: 204
Req: {<0.27759.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fb236705c50fbe3d">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7429}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.174 ***
REST request:
Code: 200
Req: {<0.27761.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8e6a80db3e47a4e9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1103}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.176 ***
REST request:
Code: 200
Req: {<0.27763.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"191a6ae86719a9aa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1794@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1033}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.179 ***
REST request:
Code: 204
Req: {<0.27765.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef0ed45069d55449">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2132}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com/alice_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.181 ***
REST request:
Code: 200
Req: {<0.27767.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1710d6cb774314f1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,946}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1794@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='push96877004af64cc07' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='pushdb702e70d2926e48' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1794@domain.example.com/res1' to='alice_befriend_and_alienate_1794@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='push808141d69eb0a48c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='push67b942d7496845e7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='pushc256d5da8692b02a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1794@domain.example.com' to='alice_befriend_and_alienate_1794@domain.example.com/res1' id='pushc18e6c45ddb5c2cc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.181 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1794@domain.example.com/res1' to='alice_befriend_and_alienate_1794@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-04 11:25:07.182 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='pushd1b8fc76ac1908cf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.182 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-04 11:25:07.182 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='push2683678babd0542e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='pushc1717ee32a03b8ce' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1794@domain.example.com/res1' to='bob_befriend_and_alienate_1794@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='pusha06b662734f16de3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1794@domain.example.com/res1' to='bob_befriend_and_alienate_1794@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='pushda188f2b5b94fe27' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='push081e90e0f3f2c98a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-03-04 11:25:07.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1794@domain.example.com' to='bob_befriend_and_alienate_1794@domain.example.com/res1' id='pushc6a2a5d462c81197' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1794@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:12.183 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:12.184 ***
bOb_befriend_and_alienate_1794@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:25:12.184 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:12.184 ***
alicE_befriend_and_alienate_1794@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:25:12.186 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_646.html
*** CT 2022-03-04 11:25:12.187 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2517.html



=== Ended at 2022-03-04 11:25:12
=== successfully completed test case
=== === Returned value: ok