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

=== Config value:

    [{watchdog,<0.87323.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a353ffbc715a.2024-04-16_10.55.10/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.10.51/rest_suite.befriend_and_alienate.169475.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@a353ffbc715a.2024-04-16_10.55.10/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.10.51/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              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 => mnesia,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@a353ffbc715a.2024-04-16_10.55.10"

=== Started at 2024-04-16 11:10:52


*** CT 2024-04-16 11:10:52.556 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4621.html

*** User 2024-04-16 11:10:52.572 ***🔗
alicE_befriend_and_alienate_3222@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-16 11:10:52.572 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83dbc024f2cf972a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 11:10:52.572 ***🔗
alicE_befriend_and_alienate_3222@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-16 11:10:52.572 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMjIyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 11:10:52.574 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 11:10:52.574 ***🔗
alicE_befriend_and_alienate_3222@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-16 11:10:52.574 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6faebfadf6922cc6' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3222@localhost'>

*** User 2024-04-16 11:10:52.574 ***🔗
alicE_befriend_and_alienate_3222@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-16 11:10:52.574 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 out
<iq type='set' id='f11a0ae6f0d6dea192e862123503fd90'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 11:10:52.575 ***🔗
alicE_befriend_and_alienate_3222@localhost/res1 in
<iq id='f11a0ae6f0d6dea192e862123503fd90' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3222@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 11:10:52.575 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 out
<iq type='set' id='6d764e487bac32d6ef5f3fda7fa5caee'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:10:52.576 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='6d764e487bac32d6ef5f3fda7fa5caee' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:10:52.576 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 out
<presence/>



*** User 2024-04-16 11:10:52.579 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost/res1' to='alice_befriend_and_alienate_3222@localhost/res1'/>



*** User 2024-04-16 11:10:52.580 ***🔗
bOb_befriend_and_alienate_3222@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-16 11:10:52.580 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9cd6aa888d0fa523' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 11:10:52.580 ***🔗
bOb_befriend_and_alienate_3222@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-16 11:10:52.580 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzIyMgBtYWtyb2xpa2E=</auth>



*** User 2024-04-16 11:10:52.582 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 11:10:52.582 ***🔗
bOb_befriend_and_alienate_3222@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-16 11:10:52.582 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='79731a96b202615b' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3222@localhost'>

*** User 2024-04-16 11:10:52.582 ***🔗
bOb_befriend_and_alienate_3222@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-16 11:10:52.582 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 out
<iq type='set' id='059723fdc4cc7c0034729a8fa0cba0f7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 11:10:52.583 ***🔗
bOb_befriend_and_alienate_3222@localhost/res1 in
<iq id='059723fdc4cc7c0034729a8fa0cba0f7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3222@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 11:10:52.583 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 out
<iq type='set' id='6e64b8c8fff3fecf6991114d7c53686b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:10:52.584 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='6e64b8c8fff3fecf6991114d7c53686b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:10:52.584 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 out
<presence/>



*** User 2024-04-16 11:10:52.590 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='bob_befriend_and_alienate_3222@localhost/res1' to='bob_befriend_and_alienate_3222@localhost/res1'/>



*** User 2024-04-16 11:10:52.597 ***🔗
REST request:
Code: 200
Req: {<0.87438.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"29334302f0e05d3f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2936}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.601 ***🔗
REST request:
Code: 200
Req: {<0.87448.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49892c634f6bcfd1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2534}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.608 ***🔗
REST request:
Code: 204
Req: {<0.87455.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3f62c0f42df60a17">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,5338}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.614 ***🔗
REST request:
Code: 204
Req: {<0.87460.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"382f341698e8af7d">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,4797}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.619 ***🔗
REST request:
Code: 204
Req: {<0.87462.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5fa4f4e995ef2012">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,4621}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.623 ***🔗
REST request:
Code: 200
Req: {<0.87464.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8507fde58d332a4a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}]">>,
         213,1970}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.626 ***🔗
REST request:
Code: 200
Req: {<0.87466.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97a417b11df6450d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}]">>,
         211,2108}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.648 ***🔗
REST request:
Code: 204
Req: {<0.87468.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a1e33c4bbde1249f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,19937}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.651 ***🔗
REST request:
Code: 200
Req: {<0.87470.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8334e06bf7720577">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}]">>,
         210,2133}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.677 ***🔗
REST request:
Code: 204
Req: {<0.87472.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"216136ecfb5489f4">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,25166}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.682 ***🔗
REST request:
Code: 200
Req: {<0.87480.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8fa5824cf0599f9a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}]">>,
         209,3564}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.686 ***🔗
REST request:
Code: 200
Req: {<0.87482.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df295a796e5460c0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}]">>,
         213,3086}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.694 ***🔗
REST request:
Code: 204
Req: {<0.87484.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c21c311333b909ec">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,6630}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.697 ***🔗
REST request:
Code: 200
Req: {<0.87488.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8a490c940b3498d4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}]">>,
         212,1825}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.705 ***🔗
REST request:
Code: 204
Req: {<0.87492.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bce92035331f57dc">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,6485}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:10:52.708 ***🔗
REST request:
Code: 200
Req: {<0.87494.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a950cbd5a1514627">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3222@localhost\"}]">>,
         211,2088}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.712 ***🔗
REST request:
Code: 200
Req: {<0.87496.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d3711bc2c4282baf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}]">>,
         213,2127}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.725 ***🔗
REST request:
Code: 204
Req: {<0.87498.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"44da3e689e556e77">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,11591}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.728 ***🔗
REST request:
Code: 200
Req: {<0.87500.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cb3f7c9325a7b7c2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2113}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.731 ***🔗
REST request:
Code: 200
Req: {<0.87502.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"88cb7523f4eea459">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3222@localhost\"}]">>,
         213,2089}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.736 ***🔗
REST request:
Code: 204
Req: {<0.87504.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"946dbd7f37986ed1">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>}],
         <<>>,80,3667}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3222@localhost/alice_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.740 ***🔗
REST request:
Code: 200
Req: {<0.87506.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"055f9105de9b7f90">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:10:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2211}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3222@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='pushb1081a08418614d0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='push01be88b0300df068' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='pushc05ad1c16e0bf5aa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3222@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<presence from='bob_befriend_and_alienate_3222@localhost/res1' to='alice_befriend_and_alienate_3222@localhost/res1'/>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='push72d0348f11995954' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<presence from='bob_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' type='subscribed'/>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='pushbd163fc23ba33de3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<presence from='bob_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' type='subscribe'/>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='pushceb47796f293c114' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<iq from='alice_befriend_and_alienate_3222@localhost' to='alice_befriend_and_alienate_3222@localhost/res1' id='pushcb0101d6ef7d7c35' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3222@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 11:10:52.740 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
<presence from='bob_befriend_and_alienate_3222@localhost/res1' to='alice_befriend_and_alienate_3222@localhost/res1' type='unavailable'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='pushaa72e5b82bb027b1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' type='subscribe'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='pushe0e4257ea6b6a303' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='pushf18beb5ec7447506' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3222@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost/res1' to='bob_befriend_and_alienate_3222@localhost/res1'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='pushb6914cf1c5ff4aaa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' type='subscribed'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost/res1' to='bob_befriend_and_alienate_3222@localhost/res1' type='unavailable'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='pushe0eb4a83221aac0a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' type='unsubscribe'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='push334d1e0be240d8ac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<presence from='alice_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' type='unsubscribed'/>



*** User 2024-04-16 11:10:57.741 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
<iq from='bob_befriend_and_alienate_3222@localhost' to='bob_befriend_and_alienate_3222@localhost/res1' id='push9337b224fd466cbe' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3222@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 11:11:02.742 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 out
</stream:stream>

*** User 2024-04-16 11:11:02.742 ***🔗
bob_befriend_and_alienate_3222@localhost/res1 in
</stream:stream>

*** User 2024-04-16 11:11:02.742 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 out
</stream:stream>

*** User 2024-04-16 11:11:02.742 ***🔗
alice_befriend_and_alienate_3222@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 11:11:02.745 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4640.html



=== Ended at 2024-04-16 11:11:02
=== successfully completed test case
=== === Returned value: ok