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

=== Config value:

    [{watchdog,<0.75904.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@b5acae24de23.2024-03-21_07.35.24/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.49.36/rest_suite.befriend_and_alienate.88708.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@b5acae24de23.2024-03-21_07.35.24/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.49.36/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_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_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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"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@b5acae24de23.2024-03-21_07.35.24"

=== Started at 2024-03-21 07:49:37


*** CT 2024-03-21 07:49:37.864 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3649.html

*** User 2024-03-21 07:49:37.996 ***🔗
alicE_befriend_and_alienate_2985@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-03-21 07:49:37.996 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='031dbc1c48a8ba95' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:37.996 ***🔗
alicE_befriend_and_alienate_2985@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-03-21 07:49:37.996 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTg1AG1hdHlncnlzYQ==</auth>



*** User 2024-03-21 07:49:37.997 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:37.998 ***🔗
alicE_befriend_and_alienate_2985@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-03-21 07:49:37.998 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3a7c7f9edcdb09c' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2985@domain.example.com'>

*** User 2024-03-21 07:49:37.998 ***🔗
alicE_befriend_and_alienate_2985@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-03-21 07:49:37.998 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 out
<iq type='set' id='38759bc776df63a34dbdfd075ccecdd3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:37.998 ***🔗
alicE_befriend_and_alienate_2985@domain.example.com/res1 in
<iq id='38759bc776df63a34dbdfd075ccecdd3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2985@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:37.998 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 out
<iq type='set' id='1b540cfa52cdb2710bc09389981a6bd8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:37.999 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='1b540cfa52cdb2710bc09389981a6bd8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:37.999 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 out
<presence/>



*** User 2024-03-21 07:49:38.001 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com/res1' to='alice_befriend_and_alienate_2985@domain.example.com/res1'/>



*** User 2024-03-21 07:49:38.002 ***🔗
bOb_befriend_and_alienate_2985@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-03-21 07:49:38.002 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4225fd3db91861f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:49:38.002 ***🔗
bOb_befriend_and_alienate_2985@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-03-21 07:49:38.003 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk4NQBtYWtyb2xpa2E=</auth>



*** User 2024-03-21 07:49:38.004 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:49:38.004 ***🔗
bOb_befriend_and_alienate_2985@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-03-21 07:49:38.004 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='863a927f574c7da9' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2985@domain.example.com'>

*** User 2024-03-21 07:49:38.004 ***🔗
bOb_befriend_and_alienate_2985@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-03-21 07:49:38.004 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 out
<iq type='set' id='29d3d7c41319ad814ed229fb0819f201'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:49:38.005 ***🔗
bOb_befriend_and_alienate_2985@domain.example.com/res1 in
<iq id='29d3d7c41319ad814ed229fb0819f201' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2985@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:49:38.005 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 out
<iq type='set' id='6aed4ca724920b46f90122b0974dc77c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:38.005 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='6aed4ca724920b46f90122b0974dc77c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:49:38.005 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 out
<presence/>



*** User 2024-03-21 07:49:38.008 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2985@domain.example.com/res1' to='bob_befriend_and_alienate_2985@domain.example.com/res1'/>



*** User 2024-03-21 07:49:38.011 ***🔗
REST request:
Code: 200
Req: {<0.76029.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aedfc047aa79b8f9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2144}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.017 ***🔗
REST request:
Code: 200
Req: {<0.76032.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac6d3b9aca04ee36">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2390}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.036 ***🔗
REST request:
Code: 204
Req: {<0.76034.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b2417817171e848d">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,17338}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.081 ***🔗
REST request:
Code: 204
Req: {<0.76041.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0d0740de988c136a">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,43799}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.116 ***🔗
REST request:
Code: 204
Req: {<0.76043.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"617d4ddd294a13b7">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,33960}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.129 ***🔗
REST request:
Code: 200
Req: {<0.76045.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"604949b6a1f48b05">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}]">>,
         222,11815}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.148 ***🔗
REST request:
Code: 200
Req: {<0.76047.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8af631f32eebb109">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}]">>,
         220,17857}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.240 ***🔗
REST request:
Code: 204
Req: {<0.76049.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe9f3986821ef6cb">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,89856}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.284 ***🔗
REST request:
Code: 200
Req: {<0.76051.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a78f99ab246c6646">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}]">>,
         219,43149}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.353 ***🔗
REST request:
Code: 204
Req: {<0.76053.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f48749c26ea8aa5">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,67047}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.357 ***🔗
REST request:
Code: 200
Req: {<0.76061.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4baba597aa080005">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}]">>,
         218,2218}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.361 ***🔗
REST request:
Code: 200
Req: {<0.76063.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"762c3d550cb84e7e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}]">>,
         222,2473}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.401 ***🔗
REST request:
Code: 204
Req: {<0.76065.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5a4e40a1fae3ba8f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,38744}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.405 ***🔗
REST request:
Code: 200
Req: {<0.76067.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b33f382466c6a0cf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}]">>,
         221,2448}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.454 ***🔗
REST request:
Code: 204
Req: {<0.76069.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7a5bd41fc325f99b">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,48441}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-03-21 07:49:38.458 ***🔗
REST request:
Code: 200
Req: {<0.76073.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb8bc235c101dc8d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2985@domain.example.com\"}]">>,
         220,2252}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.461 ***🔗
REST request:
Code: 200
Req: {<0.76077.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a28e3b0342e59496">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}]">>,
         222,2293}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.536 ***🔗
REST request:
Code: 204
Req: {<0.76079.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"741e1f6578da7898">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,72668}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.540 ***🔗
REST request:
Code: 200
Req: {<0.76081.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b439ac1ef4b4c531">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2459}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.544 ***🔗
REST request:
Code: 200
Req: {<0.76083.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f1186841ead5484e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2985@domain.example.com\"}]">>,
         222,2722}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.563 ***🔗
REST request:
Code: 204
Req: {<0.76085.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"868f0127c0be6d70">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>}],
         <<>>,80,18243}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com/alice_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.567 ***🔗
REST request:
Code: 200
Req: {<0.76087.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"34c0feeedf4f48c0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:49:37 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2557}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2985@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='push93d51a9c15de5995' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='pushe21b4aadbf82f9a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='pushd8373417253560e7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2985@domain.example.com/res1' to='alice_befriend_and_alienate_2985@domain.example.com/res1'/>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='push7867229436e62e3d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' type='subscribed'/>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='push7c5a268a11856646' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' type='subscribe'/>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='push0bbede8bb7699648' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2985@domain.example.com' to='alice_befriend_and_alienate_2985@domain.example.com/res1' id='push4c01f2ae86c55d8f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2985@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 07:49:38.568 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2985@domain.example.com/res1' to='alice_befriend_and_alienate_2985@domain.example.com/res1' type='unavailable'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='push116ecc4cdb0b72ae' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' type='subscribe'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='pushd68b347a813fb4c1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='push10e74742942490a8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com/res1' to='bob_befriend_and_alienate_2985@domain.example.com/res1'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='push654bb49e0a39b502' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' type='subscribed'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com/res1' to='bob_befriend_and_alienate_2985@domain.example.com/res1' type='unavailable'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='pushba1c8bb4b773c638' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='pusha3812ee5cbae5a64' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-03-21 07:49:43.569 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2985@domain.example.com' to='bob_befriend_and_alienate_2985@domain.example.com/res1' id='pushbd32f180b68fc611' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2985@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 07:49:48.570 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-21 07:49:48.570 ***🔗
bob_befriend_and_alienate_2985@domain.example.com/res1 in
</stream:stream>

*** User 2024-03-21 07:49:48.570 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 out
</stream:stream>

*** User 2024-03-21 07:49:48.571 ***🔗
alice_befriend_and_alienate_2985@domain.example.com/res1 in
</stream:stream>
*** CT 2024-03-21 07:49:48.574 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3668.html



=== Ended at 2024-03-21 07:49:48
=== successfully completed test case
=== === Returned value: ok