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

=== Config value:

    [{watchdog,<0.19902.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_SUITE.logs/run.2022-04-05_07.56.46/rest_suite.befriend_and_alienate.56963.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_SUITE.logs/run.2022-04-05_07.56.46/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 => 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@22b4515d438b.2022-04-05_07.43.19"

=== Started at 2022-04-05 07:56:55


*** CT 2022-04-05 07:56:55.504 *** View log from node mongooseim@localhost when started mongooseim@localhost_5050.html
*** CT 2022-04-05 07:56:55.504 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2005.html

*** User 2022-04-05 07:56:55.524 ***
alicE_befriend_and_alienate_1598@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-05 07:56:55.525 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c3877cd8b28b0dd6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:56:55.525 ***
alicE_befriend_and_alienate_1598@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-05 07:56:55.525 ***
alicE_befriend_and_alienate_1598@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNTk4AG1hdHlncnlzYQ==</auth>



*** User 2022-04-05 07:56:55.528 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-05 07:56:55.529 ***
alicE_befriend_and_alienate_1598@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-05 07:56:55.530 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c0084be21450219' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:56:55.530 ***
alicE_befriend_and_alienate_1598@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-05 07:56:55.531 ***
alicE_befriend_and_alienate_1598@localhost/res1 out
<iq type='set' id='ccc1e5b2a37fbf9a8315983533938e85'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-05 07:56:55.534 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq id='ccc1e5b2a37fbf9a8315983533938e85' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1598@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-05 07:56:55.534 ***
alicE_befriend_and_alienate_1598@localhost/res1 out
<iq type='set' id='4dd5cb411a359c71ba4cd1c62729f0f5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:56:55.534 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq type='result' id='4dd5cb411a359c71ba4cd1c62729f0f5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:56:55.535 ***
alicE_befriend_and_alienate_1598@localhost/res1 out
<presence/>



*** User 2022-04-05 07:56:55.562 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1598@localhost/res1' to='alice_befriend_and_alienate_1598@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:56:55.562 ***
bOb_befriend_and_alienate_1598@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-05 07:56:55.563 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ea9fcd7044e8ed7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:56:55.563 ***
bOb_befriend_and_alienate_1598@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-05 07:56:55.563 ***
bOb_befriend_and_alienate_1598@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTU5OABtYWtyb2xpa2E=</auth>



*** User 2022-04-05 07:56:55.567 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-04-05 07:56:55.567 ***
bOb_befriend_and_alienate_1598@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-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77c943924c6daede' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-04-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@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-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@localhost/res1 out
<iq type='set' id='35f4ef6ac3aa054a8ad715cba3da5683'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-04-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq id='35f4ef6ac3aa054a8ad715cba3da5683' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1598@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-04-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@localhost/res1 out
<iq type='set' id='df5d4097b96621fe11fe3092907b47c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:56:55.568 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq type='result' id='df5d4097b96621fe11fe3092907b47c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-04-05 07:56:55.569 ***
bOb_befriend_and_alienate_1598@localhost/res1 out
<presence/>



*** User 2022-04-05 07:56:55.576 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1598@localhost/res1' to='bob_befriend_and_alienate_1598@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:56:55.584 ***
REST request:
Code: 200
Req: {<0.19967.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9daef01a28f2de7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3367}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.593 ***
REST request:
Code: 200
Req: {<0.19975.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7d347c1723639beb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2469}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.602 ***
REST request:
Code: 204
Req: {<0.19982.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef2c4ece9cb562fd">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1598@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7951}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1598@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.670 ***
REST request:
Code: 204
Req: {<0.19989.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"357cbe36ad0f2c31">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1598@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,66365}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1598@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.687 ***
REST request:
Code: 200
Req: {<0.19993.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ea052b9a1b494605">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         213,2732}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.693 ***
REST request:
Code: 200
Req: {<0.19997.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b94513f90634070b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         211,2591}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.710 ***
REST request:
Code: 204
Req: {<0.20001.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a3bf3ef519c91bea">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,14719}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.716 ***
REST request:
Code: 200
Req: {<0.20009.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd2d1422f9e5dfe9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1598@localhost\",\"ask\":\"out\"}]">>,
         210,4504}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.786 ***
REST request:
Code: 204
Req: {<0.20014.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c2105e12bd15a682">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,27095}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.796 ***
REST request:
Code: 200
Req: {<0.20023.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08736182fe2e167b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         209,5531}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.802 ***
REST request:
Code: 200
Req: {<0.20027.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a1eafe6c3aa1b4f1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         213,2780}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.817 ***
REST request:
Code: 204
Req: {<0.20029.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"83ebd407784f3865">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,11671}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.820 ***
REST request:
Code: 200
Req: {<0.20031.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8b7796cd4c1ed2a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1598@localhost\",\"ask\":\"out\"}]">>,
         212,2247}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.874 ***
REST request:
Code: 204
Req: {<0.20033.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9540cce000b2b636">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,14362}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.878 ***
REST request:
Code: 200
Req: {<0.20039.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9fe1564003fe881c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         211,2797}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.883 ***
REST request:
Code: 200
Req: {<0.20041.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2409dfca7a471128">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         213,3061}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.919 ***
REST request:
Code: 204
Req: {<0.20043.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"314a4682965fe460">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,34800}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.924 ***
REST request:
Code: 200
Req: {<0.20045.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"22e7a65f7fb079f1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2790}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.929 ***
REST request:
Code: 200
Req: {<0.20047.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"72f51ac0dce6e419">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1598@localhost\",\"ask\":\"none\"}]">>,
         213,3387}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.941 ***
REST request:
Code: 204
Req: {<0.20049.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a696e898fbcdcc24">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8263}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1598@localhost/alice_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.945 ***
REST request:
Code: 200
Req: {<0.20051.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"90159f8c330e5557">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 05 Apr 2022 07:56:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2841}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1598@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='pushab51ad4f52c6f0c7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='push69b2b7639f04ef41' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1598@localhost/res1' to='alice_befriend_and_alienate_1598@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='pushbb472d651aa14752' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<presence from='bob_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' type='subscribed'/>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='push41b7046b71539fe4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<presence from='bob_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' type='subscribe'/>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='pushad43833398b42a82' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<iq from='alice_befriend_and_alienate_1598@localhost' to='alice_befriend_and_alienate_1598@localhost/res1' id='push46bd92f881e6e69a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:56:55.946 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
<presence from='bOb_befriend_and_alienate_1598@localhost/res1' to='alice_befriend_and_alienate_1598@localhost/res1' type='unavailable'/>



*** User 2022-04-05 07:57:00.947 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='pushd56418c82e811419' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.947 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alice_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' type='subscribe'/>



*** User 2022-04-05 07:57:00.947 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='push06ac924e28cdf52a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.947 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='push2e5365f8d6f0f0ca' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1598@localhost/res1' to='bob_befriend_and_alienate_1598@localhost/res1' xml:lang='en'/>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='pushcad163e124bf5b1a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alice_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' type='subscribed'/>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alicE_befriend_and_alienate_1598@localhost/res1' to='bob_befriend_and_alienate_1598@localhost/res1' type='unavailable'/>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='push17e94bc0825bd1b2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alice_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' type='unsubscribe'/>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='pushf716dd6058a97081' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<presence from='alice_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' type='unsubscribed'/>



*** User 2022-04-05 07:57:00.948 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
<iq from='bob_befriend_and_alienate_1598@localhost' to='bob_befriend_and_alienate_1598@localhost/res1' id='push551876fd8b87365d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1598@localhost'/>
	</query>
</iq>



*** User 2022-04-05 07:57:05.949 ***
bOb_befriend_and_alienate_1598@localhost/res1 out
</stream:stream>

*** User 2022-04-05 07:57:05.950 ***
bOb_befriend_and_alienate_1598@localhost/res1 in
</stream:stream>

*** User 2022-04-05 07:57:05.950 ***
alicE_befriend_and_alienate_1598@localhost/res1 out
</stream:stream>

*** User 2022-04-05 07:57:05.950 ***
alicE_befriend_and_alienate_1598@localhost/res1 in
</stream:stream>
*** CT 2022-04-05 07:57:05.953 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2005.html
*** CT 2022-04-05 07:57:05.954 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5058.html



=== Ended at 2022-04-05 07:57:05
=== successfully completed test case
=== === Returned value: ok