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

=== Config value:

    [{watchdog,<0.12843.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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/rest_suite.befriend_and_alienate.68612.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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_SUITE.logs/run.2022-04-04_15.15.00/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 => [],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"}]},
             {welcome_message,{[],[]}}],
        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,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36"

=== Started at 2022-04-04 15:15:01


*** CT 2022-04-04 15:15:01.387 *** View log from node mongooseim@localhost when started mongooseim@localhost_5089.html
*** CT 2022-04-04 15:15:01.388 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1974.html

*** User 2022-04-04 15:15:01.411 ***
alicE_befriend_and_alienate_2329@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-04-04 15:15:01.411 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb6a36709cd97a33' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-04 15:15:01.411 ***
alicE_befriend_and_alienate_2329@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-04-04 15:15:01.411 ***
alicE_befriend_and_alienate_2329@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yMzI5AG1hdHlncnlzYQ==</auth>



*** User 2022-04-04 15:15:01.412 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@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-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bdc6005bce05d7eb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@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-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@localhost/res1 out
<iq type='set' id='d884d105e43e2f647defb0d251ba5731'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq id='d884d105e43e2f647defb0d251ba5731' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_2329@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-04 15:15:01.413 ***
alicE_befriend_and_alienate_2329@localhost/res1 out
<iq type='set' id='0f0b9c1b98c7ab670b6352b39fce2a2d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-04 15:15:01.414 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq type='result' id='0f0b9c1b98c7ab670b6352b39fce2a2d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-04 15:15:01.414 ***
alicE_befriend_and_alienate_2329@localhost/res1 out
<presence/>



*** User 2022-04-04 15:15:01.417 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2329@localhost/res1' to='alice_befriend_and_alienate_2329@localhost/res1' xml:lang='en'/>



*** User 2022-04-04 15:15:01.417 ***
bOb_befriend_and_alienate_2329@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-04-04 15:15:01.418 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='790110f254f917be' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-04 15:15:01.418 ***
bOb_befriend_and_alienate_2329@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-04-04 15:15:01.418 ***
bOb_befriend_and_alienate_2329@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjMyOQBtYWtyb2xpa2E=</auth>



*** User 2022-04-04 15:15:01.419 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-04 15:15:01.419 ***
bOb_befriend_and_alienate_2329@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-04-04 15:15:01.420 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='438feeaf9326cf2f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-04 15:15:01.420 ***
bOb_befriend_and_alienate_2329@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-04-04 15:15:01.420 ***
bOb_befriend_and_alienate_2329@localhost/res1 out
<iq type='set' id='b7297d9b691b9089d3b6862c4632b401'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-04 15:15:01.420 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq id='b7297d9b691b9089d3b6862c4632b401' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_2329@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-04 15:15:01.420 ***
bOb_befriend_and_alienate_2329@localhost/res1 out
<iq type='set' id='147c7e740889d3ff2ed266b7885dc2dc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-04 15:15:01.421 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq type='result' id='147c7e740889d3ff2ed266b7885dc2dc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-04 15:15:01.421 ***
bOb_befriend_and_alienate_2329@localhost/res1 out
<presence/>



*** User 2022-04-04 15:15:01.423 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2329@localhost/res1' to='bob_befriend_and_alienate_2329@localhost/res1' xml:lang='en'/>



*** User 2022-04-04 15:15:01.429 ***
REST request:
Code: 200
Req: {<0.12904.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4d17494bf2d6dd7b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4185}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.432 ***
REST request:
Code: 200
Req: {<0.12916.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d253fe474db73b49">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1864}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.445 ***
REST request:
Code: 204
Req: {<0.12922.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e850b1011765cf5b">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2329@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,12538}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_2329@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.461 ***
REST request:
Code: 204
Req: {<0.12936.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b720ca552b5f6a4f">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2329@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,14804}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2329@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.478 ***
REST request:
Code: 200
Req: {<0.12946.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c8268ed8a770a35">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         213,7577}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.483 ***
REST request:
Code: 200
Req: {<0.12953.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ceba3fce79fb75aa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         211,4335}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.493 ***
REST request:
Code: 204
Req: {<0.12956.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7b04f25a13441875">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8055}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.496 ***
REST request:
Code: 200
Req: {<0.12958.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8433dc39d9eaad7b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2329@localhost\",\"ask\":\"out\"}]">>,
         210,1867}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.503 ***
REST request:
Code: 204
Req: {<0.12962.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"53c4196185ba8507">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,6414}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.509 ***
REST request:
Code: 200
Req: {<0.12966.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eec125de5fccdf76">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         209,4206}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.513 ***
REST request:
Code: 200
Req: {<0.12970.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"30474ff2784cd571">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         213,3110}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.533 ***
REST request:
Code: 204
Req: {<0.12972.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33fd471fe9a6ff2f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,18671}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.542 ***
REST request:
Code: 200
Req: {<0.12974.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"37eb7f6ea50f5c05">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2329@localhost\",\"ask\":\"out\"}]">>,
         212,4510}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.554 ***
REST request:
Code: 204
Req: {<0.12978.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd1522f3b8a618aa">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10666}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.558 ***
REST request:
Code: 200
Req: {<0.12982.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d36fdec9d1692b86">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         211,2077}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.561 ***
REST request:
Code: 200
Req: {<0.12984.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b5f269a9b640797">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         213,1967}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.581 ***
REST request:
Code: 204
Req: {<0.12986.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4506eb94f1b279dd">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,18467}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.584 ***
REST request:
Code: 200
Req: {<0.12988.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"25b7cd54ec7e79af">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1744}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.588 ***
REST request:
Code: 200
Req: {<0.12990.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18a1f2dad9b87b6d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2329@localhost\",\"ask\":\"none\"}]">>,
         213,2208}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.593 ***
REST request:
Code: 204
Req: {<0.12992.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e9f5dd471daecb75">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3840}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2329@localhost/alice_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.596 ***
REST request:
Code: 200
Req: {<0.12994.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e132fcc8b25681cf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 04 Apr 2022 15:15:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1592}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2329@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-04 15:15:01.596 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='pusha57be952a64950a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.596 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='push6396d95fb7be9592' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2329@localhost/res1' to='alice_befriend_and_alienate_2329@localhost/res1' xml:lang='en'/>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='push296e911f2a73603f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<presence from='bob_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' type='subscribed'/>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='push91af256110542353' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<presence from='bob_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' type='subscribe'/>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='push4a555aa04cadde10' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<iq from='alice_befriend_and_alienate_2329@localhost' to='alice_befriend_and_alienate_2329@localhost/res1' id='push7697f620c1a7108d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:01.597 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2329@localhost/res1' to='alice_befriend_and_alienate_2329@localhost/res1' type='unavailable'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='push3029a53d43fcfc92' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alice_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' type='subscribe'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='push26f2d6f246e039a9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='push08c6a40ee0c4a6fb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2329@localhost/res1' to='bob_befriend_and_alienate_2329@localhost/res1' xml:lang='en'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='pushd1bdf7c960c1ff87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alice_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' type='subscribed'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2329@localhost/res1' to='bob_befriend_and_alienate_2329@localhost/res1' type='unavailable'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='push93e3215713c8ff9e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alice_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' type='unsubscribe'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='pushcedf3b011466c89b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<presence from='alice_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' type='unsubscribed'/>



*** User 2022-04-04 15:15:06.598 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
<iq from='bob_befriend_and_alienate_2329@localhost' to='bob_befriend_and_alienate_2329@localhost/res1' id='push299453d91acc6fa9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2329@localhost'/>
	</query>
</iq>



*** User 2022-04-04 15:15:11.599 ***
bOb_befriend_and_alienate_2329@localhost/res1 out
</stream:stream>

*** User 2022-04-04 15:15:11.599 ***
bOb_befriend_and_alienate_2329@localhost/res1 in
</stream:stream>

*** User 2022-04-04 15:15:11.599 ***
alicE_befriend_and_alienate_2329@localhost/res1 out
</stream:stream>

*** User 2022-04-04 15:15:11.600 ***
alicE_befriend_and_alienate_2329@localhost/res1 in
</stream:stream>
*** CT 2022-04-04 15:15:11.603 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1974.html
*** CT 2022-04-04 15:15:11.604 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5097.html



=== Ended at 2022-04-04 15:15:11
=== successfully completed test case
=== === Returned value: ok