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

=== Config value:

    [{watchdog,<0.81955.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_SUITE.logs/run.2024-04-18_11.09.55/rest_suite.befriend_and_alienate.62085.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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.rest_SUITE.logs/run.2024-04-18_11.09.55/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_sic => #{iqdisc => one_queue},
        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_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,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_bosh =>
            #{backend => cets,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        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@2ed2b07c4324.2024-04-18_10.56.18"

=== Started at 2024-04-18 11:09:56


*** CT 2024-04-18 11:09:56.193 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5569.html

*** User 2024-04-18 11:09:56.207 ***🔗
alicE_befriend_and_alienate_2960@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-18 11:09:56.207 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='73ce0080c2528251' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-18 11:09:56.208 ***🔗
alicE_befriend_and_alienate_2960@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-18 11:09:56.208 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTYwAG1hdHlncnlzYQ==</auth>



*** User 2024-04-18 11:09:56.209 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-18 11:09:56.209 ***🔗
alicE_befriend_and_alienate_2960@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-18 11:09:56.209 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='858e9be7ecb578c0' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2960@localhost'>

*** User 2024-04-18 11:09:56.209 ***🔗
alicE_befriend_and_alienate_2960@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-18 11:09:56.210 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 out
<iq type='set' id='bb2802e10615a372912478acb18157da'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-18 11:09:56.210 ***🔗
alicE_befriend_and_alienate_2960@localhost/res1 in
<iq id='bb2802e10615a372912478acb18157da' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2960@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-18 11:09:56.210 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 out
<iq type='set' id='a48628e3806a684ec14583765f6f1b22'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:09:56.211 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='a48628e3806a684ec14583765f6f1b22' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:09:56.211 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 out
<presence/>



*** User 2024-04-18 11:09:56.212 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost/res1' to='alice_befriend_and_alienate_2960@localhost/res1'/>



*** User 2024-04-18 11:09:56.213 ***🔗
bOb_befriend_and_alienate_2960@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-18 11:09:56.213 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36a8d02e103090a6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-18 11:09:56.214 ***🔗
bOb_befriend_and_alienate_2960@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-18 11:09:56.214 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk2MABtYWtyb2xpa2E=</auth>



*** User 2024-04-18 11:09:56.214 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-18 11:09:56.214 ***🔗
bOb_befriend_and_alienate_2960@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-18 11:09:56.214 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43aa5b460f9933b6' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2960@localhost'>

*** User 2024-04-18 11:09:56.215 ***🔗
bOb_befriend_and_alienate_2960@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-18 11:09:56.215 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 out
<iq type='set' id='c5774127770d782c1c7e4d3750274f2f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-18 11:09:56.215 ***🔗
bOb_befriend_and_alienate_2960@localhost/res1 in
<iq id='c5774127770d782c1c7e4d3750274f2f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2960@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-18 11:09:56.215 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 out
<iq type='set' id='badc68c519c0bb6009350d3e9fa3d429'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:09:56.216 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='badc68c519c0bb6009350d3e9fa3d429' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-18 11:09:56.216 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 out
<presence/>



*** User 2024-04-18 11:09:56.217 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='bob_befriend_and_alienate_2960@localhost/res1' to='bob_befriend_and_alienate_2960@localhost/res1'/>



*** User 2024-04-18 11:09:56.219 ***🔗
REST request:
Code: 200
Req: {<0.82055.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d0fe06a0864d5a4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1408}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.222 ***🔗
REST request:
Code: 200
Req: {<0.82066.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97619b52da661dae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1182}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.225 ***🔗
REST request:
Code: 204
Req: {<0.82076.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e0aff028a1715fd">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2559}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.228 ***🔗
REST request:
Code: 204
Req: {<0.82086.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b70bdfcf853a21af">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2485}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.231 ***🔗
REST request:
Code: 204
Req: {<0.82091.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18ac50931b87da6b">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2037}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.233 ***🔗
REST request:
Code: 200
Req: {<0.82096.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5b0f281241bca496">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}]">>,
         213,840}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.235 ***🔗
REST request:
Code: 200
Req: {<0.82098.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d04c8db048ac312a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}]">>,
         211,871}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.238 ***🔗
REST request:
Code: 204
Req: {<0.82100.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7433aad1b8648fb3">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2505}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.248 ***🔗
REST request:
Code: 200
Req: {<0.82102.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6256916484d9ce10">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}]">>,
         210,9570}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.252 ***🔗
REST request:
Code: 204
Req: {<0.82106.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3a53c7cdb02408eb">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2871}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.254 ***🔗
REST request:
Code: 200
Req: {<0.82110.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"95599690019394cd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}]">>,
         209,908}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.255 ***🔗
REST request:
Code: 200
Req: {<0.82114.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8c3d3c428380272">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}]">>,
         213,946}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.259 ***🔗
REST request:
Code: 204
Req: {<0.82116.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f97b18e7144a554">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,3383}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.261 ***🔗
REST request:
Code: 200
Req: {<0.82120.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d85b8c6c26f4b007">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}]">>,
         212,885}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.264 ***🔗
REST request:
Code: 204
Req: {<0.82124.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9eac45edd294181b">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,2602}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-18 11:09:56.266 ***🔗
REST request:
Code: 200
Req: {<0.82126.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3af3ccd21bae9ac2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2960@localhost\"}]">>,
         211,957}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.267 ***🔗
REST request:
Code: 200
Req: {<0.82128.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"34ea2eee0fa3b9c6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}]">>,
         213,952}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.273 ***🔗
REST request:
Code: 204
Req: {<0.82130.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b1964c4062dcd19">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,5205}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.275 ***🔗
REST request:
Code: 200
Req: {<0.82132.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a54547dfcd600d28">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,814}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.277 ***🔗
REST request:
Code: 200
Req: {<0.82134.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f90c62ed713b853">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2960@localhost\"}]">>,
         213,954}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.279 ***🔗
REST request:
Code: 204
Req: {<0.82136.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fd7380e4017a82c9">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>}],
         <<>>,80,1216}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2960@localhost/alice_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.280 ***🔗
REST request:
Code: 200
Req: {<0.82138.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4781cb15c4cdef3e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 18 Apr 2024 11:09:55 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,876}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2960@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-18 11:09:56.280 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='pushe899a53c07e7b3f0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.280 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='pushdab1f2873cc547fe' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.280 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='pushc944096d93d70524' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2960@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.280 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<presence from='bob_befriend_and_alienate_2960@localhost/res1' to='alice_befriend_and_alienate_2960@localhost/res1'/>



*** User 2024-04-18 11:09:56.280 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='push6661961fd0e30677' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<presence from='bob_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' type='subscribed'/>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='push21c2496b4e5f5fc3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<presence from='bob_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' type='subscribe'/>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='push0268ce4d6b794562' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<iq from='alice_befriend_and_alienate_2960@localhost' to='alice_befriend_and_alienate_2960@localhost/res1' id='pushba02c944a8070b3f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2960@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-18 11:09:56.281 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
<presence from='bob_befriend_and_alienate_2960@localhost/res1' to='alice_befriend_and_alienate_2960@localhost/res1' type='unavailable'/>



*** User 2024-04-18 11:10:01.281 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='pushce9613ca342370e1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.281 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' type='subscribe'/>



*** User 2024-04-18 11:10:01.281 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push2200e35293dbff4d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.281 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push397ae4d8993c45cb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2960@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.281 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost/res1' to='bob_befriend_and_alienate_2960@localhost/res1'/>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push6dbfd6dcb0421f1c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' type='subscribed'/>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost/res1' to='bob_befriend_and_alienate_2960@localhost/res1' type='unavailable'/>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push7cf58470ef043115' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' type='unsubscribe'/>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push60b0d8b572515186' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<presence from='alice_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' type='unsubscribed'/>



*** User 2024-04-18 11:10:01.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
<iq from='bob_befriend_and_alienate_2960@localhost' to='bob_befriend_and_alienate_2960@localhost/res1' id='push0e5d9239a8f05ad6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2960@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-18 11:10:06.282 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 out
</stream:stream>

*** User 2024-04-18 11:10:06.283 ***🔗
bob_befriend_and_alienate_2960@localhost/res1 in
</stream:stream>

*** User 2024-04-18 11:10:06.283 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 out
</stream:stream>

*** User 2024-04-18 11:10:06.283 ***🔗
alice_befriend_and_alienate_2960@localhost/res1 in
</stream:stream>
*** CT 2024-04-18 11:10:06.285 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5569.html



=== Ended at 2024-04-18 11:10:06
=== successfully completed test case
=== === Returned value: ok