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

=== Config value:

    [{watchdog,<0.23621.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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_SUITE.logs/run.2022-06-22_08.57.09/rest_suite.befriend_and_alienate.99330.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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.rest_SUITE.logs/run.2022-06-22_08.57.09/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => riak,iqdisc => one_queue,
              riak =>
                  #{bucket_type => <<"rosters">>,
                    version_bucket_type => <<"roster_versions">>},
              store_current_id => false,versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => riak,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,
              riak =>
                  #{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
              search => true}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58"

=== Started at 2022-06-22 08:57:18


*** CT 2022-06-22 08:57:18.451 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4647.html
*** CT 2022-06-22 08:57:18.451 *** View log from node ejabberd2@localhost when started🔗 ejabberd2@localhost_1988.html

*** User 2022-06-22 08:57:18.464 ***🔗
alicE_befriend_and_alienate_1680@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-06-22 08:57:18.464 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5dea94a9167ab0b2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:18.464 ***🔗
alicE_befriend_and_alienate_1680@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-06-22 08:57:18.465 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNjgwAG1hdHlncnlzYQ==</auth>



*** User 2022-06-22 08:57:18.466 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:18.466 ***🔗
alicE_befriend_and_alienate_1680@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-06-22 08:57:18.466 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9bd339b878e721b8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:18.466 ***🔗
alicE_befriend_and_alienate_1680@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-06-22 08:57:18.466 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 out
<iq type='set' id='9f8da7b0af49891f9bbc1efe324eadba'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:18.467 ***🔗
alicE_befriend_and_alienate_1680@localhost/res1 in
<iq id='9f8da7b0af49891f9bbc1efe324eadba' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1680@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:18.467 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 out
<iq type='set' id='d29586ba378e46805070f1b4b772bcca'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:18.467 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq type='result' id='d29586ba378e46805070f1b4b772bcca'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:18.467 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:18.469 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost/res1' to='alice_befriend_and_alienate_1680@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:18.470 ***🔗
bOb_befriend_and_alienate_1680@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-06-22 08:57:18.470 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6422cacb4fc319f' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:18.471 ***🔗
bOb_befriend_and_alienate_1680@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-06-22 08:57:18.471 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTY4MABtYWtyb2xpa2E=</auth>



*** User 2022-06-22 08:57:18.472 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:57:18.472 ***🔗
bOb_befriend_and_alienate_1680@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-06-22 08:57:18.472 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a7f957e4a09924d7' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:57:18.473 ***🔗
bOb_befriend_and_alienate_1680@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-06-22 08:57:18.473 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 out
<iq type='set' id='e0d9c90b7e6d43671ef77d9ff42bd844'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:57:18.473 ***🔗
bOb_befriend_and_alienate_1680@localhost/res1 in
<iq id='e0d9c90b7e6d43671ef77d9ff42bd844' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1680@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:57:18.473 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 out
<iq type='set' id='26d5b008419344247fa63b55dd83f757'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:18.473 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq type='result' id='26d5b008419344247fa63b55dd83f757'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:57:18.474 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 out
<presence/>



*** User 2022-06-22 08:57:18.476 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='bob_befriend_and_alienate_1680@localhost/res1' to='bob_befriend_and_alienate_1680@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:18.481 ***🔗
REST request:
Code: 200
Req: {<0.23682.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f1069b8ccbc41988">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4101}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.558 ***🔗
REST request:
Code: 200
Req: {<0.23688.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f556c711338388a9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1574}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.563 ***🔗
REST request:
Code: 204
Req: {<0.23698.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"40693190e68b17de">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1680@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3911}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_1680@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.567 ***🔗
REST request:
Code: 204
Req: {<0.23708.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9c58e62d3b87f9d2">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1680@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3640}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1680@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.570 ***🔗
REST request:
Code: 200
Req: {<0.23712.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1da9a598a2b6347">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         213,1399}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.572 ***🔗
REST request:
Code: 200
Req: {<0.23718.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7a16cf737b39471">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         211,1160}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.660 ***🔗
REST request:
Code: 204
Req: {<0.23722.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef1ef3a2c4d16fb7">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,81750}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.663 ***🔗
REST request:
Code: 200
Req: {<0.23730.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c37fe25fa05e75b6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1680@localhost\",\"ask\":\"out\"}]">>,
         210,1308}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.670 ***🔗
REST request:
Code: 204
Req: {<0.23737.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e5b0583ea5e3f567">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5875}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.672 ***🔗
REST request:
Code: 200
Req: {<0.23742.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f90671e24f4cb35d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         209,1292}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.674 ***🔗
REST request:
Code: 200
Req: {<0.23746.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd65d2fd11539f6f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         213,1305}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.683 ***🔗
REST request:
Code: 204
Req: {<0.23748.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"23048df8601e1f31">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7972}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.758 ***🔗
REST request:
Code: 200
Req: {<0.23752.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f73543a0afc1892c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1680@localhost\",\"ask\":\"out\"}]">>,
         212,1699}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.765 ***🔗
REST request:
Code: 204
Req: {<0.23754.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2ad60b0e828883d7">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5694}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.767 ***🔗
REST request:
Code: 200
Req: {<0.23760.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08f13149d648ed54">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         211,1252}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.769 ***🔗
REST request:
Code: 200
Req: {<0.23762.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9230b58b2e31c6b3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         213,1157}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.779 ***🔗
REST request:
Code: 204
Req: {<0.23764.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f02dd9aab540d7a2">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,9604}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.781 ***🔗
REST request:
Code: 200
Req: {<0.23766.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd22afa88daf41da">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1235}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.784 ***🔗
REST request:
Code: 200
Req: {<0.23768.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54d5335d347b25f6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1680@localhost\",\"ask\":\"none\"}]">>,
         213,1248}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.787 ***🔗
REST request:
Code: 204
Req: {<0.23770.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c4acc5038c1a23ed">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2368}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1680@localhost/alice_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.789 ***🔗
REST request:
Code: 200
Req: {<0.23772.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"592383d31d029986">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:57:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1203}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_1680@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='push5f8a8c788e5acf8f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='push139117d1a7f48979' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<presence from='bob_befriend_and_alienate_1680@localhost/res1' to='alice_befriend_and_alienate_1680@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='push45af2192a054866c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<presence from='bob_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' type='subscribed'/>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='pushfd1b5b2df46b8212' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<presence from='bob_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' type='subscribe'/>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='push92f6420396c75586' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<iq from='alice_befriend_and_alienate_1680@localhost' to='alice_befriend_and_alienate_1680@localhost/res1' id='push0d869ce0b8e40777' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:18.789 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
<presence from='bob_befriend_and_alienate_1680@localhost/res1' to='alice_befriend_and_alienate_1680@localhost/res1' type='unavailable'/>



*** User 2022-06-22 08:57:23.790 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='push2e0d4cc20713d922' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.790 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' type='subscribe'/>



*** User 2022-06-22 08:57:23.790 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='push9a9c2e30fa1072ad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.790 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='pushd26d01dd47a29c2f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost/res1' to='bob_befriend_and_alienate_1680@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='pushde1a65fcf340b137' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' type='subscribed'/>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost/res1' to='bob_befriend_and_alienate_1680@localhost/res1' type='unavailable'/>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='pushac38a6a0262ff303' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' type='unsubscribe'/>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='pushe18f3f881edd7b04' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<presence from='alice_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' type='unsubscribed'/>



*** User 2022-06-22 08:57:23.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
<iq from='bob_befriend_and_alienate_1680@localhost' to='bob_befriend_and_alienate_1680@localhost/res1' id='push83217ac1c5808a50' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1680@localhost'/>
	</query>
</iq>



*** User 2022-06-22 08:57:28.791 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:28.792 ***🔗
bob_befriend_and_alienate_1680@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:57:28.792 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:57:28.792 ***🔗
alice_befriend_and_alienate_1680@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:57:28.794 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1988.html
*** CT 2022-06-22 08:57:28.795 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4655.html



=== Ended at 2022-06-22 08:57:28
=== successfully completed test case
=== === Returned value: ok