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

=== Config value:

    [{watchdog,<0.73583.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.rest_SUITE.logs/run.2024-02-26_15.55.15/rest_suite.befriend_and_alienate.96644.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@c558b6ad2bd8.2024-02-26_15.40.27/big_tests.tests.rest_SUITE.logs/run.2024-02-26_15.55.15/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_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,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@c558b6ad2bd8.2024-02-26_15.40.27"

=== Started at 2024-02-26 15:55:16


*** CT 2024-02-26 15:55:16.442 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2615.html

*** User 2024-02-26 15:55:16.463 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 15:55:16.464 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8c2edf9ad58b6854' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 15:55:16.464 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/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-02-26 15:55:16.464 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODc4AG1hdHlncnlzYQ==</auth>



*** User 2024-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96ecd3587df048f6' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2878@domain.example.com'>

*** User 2024-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/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-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 out
<iq type='set' id='b8bb6c4adee0a8e97253af7123280e17'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 15:55:16.466 ***🔗
alicE_befriend_and_alienate_2878@domain.example.com/res1 in
<iq id='b8bb6c4adee0a8e97253af7123280e17' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2878@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 15:55:16.466 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 out
<iq type='set' id='180dc961146e342086ab88465e50beb4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:16.467 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='180dc961146e342086ab88465e50beb4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:16.467 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 15:55:16.469 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com/res1' to='alice_befriend_and_alienate_2878@domain.example.com/res1'/>



*** User 2024-02-26 15:55:16.469 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 15:55:16.469 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2878dca13bd2405c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-26 15:55:16.470 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/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-02-26 15:55:16.470 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg3OABtYWtyb2xpa2E=</auth>



*** User 2024-02-26 15:55:16.471 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-26 15:55:16.471 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-02-26 15:55:16.471 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='18bb0843c396550e' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2878@domain.example.com'>

*** User 2024-02-26 15:55:16.471 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/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-02-26 15:55:16.471 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 out
<iq type='set' id='078e9380747791aa2b27b8e6b07b11dc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-26 15:55:16.472 ***🔗
bOb_befriend_and_alienate_2878@domain.example.com/res1 in
<iq id='078e9380747791aa2b27b8e6b07b11dc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2878@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-26 15:55:16.472 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 out
<iq type='set' id='830de0e69bf2a3d5545ddd3c67f8c29c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:16.472 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='830de0e69bf2a3d5545ddd3c67f8c29c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-26 15:55:16.472 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 out
<presence/>



*** User 2024-02-26 15:55:16.474 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2878@domain.example.com/res1' to='bob_befriend_and_alienate_2878@domain.example.com/res1'/>



*** User 2024-02-26 15:55:16.477 ***🔗
REST request:
Code: 200
Req: {<0.73692.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d4362d614b43043e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1851}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.480 ***🔗
REST request:
Code: 200
Req: {<0.73698.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"92a47e7ee947f468">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2173}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.487 ***🔗
REST request:
Code: 204
Req: {<0.73708.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd1d6d5fa191f6c0">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,5619}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.492 ***🔗
REST request:
Code: 204
Req: {<0.73720.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ccecb1b66b1a180f">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,4214}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.496 ***🔗
REST request:
Code: 204
Req: {<0.73722.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"520ee58b377f29da">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,3300}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.499 ***🔗
REST request:
Code: 200
Req: {<0.73724.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e48bbe072baa9003">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}]">>,
         222,1514}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.504 ***🔗
REST request:
Code: 200
Req: {<0.73726.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f3d39b76e8a3e10">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}]">>,
         220,4196}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.512 ***🔗
REST request:
Code: 204
Req: {<0.73728.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5eeb592e59aa3f3f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,6515}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.517 ***🔗
REST request:
Code: 200
Req: {<0.73730.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b37142ac40bb2c9c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}]">>,
         219,3463}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.523 ***🔗
REST request:
Code: 204
Req: {<0.73732.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"486231011687d5cd">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,4929}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.525 ***🔗
REST request:
Code: 200
Req: {<0.73736.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"af075f4a08389d0f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}]">>,
         218,1551}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.528 ***🔗
REST request:
Code: 200
Req: {<0.73740.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"685c5f77a4550c5f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}]">>,
         222,1844}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.534 ***🔗
REST request:
Code: 204
Req: {<0.73744.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96dbbb90b6d0b897">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,5140}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.537 ***🔗
REST request:
Code: 200
Req: {<0.73746.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7823503cc95b170c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}]">>,
         221,1579}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.543 ***🔗
REST request:
Code: 204
Req: {<0.73748.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a48a09e429499ba3">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,5429}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-26 15:55:16.551 ***🔗
REST request:
Code: 200
Req: {<0.73754.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2203d7713fd2b378">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2878@domain.example.com\"}]">>,
         220,7521}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.555 ***🔗
REST request:
Code: 200
Req: {<0.73756.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"091ee7bf5013f589">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}]">>,
         222,2399}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.594 ***🔗
REST request:
Code: 204
Req: {<0.73758.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce58a01f6490654c">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,38080}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.597 ***🔗
REST request:
Code: 200
Req: {<0.73760.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1dab05897ae34369">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1862}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.600 ***🔗
REST request:
Code: 200
Req: {<0.73762.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"be7d2623aface1ae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2878@domain.example.com\"}]">>,
         222,1979}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.604 ***🔗
REST request:
Code: 204
Req: {<0.73764.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"491542716ffe980c">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>}],
         <<>>,80,2816}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com/alice_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.607 ***🔗
REST request:
Code: 200
Req: {<0.73766.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fc539df0ee0f2c5b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 26 Feb 2024 15:55:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1689}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2878@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push17ad30bd07fec56c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='pushd3a3c4e8fa8f1385' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push4728ccfe19945fdb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2878@domain.example.com/res1' to='alice_befriend_and_alienate_2878@domain.example.com/res1'/>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push188814f3aba06e1b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push6792d03110d4ddfc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push0c239c472e91dbb2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2878@domain.example.com' to='alice_befriend_and_alienate_2878@domain.example.com/res1' id='push62e831ba2b366a89' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2878@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-02-26 15:55:16.607 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2878@domain.example.com/res1' to='alice_befriend_and_alienate_2878@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push4dec91790de76851' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push3b47dba73462ef66' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push850e27611eb789e5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com/res1' to='bob_befriend_and_alienate_2878@domain.example.com/res1'/>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push0d259d2b26b79e18' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-26 15:55:21.608 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com/res1' to='bob_befriend_and_alienate_2878@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-26 15:55:21.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push8306e12e63d429eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-02-26 15:55:21.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push40ae8eaa884384fb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-02-26 15:55:21.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-02-26 15:55:21.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2878@domain.example.com' to='bob_befriend_and_alienate_2878@domain.example.com/res1' id='push5e1a585172a69190' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2878@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-02-26 15:55:26.609 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 15:55:26.610 ***🔗
bob_befriend_and_alienate_2878@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-26 15:55:26.610 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-26 15:55:26.610 ***🔗
alice_befriend_and_alienate_2878@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-26 15:55:26.613 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2634.html



=== Ended at 2024-02-26 15:55:26
=== successfully completed test case
=== === Returned value: ok