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

=== Config value:

    [{watchdog,<0.21376.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@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.rest_SUITE.logs/run.2022-05-18_10.12.44/rest_suite.befriend_and_alienate.59779.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@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.rest_SUITE.logs/run.2022-05-18_10.12.44/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@8dd706b7fd53.2022-05-18_09.59.49"

=== Started at 2022-05-18 10:12:52


*** CT 2022-05-18 10:12:52.977 *** View log from node mongooseim@localhost when started mongooseim@localhost_5232.html
*** CT 2022-05-18 10:12:52.978 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1989.html

*** User 2022-05-18 10:12:52.987 ***
alicE_befriend_and_alienate_1532@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-18 10:12:52.987 ***
alicE_befriend_and_alienate_1532@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='491a91f969dc1bc4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:12:52.987 ***
alicE_befriend_and_alienate_1532@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-18 10:12:52.988 ***
alicE_befriend_and_alienate_1532@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNTMyAG1hdHlncnlzYQ==</auth>



*** User 2022-05-18 10:12:52.989 ***
alicE_befriend_and_alienate_1532@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:12:52.989 ***
alicE_befriend_and_alienate_1532@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-18 10:12:52.989 ***
alicE_befriend_and_alienate_1532@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5fb6571e0766a18' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:12:52.989 ***
alicE_befriend_and_alienate_1532@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-18 10:12:52.990 ***
alicE_befriend_and_alienate_1532@localhost/res1 out
<iq type='set' id='d1efe90fc1fae593c7145a48599a48db'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:12:52.990 ***
alicE_befriend_and_alienate_1532@localhost/res1 in
<iq id='d1efe90fc1fae593c7145a48599a48db' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1532@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:12:52.990 ***
alice_befriend_and_alienate_1532@localhost/res1 out
<iq type='set' id='35456589f57607247874d76fe3332dc1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:12:52.990 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq type='result' id='35456589f57607247874d76fe3332dc1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:12:52.990 ***
alice_befriend_and_alienate_1532@localhost/res1 out
<presence/>



*** User 2022-05-18 10:12:52.993 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost/res1' to='alice_befriend_and_alienate_1532@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:12:52.993 ***
bOb_befriend_and_alienate_1532@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-18 10:12:52.994 ***
bOb_befriend_and_alienate_1532@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='41825018855b11e5' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:12:52.994 ***
bOb_befriend_and_alienate_1532@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-18 10:12:52.994 ***
bOb_befriend_and_alienate_1532@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTUzMgBtYWtyb2xpa2E=</auth>



*** User 2022-05-18 10:12:52.995 ***
bOb_befriend_and_alienate_1532@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:12:52.995 ***
bOb_befriend_and_alienate_1532@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-18 10:12:52.995 ***
bOb_befriend_and_alienate_1532@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6375aa22a14c436d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:12:52.995 ***
bOb_befriend_and_alienate_1532@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-18 10:12:52.996 ***
bOb_befriend_and_alienate_1532@localhost/res1 out
<iq type='set' id='8b9078d0543923c4d1e0eaf1e26b4c27'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:12:52.996 ***
bOb_befriend_and_alienate_1532@localhost/res1 in
<iq id='8b9078d0543923c4d1e0eaf1e26b4c27' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1532@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:12:52.996 ***
bob_befriend_and_alienate_1532@localhost/res1 out
<iq type='set' id='e4b2df78a81a660ad02218e114152970'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:12:52.996 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq type='result' id='e4b2df78a81a660ad02218e114152970'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:12:52.996 ***
bob_befriend_and_alienate_1532@localhost/res1 out
<presence/>



*** User 2022-05-18 10:12:52.998 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='bob_befriend_and_alienate_1532@localhost/res1' to='bob_befriend_and_alienate_1532@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:12:53.051 ***
REST request:
Code: 200
Req: {<0.21437.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2604a8f6deabb555">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,47095}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.053 ***
REST request:
Code: 200
Req: {<0.21443.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"03839e34a925cc82">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1171}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.058 ***
REST request:
Code: 204
Req: {<0.21449.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3c6d625af8ae20af">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1532@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4287}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1532@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.063 ***
REST request:
Code: 204
Req: {<0.21465.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"26353fe45dbcd014">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1532@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3701}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1532@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.066 ***
REST request:
Code: 200
Req: {<0.21469.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e388bc67b0ab15e6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         213,1492}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.068 ***
REST request:
Code: 200
Req: {<0.21473.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18433421e4920d0a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         211,1306}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.153 ***
REST request:
Code: 204
Req: {<0.21479.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93ca9bf0032700c8">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,83774}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.155 ***
REST request:
Code: 200
Req: {<0.21490.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ad49066bf542e4d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1532@localhost\",\"ask\":\"out\"}]">>,
         210,1400}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.162 ***
REST request:
Code: 204
Req: {<0.21495.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5bf1e8565fa68070">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5745}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.164 ***
REST request:
Code: 200
Req: {<0.21497.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9d263b044241edb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         209,1269}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.167 ***
REST request:
Code: 200
Req: {<0.21503.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dda5827cecdf1b70">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         213,1379}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.251 ***
REST request:
Code: 204
Req: {<0.21507.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aabb2304f7ac3194">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,82836}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.254 ***
REST request:
Code: 200
Req: {<0.21509.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"102d769e48934355">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1532@localhost\",\"ask\":\"out\"}]">>,
         212,1761}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.260 ***
REST request:
Code: 204
Req: {<0.21511.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ad782454e8fbf4da">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5471}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.262 ***
REST request:
Code: 200
Req: {<0.21517.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9e20f5d508a64ae6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         211,1299}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.264 ***
REST request:
Code: 200
Req: {<0.21519.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62718ed468cc305b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         213,1182}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.274 ***
REST request:
Code: 204
Req: {<0.21521.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"53ab244076b5f886">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,9583}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.276 ***
REST request:
Code: 200
Req: {<0.21523.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9c7e8e42730a0cd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1170}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.278 ***
REST request:
Code: 200
Req: {<0.21525.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1f909d839d4334d1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1532@localhost\",\"ask\":\"none\"}]">>,
         213,1146}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.281 ***
REST request:
Code: 204
Req: {<0.21527.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"28e8cb5abb6e8260">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2366}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1532@localhost/alice_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.283 ***
REST request:
Code: 200
Req: {<0.21529.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c906165a3e60f9e5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 18 May 2022 10:12:53 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1100}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1532@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-18 10:12:53.283 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push7a3126de0cec90e1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.283 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push89c4e4ec1e73f744' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.283 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<presence from='bob_befriend_and_alienate_1532@localhost/res1' to='alice_befriend_and_alienate_1532@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push857563c5de28836c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<presence from='bob_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' type='subscribed'/>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push16b649781a048c93' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<presence from='bob_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' type='subscribe'/>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push7b733ee9f1e324e6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<iq from='alice_befriend_and_alienate_1532@localhost' to='alice_befriend_and_alienate_1532@localhost/res1' id='push39982b8353501870' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:53.284 ***
alice_befriend_and_alienate_1532@localhost/res1 in
<presence from='bob_befriend_and_alienate_1532@localhost/res1' to='alice_befriend_and_alienate_1532@localhost/res1' type='unavailable'/>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='push9d38eb858b9b83b3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' type='subscribe'/>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='pushc3dedde88a10908a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='push87d9f82c5e747db8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost/res1' to='bob_befriend_and_alienate_1532@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='push3f49ac83466ab288' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.284 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' type='subscribed'/>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost/res1' to='bob_befriend_and_alienate_1532@localhost/res1' type='unavailable'/>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='push511bda28854decac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' type='unsubscribe'/>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='push9f5a17fa06e7ac47' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<presence from='alice_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' type='unsubscribed'/>



*** User 2022-05-18 10:12:58.285 ***
bob_befriend_and_alienate_1532@localhost/res1 in
<iq from='bob_befriend_and_alienate_1532@localhost' to='bob_befriend_and_alienate_1532@localhost/res1' id='pushb51426961b85792e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1532@localhost'/>
	</query>
</iq>



*** User 2022-05-18 10:13:03.285 ***
bob_befriend_and_alienate_1532@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:13:03.286 ***
bob_befriend_and_alienate_1532@localhost/res1 in
</stream:stream>

*** User 2022-05-18 10:13:03.286 ***
alice_befriend_and_alienate_1532@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:13:03.286 ***
alice_befriend_and_alienate_1532@localhost/res1 in
</stream:stream>
*** CT 2022-05-18 10:13:03.288 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1989.html
*** CT 2022-05-18 10:13:03.289 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5240.html



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