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

=== Config value:

    [{watchdog,<0.403.2>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_SUITE.logs/run.2022-05-11_09.04.30/rest_suite.befriend_and_alienate.149890.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_SUITE.logs/run.2022-05-11_09.04.30/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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 => rdbms,iqdisc => one_queue,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 => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {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@df370d24fb6d.2022-05-11_08.56.40"

=== Started at 2022-05-11 09:04:31


*** CT 2022-05-11 09:04:31.225 *** View log from node mongooseim@localhost when started mongooseim@localhost_2519.html
*** CT 2022-05-11 09:04:31.225 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_524.html

*** User 2022-05-11 09:04:31.236 ***
alicE_befriend_and_alienate_1989@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-05-11 09:04:31.236 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0b56cb26158d725b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:31.237 ***
alicE_befriend_and_alienate_1989@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-05-11 09:04:31.237 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xOTg5AG1hdHlncnlzYQ==</auth>



*** User 2022-05-11 09:04:31.238 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:31.238 ***
alicE_befriend_and_alienate_1989@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-05-11 09:04:31.238 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='93d3701fc9e734db' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:31.238 ***
alicE_befriend_and_alienate_1989@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-05-11 09:04:31.238 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 out
<iq type='set' id='4e4935d52cc7887e43a2cb221d3cdbf5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:31.239 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq id='4e4935d52cc7887e43a2cb221d3cdbf5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1989@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:31.239 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 out
<iq type='set' id='9535a4cf7d272f93800bf6e8492bd2ef'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:31.239 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq type='result' id='9535a4cf7d272f93800bf6e8492bd2ef'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:31.240 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:31.241 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1989@domain.example.com/res1' to='alice_befriend_and_alienate_1989@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:31.242 ***
bOb_befriend_and_alienate_1989@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-05-11 09:04:31.242 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9ffbdbd1258ca65' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:31.242 ***
bOb_befriend_and_alienate_1989@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-05-11 09:04:31.242 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTk4OQBtYWtyb2xpa2E=</auth>



*** User 2022-05-11 09:04:31.243 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:31.243 ***
bOb_befriend_and_alienate_1989@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-05-11 09:04:31.244 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='406f87364f45232d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:31.244 ***
bOb_befriend_and_alienate_1989@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-05-11 09:04:31.244 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 out
<iq type='set' id='17af22063f838f85b0fdf34097352d65'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:31.244 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq id='17af22063f838f85b0fdf34097352d65' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1989@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:31.244 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 out
<iq type='set' id='68c23e979a3bfb2f5287e7634a87a941'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:31.245 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq type='result' id='68c23e979a3bfb2f5287e7634a87a941'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:31.245 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:31.246 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1989@domain.example.com/res1' to='bob_befriend_and_alienate_1989@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:31.250 ***
REST request:
Code: 200
Req: {<0.466.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bfc1bf1eb35c638d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1630}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.252 ***
REST request:
Code: 200
Req: {<0.476.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62bfb7413611c89d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1404}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.256 ***
REST request:
Code: 204
Req: {<0.482.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"be283aca01a1d82b">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3149}
Params: #{body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.259 ***
REST request:
Code: 204
Req: {<0.492.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c6ef8f83f3993bb">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2830}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.262 ***
REST request:
Code: 200
Req: {<0.498.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"765e31bd2025c863">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1202}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.264 ***
REST request:
Code: 200
Req: {<0.504.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e08f28786b589814">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         220,2193}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.269 ***
REST request:
Code: 204
Req: {<0.510.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7267dbe0bf39885f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3371}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.271 ***
REST request:
Code: 200
Req: {<0.517.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94d992d6330fb3fa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"out\"}]">>,
         219,949}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.275 ***
REST request:
Code: 204
Req: {<0.522.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c91ce57f48707f23">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3397}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.278 ***
REST request:
Code: 200
Req: {<0.528.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f0b36022abfae396">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         218,2176}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.280 ***
REST request:
Code: 200
Req: {<0.530.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2761cb1008b888eb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1202}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.286 ***
REST request:
Code: 204
Req: {<0.532.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65fa364082e009ec">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4382}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.288 ***
REST request:
Code: 200
Req: {<0.536.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fab2fd0af01b21c1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"out\"}]">>,
         221,1110}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.293 ***
REST request:
Code: 204
Req: {<0.540.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6347ed4ee18a5a53">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3863}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.295 ***
REST request:
Code: 200
Req: {<0.542.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"872390011b4cf04f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         220,1280}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.298 ***
REST request:
Code: 200
Req: {<0.544.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b40deb56199569e2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1184}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.305 ***
REST request:
Code: 204
Req: {<0.546.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fca6b13dfbd9aefe">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5704}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.307 ***
REST request:
Code: 200
Req: {<0.548.2>,
      <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10d35a679c5c2c13">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1265}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.309 ***
REST request:
Code: 200
Req: {<0.550.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"604f13284a72a40a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1989@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1066}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.312 ***
REST request:
Code: 204
Req: {<0.552.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"229e49ccd6577136">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1658}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com/alice_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.314 ***
REST request:
Code: 200
Req: {<0.554.2>,
      <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4f83f5c48c84f72f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,869}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1989@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='pushe4aee2b517500238' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='push080f81d0e4a64aee' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1989@domain.example.com/res1' to='alice_befriend_and_alienate_1989@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='push2d69f029c7478fb9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' type='subscribed'/>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='push4c71d2e0beab2e52' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' type='subscribe'/>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='push5203cb368af26c93' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1989@domain.example.com' to='alice_befriend_and_alienate_1989@domain.example.com/res1' id='pushc03c4662449a4f3b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:31.314 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1989@domain.example.com/res1' to='alice_befriend_and_alienate_1989@domain.example.com/res1' type='unavailable'/>



*** User 2022-05-11 09:04:36.314 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='pushe7048240a466a8bd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' type='subscribe'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='pushb36e4c5616f26ef8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='push292697a077063104' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1989@domain.example.com/res1' to='bob_befriend_and_alienate_1989@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='push113fcecb97ca2ff9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' type='subscribed'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1989@domain.example.com/res1' to='bob_befriend_and_alienate_1989@domain.example.com/res1' type='unavailable'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='pushc2930c8ad3263e0a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='push8f776db9581f7c5d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-05-11 09:04:36.315 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1989@domain.example.com' to='bob_befriend_and_alienate_1989@domain.example.com/res1' id='pushf661cfd2f7fb5791' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1989@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:41.317 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:41.317 ***
bOb_befriend_and_alienate_1989@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-11 09:04:41.317 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:41.317 ***
alicE_befriend_and_alienate_1989@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-11 09:04:41.320 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_524.html
*** CT 2022-05-11 09:04:41.321 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2527.html



=== Ended at 2022-05-11 09:04:41
=== successfully completed test case
=== === Returned value: ok