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

=== Config value:

    [{watchdog,<0.21884.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@7e18e8030105.2024-04-24_13.07.28/big_tests.tests.rest_SUITE.logs/run.2024-04-24_13.24.13/rest_suite.befriend_and_alienate.105732.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@7e18e8030105.2024-04-24_13.07.28/big_tests.tests.rest_SUITE.logs/run.2024-04-24_13.24.13/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@7e18e8030105.2024-04-24_13.07.28"

=== Started at 2024-04-24 13:24:14


*** CT 2024-04-24 13:24:14.196 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4979.html

*** User 2024-04-24 13:24:14.211 ***🔗
alicE_befriend_and_alienate_3365@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-24 13:24:14.212 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3e848415d65b64ee' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:24:14.212 ***🔗
alicE_befriend_and_alienate_3365@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-24 13:24:14.212 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzY1AG1hdHlncnlzYQ==</auth>



*** User 2024-04-24 13:24:14.213 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:24:14.214 ***🔗
alicE_befriend_and_alienate_3365@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-24 13:24:14.214 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0daaedbb86ec3faf' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3365@localhost'>

*** User 2024-04-24 13:24:14.214 ***🔗
alicE_befriend_and_alienate_3365@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-24 13:24:14.214 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 out
<iq type='set' id='8842e43e9467f394124ae5893851e223'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:24:14.215 ***🔗
alicE_befriend_and_alienate_3365@localhost/res1 in
<iq id='8842e43e9467f394124ae5893851e223' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3365@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:24:14.215 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 out
<iq type='set' id='c812185370867a8c7861b1b523219cac'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:24:14.215 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='c812185370867a8c7861b1b523219cac' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:24:14.215 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 out
<presence/>



*** User 2024-04-24 13:24:14.222 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost/res1' to='alice_befriend_and_alienate_3365@localhost/res1'/>



*** User 2024-04-24 13:24:14.223 ***🔗
bOb_befriend_and_alienate_3365@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-24 13:24:14.223 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d8f3c70c141e12d3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:24:14.224 ***🔗
bOb_befriend_and_alienate_3365@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-24 13:24:14.224 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM2NQBtYWtyb2xpa2E=</auth>



*** User 2024-04-24 13:24:14.225 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:24:14.225 ***🔗
bOb_befriend_and_alienate_3365@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-24 13:24:14.225 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4debddc4093d5f7' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3365@localhost'>

*** User 2024-04-24 13:24:14.225 ***🔗
bOb_befriend_and_alienate_3365@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-24 13:24:14.225 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 out
<iq type='set' id='3ddf748515f3d19e93ac141c44482806'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:24:14.226 ***🔗
bOb_befriend_and_alienate_3365@localhost/res1 in
<iq id='3ddf748515f3d19e93ac141c44482806' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3365@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:24:14.226 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 out
<iq type='set' id='737ab8da310890e5fc8bfa2794e2b4dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:24:14.227 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='737ab8da310890e5fc8bfa2794e2b4dd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:24:14.227 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 out
<presence/>



*** User 2024-04-24 13:24:14.234 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='bob_befriend_and_alienate_3365@localhost/res1' to='bob_befriend_and_alienate_3365@localhost/res1'/>



*** User 2024-04-24 13:24:14.249 ***🔗
REST request:
Code: 200
Req: {<0.22007.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"746f51dc2fce3cce">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,14088}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.254 ***🔗
REST request:
Code: 200
Req: {<0.22017.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bb27c5b5e517be4a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2399}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.263 ***🔗
REST request:
Code: 204
Req: {<0.22019.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bb12946a47890fe2">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3365@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,7301}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3365@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.268 ***🔗
REST request:
Code: 204
Req: {<0.22021.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc72d10f24b3ff4a">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3365@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,3507}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3365@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.272 ***🔗
REST request:
Code: 204
Req: {<0.22023.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d1ea575d2e2909d5">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3365@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,2573}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3365@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.276 ***🔗
REST request:
Code: 200
Req: {<0.22025.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"30482f272d854d73">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         213,1442}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.280 ***🔗
REST request:
Code: 200
Req: {<0.22029.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0ff94fee6aee088a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         211,2166}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.286 ***🔗
REST request:
Code: 204
Req: {<0.22033.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5c6ffa65bffff4d9">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,4312}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.289 ***🔗
REST request:
Code: 200
Req: {<0.22037.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"81c70d530c1d949f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3365@localhost\",\"ask\":\"out\"}]">>,
         210,1429}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.294 ***🔗
REST request:
Code: 204
Req: {<0.22039.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"82f8499b246e5ad4">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,4049}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.296 ***🔗
REST request:
Code: 200
Req: {<0.22043.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33e3903b804f9852">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         209,1458}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.299 ***🔗
REST request:
Code: 200
Req: {<0.22047.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6209943af052d8a7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         213,1492}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.305 ***🔗
REST request:
Code: 204
Req: {<0.22049.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f6f2e881aed3a2a">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,4638}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.308 ***🔗
REST request:
Code: 200
Req: {<0.22051.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ac10bc83ff10714">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3365@localhost\",\"ask\":\"out\"}]">>,
         212,1543}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.313 ***🔗
REST request:
Code: 204
Req: {<0.22053.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b35645a1afd6929e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,4634}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.316 ***🔗
REST request:
Code: 200
Req: {<0.22055.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f25bb5b3302a8ee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         211,1499}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.319 ***🔗
REST request:
Code: 200
Req: {<0.22057.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb15f6298c36271c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         213,1537}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.351 ***🔗
REST request:
Code: 204
Req: {<0.22059.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"af4c1478d9e35705">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,31207}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.354 ***🔗
REST request:
Code: 200
Req: {<0.22061.2>,
      <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5895bf1991fd9b8b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1660}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.357 ***🔗
REST request:
Code: 200
Req: {<0.22063.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"569a45555470b7ee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3365@localhost\",\"ask\":\"none\"}]">>,
         213,1509}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.360 ***🔗
REST request:
Code: 204
Req: {<0.22065.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4a8de230353941dc">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>}],
         <<>>,80,1763}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_3365@localhost/alice_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.362 ***🔗
REST request:
Code: 200
Req: {<0.22067.2>,
      <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ebf72366d8a9e77">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:24:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1660}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_3365@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='push244e1b22c6af02ee' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='push00dfb80f3c5f62a8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='push6d392059a59ec83a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3365@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<presence from='bob_befriend_and_alienate_3365@localhost/res1' to='alice_befriend_and_alienate_3365@localhost/res1'/>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='push2cf4af468a2e44fc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<presence from='bob_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' type='subscribed'/>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='pushb26bc0973714354c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<presence from='bob_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' type='subscribe'/>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='pushe5ffc0451da9114d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<iq from='alice_befriend_and_alienate_3365@localhost' to='alice_befriend_and_alienate_3365@localhost/res1' id='pushfd18c694148bd4db' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3365@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-24 13:24:14.363 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
<presence from='bob_befriend_and_alienate_3365@localhost/res1' to='alice_befriend_and_alienate_3365@localhost/res1' type='unavailable'/>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='push0e1d93647757307e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' type='subscribe'/>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='pushb82b63b4fe2de853' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='push44a6b5ec3280474b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3365@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost/res1' to='bob_befriend_and_alienate_3365@localhost/res1'/>



*** User 2024-04-24 13:24:19.364 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='pushb090e36b0dcf9a34' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' type='subscribed'/>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost/res1' to='bob_befriend_and_alienate_3365@localhost/res1' type='unavailable'/>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='pusha130f1723fd6fa01' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' type='unsubscribe'/>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='push41c2672d9a6a2f2e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<presence from='alice_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' type='unsubscribed'/>



*** User 2024-04-24 13:24:19.365 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
<iq from='bob_befriend_and_alienate_3365@localhost' to='bob_befriend_and_alienate_3365@localhost/res1' id='push7268b13bd347ce0d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3365@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-24 13:24:24.366 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:24:24.367 ***🔗
bob_befriend_and_alienate_3365@localhost/res1 in
</stream:stream>

*** User 2024-04-24 13:24:24.367 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 out
</stream:stream>

*** User 2024-04-24 13:24:24.367 ***🔗
alice_befriend_and_alienate_3365@localhost/res1 in
</stream:stream>
*** CT 2024-04-24 13:24:24.370 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4998.html



=== Ended at 2024-04-24 13:24:24
=== successfully completed test case
=== === Returned value: ok