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

=== Config value:

    [{watchdog,<0.22319.1>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,riak},
     {archive_wait,2500},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_SUITE.logs/run.2022-05-25_10.51.02/rest_suite.befriend_and_alienate.31492.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_SUITE.logs/run.2022-05-25_10.51.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => riak,iqdisc => one_queue,
              riak =>
                  #{bucket_type => <<"rosters">>,
                    version_bucket_type => <<"roster_versions">>},
              store_current_id => false,versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => riak,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,
              riak =>
                  #{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
              search => true}}},
     {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@901bd2a377ee.2022-05-25_10.38.09"

=== Started at 2022-05-25 10:51:11


*** CT 2022-05-25 10:51:11.402 *** View log from node mongooseim@localhost when started mongooseim@localhost_5229.html
*** CT 2022-05-25 10:51:11.402 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1997.html

*** User 2022-05-25 10:51:11.411 ***
alicE_befriend_and_alienate_1555@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-05-25 10:51:11.412 ***
alicE_befriend_and_alienate_1555@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f34f587224a15df' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:51:11.412 ***
alicE_befriend_and_alienate_1555@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-05-25 10:51:11.412 ***
alicE_befriend_and_alienate_1555@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNTU1AG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 10:51:11.413 ***
alicE_befriend_and_alienate_1555@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:51:11.414 ***
alicE_befriend_and_alienate_1555@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-05-25 10:51:11.414 ***
alicE_befriend_and_alienate_1555@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69e08d15c2b9da38' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:51:11.414 ***
alicE_befriend_and_alienate_1555@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-05-25 10:51:11.414 ***
alicE_befriend_and_alienate_1555@localhost/res1 out
<iq type='set' id='3de5999b8d376e09142fd6795d20f3a1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:51:11.414 ***
alicE_befriend_and_alienate_1555@localhost/res1 in
<iq id='3de5999b8d376e09142fd6795d20f3a1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1555@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:51:11.414 ***
alice_befriend_and_alienate_1555@localhost/res1 out
<iq type='set' id='a589fc68b7f3f77e3472b55eb6696551'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:51:11.415 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq type='result' id='a589fc68b7f3f77e3472b55eb6696551'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:51:11.415 ***
alice_befriend_and_alienate_1555@localhost/res1 out
<presence/>



*** User 2022-05-25 10:51:11.417 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost/res1' to='alice_befriend_and_alienate_1555@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:51:11.418 ***
bOb_befriend_and_alienate_1555@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-05-25 10:51:11.418 ***
bOb_befriend_and_alienate_1555@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9401b255803b7e20' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:51:11.418 ***
bOb_befriend_and_alienate_1555@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-05-25 10:51:11.418 ***
bOb_befriend_and_alienate_1555@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTU1NQBtYWtyb2xpa2E=</auth>



*** User 2022-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@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-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4171a999bda413bb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@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-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@localhost/res1 out
<iq type='set' id='94b4d21e760564215df096db16ca72ee'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 10:51:11.420 ***
bOb_befriend_and_alienate_1555@localhost/res1 in
<iq id='94b4d21e760564215df096db16ca72ee' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1555@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 10:51:11.420 ***
bob_befriend_and_alienate_1555@localhost/res1 out
<iq type='set' id='a1f7961d2bd7dd86ebdfbb9d1e98561a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:51:11.421 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq type='result' id='a1f7961d2bd7dd86ebdfbb9d1e98561a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 10:51:11.421 ***
bob_befriend_and_alienate_1555@localhost/res1 out
<presence/>



*** User 2022-05-25 10:51:11.477 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='bob_befriend_and_alienate_1555@localhost/res1' to='bob_befriend_and_alienate_1555@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:51:11.480 ***
REST request:
Code: 200
Req: {<0.22380.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"afc6ec13fc1ffe64">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1742}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.484 ***
REST request:
Code: 200
Req: {<0.22386.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8aa5786d4b22f5e6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2298}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.490 ***
REST request:
Code: 204
Req: {<0.22396.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"107481c88aadff90">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1555@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5225}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1555@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.496 ***
REST request:
Code: 204
Req: {<0.22406.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d4e2f5dda3a28af6">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1555@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4724}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1555@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.500 ***
REST request:
Code: 200
Req: {<0.22410.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ba942ec1edfda631">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         213,2881}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.577 ***
REST request:
Code: 200
Req: {<0.22416.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e5b8f9b89ae10217">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         211,2692}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.585 ***
REST request:
Code: 204
Req: {<0.22422.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5122e3fa88299fa7">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6878}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.588 ***
REST request:
Code: 200
Req: {<0.22434.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e2824fb9122bfba">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1555@localhost\",\"ask\":\"out\"}]">>,
         210,1291}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.599 ***
REST request:
Code: 204
Req: {<0.22436.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b79ddf385e5fd11e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8700}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.601 ***
REST request:
Code: 200
Req: {<0.22440.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b502833a1c09d7c2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         209,1613}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.676 ***
REST request:
Code: 200
Req: {<0.22444.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74852e909f52ccb4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         213,67703}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.683 ***
REST request:
Code: 204
Req: {<0.22448.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d40e81ed93309b3b">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5976}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.685 ***
REST request:
Code: 200
Req: {<0.22450.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9706938b898b566">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1555@localhost\",\"ask\":\"out\"}]">>,
         212,1590}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.693 ***
REST request:
Code: 204
Req: {<0.22452.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7e7eb5f090949117">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6341}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.695 ***
REST request:
Code: 200
Req: {<0.22458.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca55750b8394328c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         211,1236}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.697 ***
REST request:
Code: 200
Req: {<0.22460.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"de77753988d7f6f4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         213,1248}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.783 ***
REST request:
Code: 204
Req: {<0.22462.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"813af63db92795e3">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,84692}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.785 ***
REST request:
Code: 200
Req: {<0.22464.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d956e9e113d378a2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1472}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.788 ***
REST request:
Code: 200
Req: {<0.22466.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"805d68ce880cd777">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1555@localhost\",\"ask\":\"none\"}]">>,
         213,1778}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.792 ***
REST request:
Code: 204
Req: {<0.22468.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7be35829fcc4f081">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2918}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1555@localhost/alice_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.794 ***
REST request:
Code: 200
Req: {<0.22470.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4acfb1c27a4d4a25">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 10:51:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1385}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1555@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push0da8f86aae4b0a1e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push6b4beb4c697c0e04' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<presence from='bob_befriend_and_alienate_1555@localhost/res1' to='alice_befriend_and_alienate_1555@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push48ac426e14d97d87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<presence from='bob_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' type='subscribed'/>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push831848242912f7a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<presence from='bob_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' type='subscribe'/>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push4ed046d245be9092' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<iq from='alice_befriend_and_alienate_1555@localhost' to='alice_befriend_and_alienate_1555@localhost/res1' id='push7b903ae5044fb9a7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:11.795 ***
alice_befriend_and_alienate_1555@localhost/res1 in
<presence from='bob_befriend_and_alienate_1555@localhost/res1' to='alice_befriend_and_alienate_1555@localhost/res1' type='unavailable'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='push7734599e792003b9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' type='subscribe'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='push15cb3c29357a3276' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='push79c7fd36403579e5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost/res1' to='bob_befriend_and_alienate_1555@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='push4fa30538f5c4a0b6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' type='subscribed'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost/res1' to='bob_befriend_and_alienate_1555@localhost/res1' type='unavailable'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='pushd2a0151e50126c13' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' type='unsubscribe'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='pushcc187aa5e0364027' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<presence from='alice_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' type='unsubscribed'/>



*** User 2022-05-25 10:51:16.796 ***
bob_befriend_and_alienate_1555@localhost/res1 in
<iq from='bob_befriend_and_alienate_1555@localhost' to='bob_befriend_and_alienate_1555@localhost/res1' id='pushd54b42ca9bc33964' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1555@localhost'/>
	</query>
</iq>



*** User 2022-05-25 10:51:21.797 ***
bob_befriend_and_alienate_1555@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:51:21.797 ***
bob_befriend_and_alienate_1555@localhost/res1 in
</stream:stream>

*** User 2022-05-25 10:51:21.797 ***
alice_befriend_and_alienate_1555@localhost/res1 out
</stream:stream>

*** User 2022-05-25 10:51:21.798 ***
alice_befriend_and_alienate_1555@localhost/res1 in
</stream:stream>
*** CT 2022-05-25 10:51:21.799 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1997.html
*** CT 2022-05-25 10:51:21.800 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5237.html



=== Ended at 2022-05-25 10:51:21
=== successfully completed test case
=== === Returned value: ok