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

=== Config value:

    [{watchdog,<0.74000.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_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@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.rest_SUITE.logs/run.2024-02-19_17.34.49/rest_suite.befriend_and_alienate.196738.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@b324fd85012a.2024-02-19_17.21.03/big_tests.tests.rest_SUITE.logs/run.2024-02-19_17.34.49/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => 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@b324fd85012a.2024-02-19_17.21.03"

=== Started at 2024-02-19 17:34:49


*** CT 2024-02-19 17:34:49.887 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2606.html

*** User 2024-02-19 17:34:49.900 ***🔗
alicE_befriend_and_alienate_2860@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-19 17:34:49.901 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7593fee685169a21' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-19 17:34:49.901 ***🔗
alicE_befriend_and_alienate_2860@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-19 17:34:49.901 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODYwAG1hdHlncnlzYQ==</auth>



*** User 2024-02-19 17:34:49.902 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-19 17:34:49.902 ***🔗
alicE_befriend_and_alienate_2860@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-19 17:34:49.902 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8980ab8db104bffb' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2860@domain.example.com'>

*** User 2024-02-19 17:34:49.903 ***🔗
alicE_befriend_and_alienate_2860@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-19 17:34:49.903 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 out
<iq type='set' id='1f0813725e612a4a61ef6a9937d54030'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-19 17:34:49.903 ***🔗
alicE_befriend_and_alienate_2860@domain.example.com/res1 in
<iq id='1f0813725e612a4a61ef6a9937d54030' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2860@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-19 17:34:49.903 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 out
<iq type='set' id='f461d2e20a5085bde25bf08e98a70ce5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-19 17:34:49.904 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='f461d2e20a5085bde25bf08e98a70ce5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-19 17:34:49.904 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 out
<presence/>



*** User 2024-02-19 17:34:49.905 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com/res1' to='alice_befriend_and_alienate_2860@domain.example.com/res1'/>



*** User 2024-02-19 17:34:49.905 ***🔗
bOb_befriend_and_alienate_2860@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-19 17:34:49.906 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f199274cba624f7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-19 17:34:49.906 ***🔗
bOb_befriend_and_alienate_2860@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-19 17:34:49.906 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg2MABtYWtyb2xpa2E=</auth>



*** User 2024-02-19 17:34:49.907 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-19 17:34:49.907 ***🔗
bOb_befriend_and_alienate_2860@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-19 17:34:49.907 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='073e4fe66dc0015c' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2860@domain.example.com'>

*** User 2024-02-19 17:34:49.907 ***🔗
bOb_befriend_and_alienate_2860@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-19 17:34:49.907 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 out
<iq type='set' id='d3eb21e2bb02e1d03110cabe64f84184'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-19 17:34:49.908 ***🔗
bOb_befriend_and_alienate_2860@domain.example.com/res1 in
<iq id='d3eb21e2bb02e1d03110cabe64f84184' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2860@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-19 17:34:49.908 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 out
<iq type='set' id='6ca691ba7a9106c7c3ee2f784c6dedaa'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-19 17:34:49.909 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='6ca691ba7a9106c7c3ee2f784c6dedaa' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-19 17:34:49.909 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 out
<presence/>



*** User 2024-02-19 17:34:49.910 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2860@domain.example.com/res1' to='bob_befriend_and_alienate_2860@domain.example.com/res1'/>



*** User 2024-02-19 17:34:49.913 ***🔗
REST request:
Code: 200
Req: {<0.74100.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e687fce7394f2fb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2197}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.915 ***🔗
REST request:
Code: 200
Req: {<0.74115.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9539952a40c1319">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1124}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.918 ***🔗
REST request:
Code: 204
Req: {<0.74121.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"32bc086946d34f31">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,2111}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.921 ***🔗
REST request:
Code: 204
Req: {<0.74132.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2bcb782c5f85cd84">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,2131}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.925 ***🔗
REST request:
Code: 204
Req: {<0.74136.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1420d28135a87f04">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,2917}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.927 ***🔗
REST request:
Code: 200
Req: {<0.74141.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9db80ad0b009835">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}]">>,
         222,924}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.929 ***🔗
REST request:
Code: 200
Req: {<0.74143.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"caf035d6d2ee54b8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}]">>,
         220,1347}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.933 ***🔗
REST request:
Code: 204
Req: {<0.74145.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"76850ad9625f72d8">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,2558}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.935 ***🔗
REST request:
Code: 200
Req: {<0.74149.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05d7e0b2987d313c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}]">>,
         219,994}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.970 ***🔗
REST request:
Code: 204
Req: {<0.74155.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"caf9611c900e4fba">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,34084}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.972 ***🔗
REST request:
Code: 200
Req: {<0.74157.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"162b5133ee3d130c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}]">>,
         218,1340}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.975 ***🔗
REST request:
Code: 200
Req: {<0.74161.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c30c9f5d3535dd76">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}]">>,
         222,1140}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.979 ***🔗
REST request:
Code: 204
Req: {<0.74163.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0af1b3de784cff77">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,3450}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.981 ***🔗
REST request:
Code: 200
Req: {<0.74167.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c19b9f36dae5e2f2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}]">>,
         221,1189}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.985 ***🔗
REST request:
Code: 204
Req: {<0.74169.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7cf702a1bd580750">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,3275}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-02-19 17:34:49.988 ***🔗
REST request:
Code: 200
Req: {<0.74171.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1566dca3522a11f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2860@domain.example.com\"}]">>,
         220,1369}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.990 ***🔗
REST request:
Code: 200
Req: {<0.74173.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7c43ede528f7f640">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}]">>,
         222,1213}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.997 ***🔗
REST request:
Code: 204
Req: {<0.74175.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"135c0cefa7eefcae">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,5823}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:49.999 ***🔗
REST request:
Code: 200
Req: {<0.74177.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd6e5596a79b0ec2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1307}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:50.001 ***🔗
REST request:
Code: 200
Req: {<0.74179.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed2548220977adf1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2860@domain.example.com\"}]">>,
         222,1216}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:50.004 ***🔗
REST request:
Code: 204
Req: {<0.74181.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"12b5d7b5ab5b4744">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>}],
         <<>>,80,1649}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com/alice_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:50.006 ***🔗
REST request:
Code: 200
Req: {<0.74183.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"81f7b16aaeb0cccd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 19 Feb 2024 17:34:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1312}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2860@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push4ad5475727475a05' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push1a3037eb55906fff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push88bfed4d8a1db9be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2860@domain.example.com/res1' to='alice_befriend_and_alienate_2860@domain.example.com/res1'/>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push00d2f638a6ccb7dc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push9d57220086adf97b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='pushb0a8ab6a692db9c2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2860@domain.example.com' to='alice_befriend_and_alienate_2860@domain.example.com/res1' id='push0c890c84db2b257a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:50.006 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2860@domain.example.com/res1' to='alice_befriend_and_alienate_2860@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='push8835ab594d9d8565' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='pushfef1f7ee71e1ae7a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='push45a2e2da4014914a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com/res1' to='bob_befriend_and_alienate_2860@domain.example.com/res1'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='push818c5ad03b79a17e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com/res1' to='bob_befriend_and_alienate_2860@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='push8fb9d5072e12612b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='pushe1cba59b9ca9b998' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-02-19 17:34:55.008 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2860@domain.example.com' to='bob_befriend_and_alienate_2860@domain.example.com/res1' id='push297e937bcd8f4e16' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2860@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-19 17:35:00.010 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-19 17:35:00.010 ***🔗
bob_befriend_and_alienate_2860@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-19 17:35:00.010 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-19 17:35:00.010 ***🔗
alice_befriend_and_alienate_2860@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-19 17:35:00.013 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2625.html



=== Ended at 2024-02-19 17:35:00
=== successfully completed test case
=== === Returned value: ok