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

=== Config value:

    [{watchdog,<0.80424.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@567ce96ed226.2024-04-25_14.56.57/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.10.26/rest_suite.befriend_and_alienate.155011.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@567ce96ed226.2024-04-25_14.56.57/big_tests.tests.rest_SUITE.logs/run.2024-04-25_15.10.26/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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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_bosh =>
            #{backend => cets,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@567ce96ed226.2024-04-25_14.56.57"

=== Started at 2024-04-25 15:10:27


*** CT 2024-04-25 15:10:27.009 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4544.html

*** User 2024-04-25 15:10:27.028 ***🔗
alicE_befriend_and_alienate_2935@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-25 15:10:27.029 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='99b03d775517ec82' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 15:10:27.029 ***🔗
alicE_befriend_and_alienate_2935@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-25 15:10:27.029 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTM1AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 15:10:27.031 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 15:10:27.031 ***🔗
alicE_befriend_and_alienate_2935@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-25 15:10:27.031 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30c84e007cd35ed5' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2935@localhost'>

*** User 2024-04-25 15:10:27.031 ***🔗
alicE_befriend_and_alienate_2935@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-25 15:10:27.031 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 out
<iq type='set' id='2f19288b1c4c5772d06c66489e0703d0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 15:10:27.032 ***🔗
alicE_befriend_and_alienate_2935@localhost/res1 in
<iq id='2f19288b1c4c5772d06c66489e0703d0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2935@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 15:10:27.032 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 out
<iq type='set' id='b4724185bbe7d0083ff31784d9633c12'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:10:27.033 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='b4724185bbe7d0083ff31784d9633c12' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:10:27.033 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 out
<presence/>



*** User 2024-04-25 15:10:27.036 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost/res1' to='alice_befriend_and_alienate_2935@localhost/res1'/>



*** User 2024-04-25 15:10:27.036 ***🔗
bOb_befriend_and_alienate_2935@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-25 15:10:27.036 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a23a934686dc553' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 15:10:27.037 ***🔗
bOb_befriend_and_alienate_2935@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-25 15:10:27.037 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkzNQBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 15:10:27.038 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 15:10:27.038 ***🔗
bOb_befriend_and_alienate_2935@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-25 15:10:27.039 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e44295ebde6f0bf' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2935@localhost'>

*** User 2024-04-25 15:10:27.039 ***🔗
bOb_befriend_and_alienate_2935@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-25 15:10:27.039 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 out
<iq type='set' id='ea9d8fd94b15472c6e91d8a7663c867f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 15:10:27.039 ***🔗
bOb_befriend_and_alienate_2935@localhost/res1 in
<iq id='ea9d8fd94b15472c6e91d8a7663c867f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2935@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 15:10:27.039 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 out
<iq type='set' id='4c259fcb5d82073db5f68ff7cf318f47'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:10:27.040 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='4c259fcb5d82073db5f68ff7cf318f47' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:10:27.040 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 out
<presence/>



*** User 2024-04-25 15:10:27.042 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='bob_befriend_and_alienate_2935@localhost/res1' to='bob_befriend_and_alienate_2935@localhost/res1'/>



*** User 2024-04-25 15:10:27.050 ***🔗
REST request:
Code: 200
Req: {<0.80530.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8320dd4e239ac9f3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,6699}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.053 ***🔗
REST request:
Code: 200
Req: {<0.80547.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ab5ee0d1359b14f3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2037}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.082 ***🔗
REST request:
Code: 204
Req: {<0.80551.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"da67e97015e53822">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,26464}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:10:27.095 ***🔗
REST request:
Code: 204
Req: {<0.80561.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f403b538ab7ea777">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,12147}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:10:27.100 ***🔗
REST request:
Code: 204
Req: {<0.80563.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c42d06d9e87a8b1c">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,3128}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:10:27.109 ***🔗
REST request:
Code: 200
Req: {<0.80565.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4b368967d27db007">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}]">>,
         213,8616}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.112 ***🔗
REST request:
Code: 200
Req: {<0.80567.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d1a0e432ee220335">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}]">>,
         211,1278}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.116 ***🔗
REST request:
Code: 204
Req: {<0.80569.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"37bfe7176cb2e152">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,3283}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 15:10:27.118 ***🔗
REST request:
Code: 200
Req: {<0.80571.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"40bd4169f43fb855">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}]">>,
         210,1270}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.123 ***🔗
REST request:
Code: 204
Req: {<0.80575.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96016bff9da9e35e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,3516}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 15:10:27.125 ***🔗
REST request:
Code: 200
Req: {<0.80581.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"23c12d603427e79e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}]">>,
         209,1138}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.127 ***🔗
REST request:
Code: 200
Req: {<0.80583.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"829a67e696eb2525">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}]">>,
         213,1486}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.131 ***🔗
REST request:
Code: 204
Req: {<0.80585.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2c1fed1b21cc5ccd">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,3335}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 15:10:27.134 ***🔗
REST request:
Code: 200
Req: {<0.80589.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a95c5ca3a1b3f8c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}]">>,
         212,1752}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.139 ***🔗
REST request:
Code: 204
Req: {<0.80593.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"564235c4d96a100e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,4314}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-25 15:10:27.142 ***🔗
REST request:
Code: 200
Req: {<0.80595.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"67a2c53a085f777d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2935@localhost\"}]">>,
         211,1756}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.145 ***🔗
REST request:
Code: 200
Req: {<0.80597.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f3361daa0b84067">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}]">>,
         213,1643}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.154 ***🔗
REST request:
Code: 204
Req: {<0.80599.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f0e6149245d13f2">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,7295}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.157 ***🔗
REST request:
Code: 200
Req: {<0.80601.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3906a5f350a1c0d9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1600}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.160 ***🔗
REST request:
Code: 200
Req: {<0.80603.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"78b0a8909fd8a09b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2935@localhost\"}]">>,
         213,1705}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.165 ***🔗
REST request:
Code: 204
Req: {<0.80605.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8820228fc186831f">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>}],
         <<>>,80,3978}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2935@localhost/alice_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.168 ***🔗
REST request:
Code: 200
Req: {<0.80607.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"06ec251e9fffcb4b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:10:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1695}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2935@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='pusha8837c48d7459e7a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='pushb989081ddd54e58b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='push22d2e25f59d4fe00' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2935@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<presence from='bob_befriend_and_alienate_2935@localhost/res1' to='alice_befriend_and_alienate_2935@localhost/res1'/>



*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='push1f82f48886791051' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.168 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<presence from='bob_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' type='subscribed'/>



*** User 2024-04-25 15:10:27.169 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='push5c891b61a2133e3b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.169 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<presence from='bob_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' type='subscribe'/>



*** User 2024-04-25 15:10:27.169 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='pushe854cea19211ffc5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.169 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<iq from='alice_befriend_and_alienate_2935@localhost' to='alice_befriend_and_alienate_2935@localhost/res1' id='push7af6b1011b69bff2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2935@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 15:10:27.169 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
<presence from='bob_befriend_and_alienate_2935@localhost/res1' to='alice_befriend_and_alienate_2935@localhost/res1' type='unavailable'/>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push5ed6b0b9831a6d51' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' type='subscribe'/>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push97f9e335f549bf24' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push53692835ff883538' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2935@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost/res1' to='bob_befriend_and_alienate_2935@localhost/res1'/>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push0db35b04b8f0a6a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.169 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' type='subscribed'/>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost/res1' to='bob_befriend_and_alienate_2935@localhost/res1' type='unavailable'/>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push9cd7182db568b9d3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' type='unsubscribe'/>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='push7abfe3075f789997' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<presence from='alice_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' type='unsubscribed'/>



*** User 2024-04-25 15:10:32.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
<iq from='bob_befriend_and_alienate_2935@localhost' to='bob_befriend_and_alienate_2935@localhost/res1' id='pushbd45d71e8a5b6aa9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2935@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 15:10:37.170 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 out
</stream:stream>

*** User 2024-04-25 15:10:37.171 ***🔗
bob_befriend_and_alienate_2935@localhost/res1 in
</stream:stream>

*** User 2024-04-25 15:10:37.171 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 out
</stream:stream>

*** User 2024-04-25 15:10:37.171 ***🔗
alice_befriend_and_alienate_2935@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 15:10:37.174 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4563.html



=== Ended at 2024-04-25 15:10:37
=== successfully completed test case
=== === Returned value: ok