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

=== Config value:

    [{watchdog,<0.21608.2>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@86bdabdb5d0f.2024-04-16_11.58.25/big_tests.tests.rest_SUITE.logs/run.2024-04-16_12.14.06/rest_suite.befriend_and_alienate.67973.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@86bdabdb5d0f.2024-04-16_11.58.25/big_tests.tests.rest_SUITE.logs/run.2024-04-16_12.14.06/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_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@86bdabdb5d0f.2024-04-16_11.58.25"

=== Started at 2024-04-16 12:14:07


*** CT 2024-04-16 12:14:07.589 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4805.html

*** User 2024-04-16 12:14:07.606 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 12:14:07.607 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dff1bebbf437d7f3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 12:14:07.607 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:14:07.607 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzA5AG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 12:14:07.609 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 12:14:07.609 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 12:14:07.609 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5997cc9a5eecdfa' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3309@localhost'>

*** User 2024-04-16 12:14:07.609 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:14:07.609 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 out
<iq type='set' id='466c948be890416c3147eef8c80a297e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 12:14:07.610 ***🔗
alicE_befriend_and_alienate_3309@localhost/res1 in
<iq id='466c948be890416c3147eef8c80a297e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3309@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 12:14:07.610 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 out
<iq type='set' id='9396f66915b07d838ed4dcbb0e6d34f8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:14:07.610 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='9396f66915b07d838ed4dcbb0e6d34f8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:14:07.611 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 out
<presence/>



*** User 2024-04-16 12:14:07.612 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost/res1' to='alice_befriend_and_alienate_3309@localhost/res1'/>



*** User 2024-04-16 12:14:07.612 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 12:14:07.613 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ceeaef509065449' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 12:14:07.613 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:14:07.613 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzMwOQBtYWtyb2xpa2E=</auth>



*** User 2024-04-16 12:14:07.614 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 12:14:07.615 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 12:14:07.615 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d7917b3b9a9b808f' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3309@localhost'>

*** User 2024-04-16 12:14:07.616 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-16 12:14:07.616 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 out
<iq type='set' id='6ec748ba92485e248915e2fdb73cd0de'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 12:14:07.616 ***🔗
bOb_befriend_and_alienate_3309@localhost/res1 in
<iq id='6ec748ba92485e248915e2fdb73cd0de' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3309@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 12:14:07.616 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 out
<iq type='set' id='2e8ff1cfc50757c91d499dce73d6f455'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:14:07.617 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='2e8ff1cfc50757c91d499dce73d6f455' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 12:14:07.617 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 out
<presence/>



*** User 2024-04-16 12:14:07.618 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='bob_befriend_and_alienate_3309@localhost/res1' to='bob_befriend_and_alienate_3309@localhost/res1'/>



*** User 2024-04-16 12:14:07.622 ***🔗
REST request:
Code: 200
Req: {<0.21708.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6a7a643324a6064">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2747}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.625 ***🔗
REST request:
Code: 200
Req: {<0.21723.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0633cc73fdb88213">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1420}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.630 ***🔗
REST request:
Code: 204
Req: {<0.21729.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8f6767a30b72a5f">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3309@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>}],
         <<>>,80,3911}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3309@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.634 ***🔗
REST request:
Code: 204
Req: {<0.21742.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ebbe03b456a10d5e">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3309@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>}],
         <<>>,80,3493}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3309@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.638 ***🔗
REST request:
Code: 204
Req: {<0.21747.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"315085ba1a995fa9">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3309@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>}],
         <<>>,80,3096}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3309@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.641 ***🔗
REST request:
Code: 200
Req: {<0.21749.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cadaedcc88764504">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         213,1514}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.643 ***🔗
REST request:
Code: 200
Req: {<0.21751.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fdd65e38b9f6cc4e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         211,1130}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.647 ***🔗
REST request:
Code: 204
Req: {<0.21753.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9cef7bfa73da7fcd">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>}],
         <<>>,80,3640}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.650 ***🔗
REST request:
Code: 200
Req: {<0.21757.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ab901422e742c66">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:06 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3309@localhost\",\"ask\":\"out\"}]">>,
         210,1063}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.701 ***🔗
REST request:
Code: 204
Req: {<0.21761.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"79eddfee40f8e2f5">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>}],
         <<>>,80,50134}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.704 ***🔗
REST request:
Code: 200
Req: {<0.21765.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d88af1320c7328e4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         209,2107}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.707 ***🔗
REST request:
Code: 200
Req: {<0.21767.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1b8bd8650fea7f70">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         213,1290}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.712 ***🔗
REST request:
Code: 204
Req: {<0.21771.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62cba3ef32337bf8">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>}],
         <<>>,80,3912}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.715 ***🔗
REST request:
Code: 200
Req: {<0.21775.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f2fb2ab69b38cb4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3309@localhost\",\"ask\":\"out\"}]">>,
         212,1498}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.719 ***🔗
REST request:
Code: 204
Req: {<0.21777.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5504630f3fbbe74">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>}],
         <<>>,80,3617}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.722 ***🔗
REST request:
Code: 200
Req: {<0.21779.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"38438e12b7aeba8e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         211,1425}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.724 ***🔗
REST request:
Code: 200
Req: {<0.21781.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ea94e1e34c77af1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         213,1346}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.732 ***🔗
REST request:
Code: 204
Req: {<0.21783.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2444d1826bcd3b0">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>}],
         <<>>,80,6626}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.734 ***🔗
REST request:
Code: 200
Req: {<0.21785.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4650d417ed551a1f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1219}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.737 ***🔗
REST request:
Code: 200
Req: {<0.21787.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e845b2e90014d39c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3309@localhost\",\"ask\":\"none\"}]">>,
         213,1462}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.740 ***🔗
REST request:
Code: 204
Req: {<0.21789.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"412e6ce20ab5e08a">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>}],
         <<>>,80,2216}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3309@localhost/alice_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.742 ***🔗
REST request:
Code: 200
Req: {<0.21791.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"baeb703dc29e690e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 12:14:07 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1336}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3309@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-16 12:14:07.742 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='pushcad27ec64ab4ddec' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='pusha02ffe76660990fe' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='pushd125614dc4ec4a1b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3309@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<presence from='bob_befriend_and_alienate_3309@localhost/res1' to='alice_befriend_and_alienate_3309@localhost/res1'/>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='pusha05e9f341cae924a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<presence from='bob_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' type='subscribed'/>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='push869132fcdcb7c012' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<presence from='bob_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' type='subscribe'/>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='push491af8ab341ff218' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<iq from='alice_befriend_and_alienate_3309@localhost' to='alice_befriend_and_alienate_3309@localhost/res1' id='push4da41cccae147864' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3309@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 12:14:07.743 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
<presence from='bob_befriend_and_alienate_3309@localhost/res1' to='alice_befriend_and_alienate_3309@localhost/res1' type='unavailable'/>



*** User 2024-04-16 12:14:12.744 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='pushba27648b2bac7143' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' type='subscribe'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='push509cb2f9ed1abed5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='push170101da9913d702' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3309@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost/res1' to='bob_befriend_and_alienate_3309@localhost/res1'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='pushfc31b1e32e29b5b6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' type='subscribed'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost/res1' to='bob_befriend_and_alienate_3309@localhost/res1' type='unavailable'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='push6b329c2104d2029e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' type='unsubscribe'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='push2e7f64bc366c5a28' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<presence from='alice_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' type='unsubscribed'/>



*** User 2024-04-16 12:14:12.745 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
<iq from='bob_befriend_and_alienate_3309@localhost' to='bob_befriend_and_alienate_3309@localhost/res1' id='push60a69d2638e58129' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3309@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 12:14:17.746 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 out
</stream:stream>

*** User 2024-04-16 12:14:17.747 ***🔗
bob_befriend_and_alienate_3309@localhost/res1 in
</stream:stream>

*** User 2024-04-16 12:14:17.747 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 out
</stream:stream>

*** User 2024-04-16 12:14:17.747 ***🔗
alice_befriend_and_alienate_3309@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 12:14:17.751 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4824.html



=== Ended at 2024-04-16 12:14:17
=== successfully completed test case
=== === Returned value: ok