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

=== Config value:

    [{watchdog,<0.74897.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@253ffb6f4c38.2024-04-25_12.01.37/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.16.04/rest_suite.befriend_and_alienate.162179.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@253ffb6f4c38.2024-04-25_12.01.37/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.16.04/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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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@253ffb6f4c38.2024-04-25_12.01.37"

=== Started at 2024-04-25 12:16:05


*** CT 2024-04-25 12:16:05.359 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2641.html

*** User 2024-04-25 12:16:05.375 ***🔗
alicE_befriend_and_alienate_2892@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-04-25 12:16:05.375 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8462212454f93257' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:16:05.376 ***🔗
alicE_befriend_and_alienate_2892@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-04-25 12:16:05.376 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODkyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 12:16:05.377 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:16:05.377 ***🔗
alicE_befriend_and_alienate_2892@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-04-25 12:16:05.377 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ccbb2b44f68fc31e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2892@domain.example.com'>

*** User 2024-04-25 12:16:05.377 ***🔗
alicE_befriend_and_alienate_2892@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-04-25 12:16:05.377 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 out
<iq type='set' id='555e6f430fc1585a09666ae5114c129d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:16:05.378 ***🔗
alicE_befriend_and_alienate_2892@domain.example.com/res1 in
<iq id='555e6f430fc1585a09666ae5114c129d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2892@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:16:05.378 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 out
<iq type='set' id='16e8ce9ed40fa841abd67594d06de7a6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:16:05.378 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='16e8ce9ed40fa841abd67594d06de7a6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:16:05.378 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 12:16:05.380 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com/res1' to='alice_befriend_and_alienate_2892@domain.example.com/res1'/>



*** User 2024-04-25 12:16:05.381 ***🔗
bOb_befriend_and_alienate_2892@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-04-25 12:16:05.381 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9ca3097748ae1d0d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:16:05.381 ***🔗
bOb_befriend_and_alienate_2892@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-04-25 12:16:05.381 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg5MgBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 12:16:05.382 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:16:05.382 ***🔗
bOb_befriend_and_alienate_2892@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-04-25 12:16:05.383 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='baeae14d0b3281ac' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2892@domain.example.com'>

*** User 2024-04-25 12:16:05.383 ***🔗
bOb_befriend_and_alienate_2892@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-04-25 12:16:05.383 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 out
<iq type='set' id='0cd1c227799e98933d3c9f9a97310162'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:16:05.383 ***🔗
bOb_befriend_and_alienate_2892@domain.example.com/res1 in
<iq id='0cd1c227799e98933d3c9f9a97310162' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2892@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:16:05.383 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 out
<iq type='set' id='de6a0b3936cb747eff17afd94c3eacd5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:16:05.384 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='de6a0b3936cb747eff17afd94c3eacd5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:16:05.384 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 12:16:05.386 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2892@domain.example.com/res1' to='bob_befriend_and_alienate_2892@domain.example.com/res1'/>



*** User 2024-04-25 12:16:05.390 ***🔗
REST request:
Code: 200
Req: {<0.75004.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2bca555d65a488d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2451}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.393 ***🔗
REST request:
Code: 200
Req: {<0.75010.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fda58617f933256">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2051}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.398 ***🔗
REST request:
Code: 204
Req: {<0.75020.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1d33269a3391daf0">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,4742}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 12:16:05.404 ***🔗
REST request:
Code: 204
Req: {<0.75031.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9a71223a2931e27">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,4594}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 12:16:05.411 ***🔗
REST request:
Code: 204
Req: {<0.75036.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4f8b00d05b7f1685">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,6281}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 12:16:05.415 ***🔗
REST request:
Code: 200
Req: {<0.75038.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"231a17997ae6e5da">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}]">>,
         222,1850}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.419 ***🔗
REST request:
Code: 200
Req: {<0.75040.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d41e1ea6a1826728">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}]">>,
         220,3050}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.426 ***🔗
REST request:
Code: 204
Req: {<0.75042.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f02f1149eecafb75">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,5962}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 12:16:05.429 ***🔗
REST request:
Code: 200
Req: {<0.75044.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9327466fa5310e0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}]">>,
         219,1890}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.437 ***🔗
REST request:
Code: 204
Req: {<0.75046.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4a85f5e0af3fc287">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,6661}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 12:16:05.440 ***🔗
REST request:
Code: 200
Req: {<0.75052.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c12bf54513fca9ea">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}]">>,
         218,1676}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.486 ***🔗
REST request:
Code: 200
Req: {<0.75056.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18af4ee3bfe40d0f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}]">>,
         222,45676}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.493 ***🔗
REST request:
Code: 204
Req: {<0.75058.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4140cabd734ce6b6">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,5641}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 12:16:05.496 ***🔗
REST request:
Code: 200
Req: {<0.75060.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c10cdb738ad9b788">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}]">>,
         221,1738}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.503 ***🔗
REST request:
Code: 204
Req: {<0.75062.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8172418c46e343e3">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,5240}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 12:16:05.506 ***🔗
REST request:
Code: 200
Req: {<0.75068.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"22cddbfd87e160ee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2892@domain.example.com\"}]">>,
         220,1505}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.508 ***🔗
REST request:
Code: 200
Req: {<0.75070.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e5098cae5e7c2de9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}]">>,
         222,1741}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.520 ***🔗
REST request:
Code: 204
Req: {<0.75072.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f7ee4147642eff4">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,10983}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.523 ***🔗
REST request:
Code: 200
Req: {<0.75074.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"20767dbd1d615cdc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2264}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.526 ***🔗
REST request:
Code: 200
Req: {<0.75076.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f5cf3f108074c25">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2892@domain.example.com\"}]">>,
         222,1678}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.530 ***🔗
REST request:
Code: 204
Req: {<0.75078.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7817b5086265fec">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>}],
         <<>>,80,2592}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com/alice_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.533 ***🔗
REST request:
Code: 200
Req: {<0.75080.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc60382c607a6918">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:16:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1981}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2892@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='push47a99f4c25442aa6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='push7fe6b30fec8463ef' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='push5643821ab65c43a8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2892@domain.example.com/res1' to='alice_befriend_and_alienate_2892@domain.example.com/res1'/>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='pushb71f779a300d36e1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='pushcd91c092c367d69b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='pusha6eb5fd44132ea2b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2892@domain.example.com' to='alice_befriend_and_alienate_2892@domain.example.com/res1' id='push30413b99eeb981d3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2892@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 12:16:05.533 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2892@domain.example.com/res1' to='alice_befriend_and_alienate_2892@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-25 12:16:10.534 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='pushcb06c4d5363b423b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.534 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-25 12:16:10.534 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='push95a4cb5ae62d083f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.534 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='pushf7c496e2c1e167c5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.534 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com/res1' to='bob_befriend_and_alienate_2892@domain.example.com/res1'/>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='pushbc0f52553e06e306' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com/res1' to='bob_befriend_and_alienate_2892@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='push87e860c43f8e05ac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='pusha47d29beef00d4b3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-04-25 12:16:10.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2892@domain.example.com' to='bob_befriend_and_alienate_2892@domain.example.com/res1' id='push746b36e2c9776c0a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2892@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 12:16:15.535 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 12:16:15.536 ***🔗
bob_befriend_and_alienate_2892@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 12:16:15.536 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 12:16:15.536 ***🔗
alice_befriend_and_alienate_2892@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-25 12:16:15.538 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2660.html



=== Ended at 2024-04-25 12:16:15
=== successfully completed test case
=== === Returned value: ok