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

=== Config value:

    [{watchdog,<0.86739.0>},
     {{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@ba61420e19a8.2024-03-11_11.24.31/big_tests.tests.rest_SUITE.logs/run.2024-03-11_11.39.37/rest_suite.befriend_and_alienate.126468.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@ba61420e19a8.2024-03-11_11.24.31/big_tests.tests.rest_SUITE.logs/run.2024-03-11_11.39.37/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,versioning => false,
              store_current_id => false,backend => rdbms},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}},
     {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@ba61420e19a8.2024-03-11_11.24.31"

=== Started at 2024-03-11 11:39:38


*** CT 2024-03-11 11:39:38.064 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4865.html

*** User 2024-03-11 11:39:38.075 ***🔗
alicE_befriend_and_alienate_3257@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-03-11 11:39:38.076 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f813bf56624ca8bc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:39:38.076 ***🔗
alicE_befriend_and_alienate_3257@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-03-11 11:39:38.076 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMjU3AG1hdHlncnlzYQ==</auth>



*** User 2024-03-11 11:39:38.077 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:39:38.077 ***🔗
alicE_befriend_and_alienate_3257@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-03-11 11:39:38.077 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb8af5fcb1de11b4' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3257@localhost'>

*** User 2024-03-11 11:39:38.077 ***🔗
alicE_befriend_and_alienate_3257@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-03-11 11:39:38.077 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 out
<iq type='set' id='0b0a3e9413a52eaa61dc5bdb6ecfbb27'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:39:38.078 ***🔗
alicE_befriend_and_alienate_3257@localhost/res1 in
<iq id='0b0a3e9413a52eaa61dc5bdb6ecfbb27' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3257@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:39:38.078 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 out
<iq type='set' id='b22c77e472d18a0d12aae627d62bde2a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:39:38.078 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='b22c77e472d18a0d12aae627d62bde2a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:39:38.078 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 out
<presence/>



*** User 2024-03-11 11:39:38.079 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost/res1' to='alice_befriend_and_alienate_3257@localhost/res1'/>



*** User 2024-03-11 11:39:38.080 ***🔗
bOb_befriend_and_alienate_3257@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-03-11 11:39:38.081 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='df7da9cf6b874d73' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:39:38.081 ***🔗
bOb_befriend_and_alienate_3257@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-03-11 11:39:38.081 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzI1NwBtYWtyb2xpa2E=</auth>



*** User 2024-03-11 11:39:38.082 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:39:38.082 ***🔗
bOb_befriend_and_alienate_3257@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-03-11 11:39:38.082 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0633168f688397d7' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3257@localhost'>

*** User 2024-03-11 11:39:38.082 ***🔗
bOb_befriend_and_alienate_3257@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-03-11 11:39:38.082 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 out
<iq type='set' id='a073d9773725da786ab3f8e454a7bacd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:39:38.083 ***🔗
bOb_befriend_and_alienate_3257@localhost/res1 in
<iq id='a073d9773725da786ab3f8e454a7bacd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3257@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:39:38.083 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 out
<iq type='set' id='3550c23fe487b4c869c85d32dac2238d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:39:38.083 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='3550c23fe487b4c869c85d32dac2238d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:39:38.084 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 out
<presence/>



*** User 2024-03-11 11:39:38.085 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='bob_befriend_and_alienate_3257@localhost/res1' to='bob_befriend_and_alienate_3257@localhost/res1'/>



*** User 2024-03-11 11:39:38.088 ***🔗
REST request:
Code: 200
Req: {<0.86849.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e03b4fead74b27ce">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1285}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.090 ***🔗
REST request:
Code: 200
Req: {<0.86856.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97e0c4b84df0a02d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1199}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.094 ***🔗
REST request:
Code: 204
Req: {<0.86862.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2dc7dbc068f4af27">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,3499}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.097 ***🔗
REST request:
Code: 204
Req: {<0.86870.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"585b40eea8c8b6a3">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2158}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.100 ***🔗
REST request:
Code: 204
Req: {<0.86877.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb3f6623ce673df0">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2225}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.102 ***🔗
REST request:
Code: 200
Req: {<0.86880.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a20a926a17eec98a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}]">>,
         213,1350}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.104 ***🔗
REST request:
Code: 200
Req: {<0.86882.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bf7c70ca6e54d572">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}]">>,
         211,1231}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.108 ***🔗
REST request:
Code: 204
Req: {<0.86884.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2b788ef29a20342">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2846}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.110 ***🔗
REST request:
Code: 200
Req: {<0.86886.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef4c89ace006c0c6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}]">>,
         210,1134}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.114 ***🔗
REST request:
Code: 204
Req: {<0.86890.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"570ec54c83544731">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2854}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.115 ***🔗
REST request:
Code: 200
Req: {<0.86896.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d37fd29f753ed562">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}]">>,
         209,975}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.117 ***🔗
REST request:
Code: 200
Req: {<0.86898.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2522cdead0b48f1c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}]">>,
         213,1173}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.121 ***🔗
REST request:
Code: 204
Req: {<0.86900.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80ca299a5ec4eda1">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2761}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.123 ***🔗
REST request:
Code: 200
Req: {<0.86904.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"501fc9fe438d1646">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}]">>,
         212,1316}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.127 ***🔗
REST request:
Code: 204
Req: {<0.86908.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"255e40ecdb0e9398">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,2950}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-11 11:39:38.129 ***🔗
REST request:
Code: 200
Req: {<0.86910.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"da04b42038b9c221">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3257@localhost\"}]">>,
         211,1154}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.131 ***🔗
REST request:
Code: 200
Req: {<0.86912.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f88f9dbb0a512025">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}]">>,
         213,1253}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.179 ***🔗
REST request:
Code: 204
Req: {<0.86914.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14e1069f7bb5d3ed">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,46952}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.181 ***🔗
REST request:
Code: 200
Req: {<0.86916.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3b3bafb9352c2863">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1068}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.183 ***🔗
REST request:
Code: 200
Req: {<0.86918.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb163d808727a0ae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3257@localhost\"}]">>,
         213,1005}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.185 ***🔗
REST request:
Code: 204
Req: {<0.86920.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6fe8e61063b53746">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>}],
         <<>>,80,1354}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3257@localhost/alice_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.187 ***🔗
REST request:
Code: 200
Req: {<0.86922.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"58bce0933a0845e5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:39:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,870}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3257@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='push5ba6f2a5436fd4cc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='push5f153a3de352fc34' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='push1b3b100255bb6086' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3257@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<presence from='bob_befriend_and_alienate_3257@localhost/res1' to='alice_befriend_and_alienate_3257@localhost/res1'/>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='pushee93334db6666d02' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<presence from='bob_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' type='subscribed'/>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='push4f07333bbd73b361' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<presence from='bob_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' type='subscribe'/>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='pushf1b75def4ca90d9c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<iq from='alice_befriend_and_alienate_3257@localhost' to='alice_befriend_and_alienate_3257@localhost/res1' id='push8ecbc52b506e52af' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3257@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-11 11:39:38.187 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
<presence from='bob_befriend_and_alienate_3257@localhost/res1' to='alice_befriend_and_alienate_3257@localhost/res1' type='unavailable'/>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='pushd0a0fc1fd775af88' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' type='subscribe'/>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='push0251c772d56a9782' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='pushc7a4829cf89b01c8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3257@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost/res1' to='bob_befriend_and_alienate_3257@localhost/res1'/>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='pusha4014a36aa5caf95' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' type='subscribed'/>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost/res1' to='bob_befriend_and_alienate_3257@localhost/res1' type='unavailable'/>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='push8ac3646e3cc52820' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.188 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' type='unsubscribe'/>



*** User 2024-03-11 11:39:43.189 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='push71a02ea36a607d7d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:39:43.189 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<presence from='alice_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' type='unsubscribed'/>



*** User 2024-03-11 11:39:43.189 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
<iq from='bob_befriend_and_alienate_3257@localhost' to='bob_befriend_and_alienate_3257@localhost/res1' id='pusha072cffe3c4beb2e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3257@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-11 11:39:48.189 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:39:48.190 ***🔗
bob_befriend_and_alienate_3257@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:39:48.190 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:39:48.190 ***🔗
alice_befriend_and_alienate_3257@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:39:48.192 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4884.html



=== Ended at 2024-03-11 11:39:48
=== successfully completed test case
=== === Returned value: ok