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

=== Config value:

    [{watchdog,<0.86761.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@d44e762df881.2024-03-18_12.53.29/big_tests.tests.rest_SUITE.logs/run.2024-03-18_13.10.57/rest_suite.befriend_and_alienate.165891.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@d44e762df881.2024-03-18_12.53.29/big_tests.tests.rest_SUITE.logs/run.2024-03-18_13.10.57/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,backend => rdbms,versioning => false,
              store_current_id => false},
        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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,buffer_max => 100,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {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@d44e762df881.2024-03-18_12.53.29"

=== Started at 2024-03-18 13:10:58


*** CT 2024-03-18 13:10:58.200 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4770.html

*** User 2024-03-18 13:10:58.221 ***🔗
alicE_befriend_and_alienate_3416@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-18 13:10:58.221 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ab9c8c8c2b2ef87' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-18 13:10:58.222 ***🔗
alicE_befriend_and_alienate_3416@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-18 13:10:58.222 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zNDE2AG1hdHlncnlzYQ==</auth>



*** User 2024-03-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@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-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b5716965903f6f3' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3416@localhost'>

*** User 2024-03-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@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-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 out
<iq type='set' id='4533bdae8da6488559770927e3514cd9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-18 13:10:58.223 ***🔗
alicE_befriend_and_alienate_3416@localhost/res1 in
<iq id='4533bdae8da6488559770927e3514cd9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3416@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-18 13:10:58.223 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 out
<iq type='set' id='ee1bd005e2e6cc1595db902a48f1aa45'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-18 13:10:58.224 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='ee1bd005e2e6cc1595db902a48f1aa45' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-18 13:10:58.224 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 out
<presence/>



*** User 2024-03-18 13:10:58.226 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost/res1' to='alice_befriend_and_alienate_3416@localhost/res1'/>



*** User 2024-03-18 13:10:58.227 ***🔗
bOb_befriend_and_alienate_3416@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-18 13:10:58.228 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8e506df232b0fbbc' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-18 13:10:58.228 ***🔗
bOb_befriend_and_alienate_3416@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-18 13:10:58.228 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzQxNgBtYWtyb2xpa2E=</auth>



*** User 2024-03-18 13:10:58.229 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-18 13:10:58.229 ***🔗
bOb_befriend_and_alienate_3416@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-18 13:10:58.229 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d66a7de6ee4a6d78' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3416@localhost'>

*** User 2024-03-18 13:10:58.229 ***🔗
bOb_befriend_and_alienate_3416@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-18 13:10:58.229 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 out
<iq type='set' id='365e31b0bc3459831f5f18275e416120'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-18 13:10:58.230 ***🔗
bOb_befriend_and_alienate_3416@localhost/res1 in
<iq id='365e31b0bc3459831f5f18275e416120' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3416@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-18 13:10:58.230 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 out
<iq type='set' id='f6a94ac3072438cce2386132efaa166a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-18 13:10:58.231 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='f6a94ac3072438cce2386132efaa166a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-18 13:10:58.231 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 out
<presence/>



*** User 2024-03-18 13:10:58.233 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='bob_befriend_and_alienate_3416@localhost/res1' to='bob_befriend_and_alienate_3416@localhost/res1'/>



*** User 2024-03-18 13:10:58.235 ***🔗
REST request:
Code: 200
Req: {<0.86874.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"27c20d01f1e22fd7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1844}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.239 ***🔗
REST request:
Code: 200
Req: {<0.86878.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8893b156bf07abfd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2113}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.283 ***🔗
REST request:
Code: 204
Req: {<0.86888.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d45248f6f7f39736">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>}],
         <<>>,80,42640}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.288 ***🔗
REST request:
Code: 204
Req: {<0.86898.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3413db92828e8540">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>}],
         <<>>,80,4329}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.295 ***🔗
REST request:
Code: 204
Req: {<0.86900.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eda3f5643f640d3a">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>}],
         <<>>,80,5060}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.299 ***🔗
REST request:
Code: 200
Req: {<0.86902.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2fefcd840c644492">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}]">>,
         213,2664}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.302 ***🔗
REST request:
Code: 200
Req: {<0.86904.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3df67c4ff23b53d2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}]">>,
         211,2063}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.310 ***🔗
REST request:
Code: 204
Req: {<0.86906.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7fee8a99d20e3756">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>}],
         <<>>,80,7261}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.314 ***🔗
REST request:
Code: 200
Req: {<0.86908.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e436c1bbfd8d0f70">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}]">>,
         210,2109}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.322 ***🔗
REST request:
Code: 204
Req: {<0.86910.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8f9a9e8df2a274d8">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>}],
         <<>>,80,7635}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.327 ***🔗
REST request:
Code: 200
Req: {<0.86916.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bebd34c649bb83f9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}]">>,
         209,3972}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.330 ***🔗
REST request:
Code: 200
Req: {<0.86920.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1c91dc607bd8c258">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}]">>,
         213,1711}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.339 ***🔗
REST request:
Code: 204
Req: {<0.86922.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"745ac0bf2635f2c4">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>}],
         <<>>,80,7695}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.342 ***🔗
REST request:
Code: 200
Req: {<0.86926.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ff68e388ce43f577">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}]">>,
         212,2070}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.378 ***🔗
REST request:
Code: 204
Req: {<0.86930.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a43b21c4b7b47dfb">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>}],
         <<>>,80,35443}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-18 13:10:58.382 ***🔗
REST request:
Code: 200
Req: {<0.86932.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"daf44e862050216f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3416@localhost\"}]">>,
         211,2259}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.385 ***🔗
REST request:
Code: 200
Req: {<0.86934.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c0f2075411bab5a4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}]">>,
         213,2224}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.402 ***🔗
REST request:
Code: 204
Req: {<0.86936.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2e36997825ad9981">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>}],
         <<>>,80,16092}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.405 ***🔗
REST request:
Code: 200
Req: {<0.86938.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"91e7d6ff551ff128">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1979}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.408 ***🔗
REST request:
Code: 200
Req: {<0.86940.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f4af70f21f0cef04">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3416@localhost\"}]">>,
         213,1874}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.414 ***🔗
REST request:
Code: 204
Req: {<0.86942.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8e5cbacbc1c1b673">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>}],
         <<>>,80,4631}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3416@localhost/alice_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.417 ***🔗
REST request:
Code: 200
Req: {<0.86944.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7cc37324731b8376">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 18 Mar 2024 13:10:58 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2033}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3416@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-18 13:10:58.417 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='pushb0572be3c02ceea3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.417 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='pushf79c740367ff5e0e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.417 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='push3211bc58aeeef534' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3416@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<presence from='bob_befriend_and_alienate_3416@localhost/res1' to='alice_befriend_and_alienate_3416@localhost/res1'/>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='push8590c65047d97d53' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<presence from='bob_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' type='subscribed'/>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='pushd6bd56c9d2b0dfa0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<presence from='bob_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' type='subscribe'/>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='push56ecdbb62b0269d0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<iq from='alice_befriend_and_alienate_3416@localhost' to='alice_befriend_and_alienate_3416@localhost/res1' id='pushace3e39c03e8304b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3416@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-18 13:10:58.418 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
<presence from='bob_befriend_and_alienate_3416@localhost/res1' to='alice_befriend_and_alienate_3416@localhost/res1' type='unavailable'/>



*** User 2024-03-18 13:11:03.418 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='pushdf0da74828487a8a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' type='subscribe'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='push89417e68e64ab38b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='push88c2e8b5cf93073a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3416@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost/res1' to='bob_befriend_and_alienate_3416@localhost/res1'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='pushc19a3fbccdf45be1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' type='subscribed'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost/res1' to='bob_befriend_and_alienate_3416@localhost/res1' type='unavailable'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='pusha29cc5a0f1d6e2c6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' type='unsubscribe'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='pushbdf64f460380368a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<presence from='alice_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' type='unsubscribed'/>



*** User 2024-03-18 13:11:03.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
<iq from='bob_befriend_and_alienate_3416@localhost' to='bob_befriend_and_alienate_3416@localhost/res1' id='pushc9e6d26302936d4d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3416@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-18 13:11:08.419 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 out
</stream:stream>

*** User 2024-03-18 13:11:08.420 ***🔗
bob_befriend_and_alienate_3416@localhost/res1 in
</stream:stream>

*** User 2024-03-18 13:11:08.420 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 out
</stream:stream>

*** User 2024-03-18 13:11:08.420 ***🔗
alice_befriend_and_alienate_3416@localhost/res1 in
</stream:stream>
*** CT 2024-03-18 13:11:08.424 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4770.html



=== Ended at 2024-03-18 13:11:08
=== successfully completed test case
=== === Returned value: ok