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

=== Config value:

    [{watchdog,<0.76562.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e9cd84e19dff.2024-04-23_06.47.01/big_tests.tests.rest_SUITE.logs/run.2024-04-23_06.59.51/rest_suite.befriend_and_alienate.151171.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@e9cd84e19dff.2024-04-23_06.47.01/big_tests.tests.rest_SUITE.logs/run.2024-04-23_06.59.51/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_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_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2}}},
     {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@e9cd84e19dff.2024-04-23_06.47.01"

=== Started at 2024-04-23 06:59:52


*** CT 2024-04-23 06:59:52.362 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3426.html

*** User 2024-04-23 06:59:52.387 ***🔗
alicE_befriend_and_alienate_2821@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-23 06:59:52.387 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10fbcf26e73dfde3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 06:59:52.387 ***🔗
alicE_befriend_and_alienate_2821@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-23 06:59:52.388 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODIxAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 06:59:52.389 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 06:59:52.389 ***🔗
alicE_befriend_and_alienate_2821@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-23 06:59:52.390 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c63b410bc147c17d' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2821@domain.example.com'>

*** User 2024-04-23 06:59:52.390 ***🔗
alicE_befriend_and_alienate_2821@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-23 06:59:52.390 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 out
<iq type='set' id='49f1583270f394d74840004510675945'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 06:59:52.390 ***🔗
alicE_befriend_and_alienate_2821@domain.example.com/res1 in
<iq id='49f1583270f394d74840004510675945' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2821@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:59:52.391 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 out
<iq type='set' id='452a6a1bfef6e70a8f7567b527d2b86c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:59:52.392 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='452a6a1bfef6e70a8f7567b527d2b86c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:59:52.392 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 06:59:52.395 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com/res1' to='alice_befriend_and_alienate_2821@domain.example.com/res1'/>



*** User 2024-04-23 06:59:52.396 ***🔗
bOb_befriend_and_alienate_2821@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-23 06:59:52.396 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b9955558f3560511' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 06:59:52.397 ***🔗
bOb_befriend_and_alienate_2821@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-23 06:59:52.397 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjgyMQBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 06:59:52.398 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 06:59:52.398 ***🔗
bOb_befriend_and_alienate_2821@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-23 06:59:52.398 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3614a6b5c8475369' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2821@domain.example.com'>

*** User 2024-04-23 06:59:52.399 ***🔗
bOb_befriend_and_alienate_2821@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-23 06:59:52.399 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 out
<iq type='set' id='c5ea65d5fc4371890fe53ea781006cb2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 06:59:52.400 ***🔗
bOb_befriend_and_alienate_2821@domain.example.com/res1 in
<iq id='c5ea65d5fc4371890fe53ea781006cb2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2821@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 06:59:52.400 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 out
<iq type='set' id='30e4eebea48945a46c8147fb23479555'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:59:52.401 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='30e4eebea48945a46c8147fb23479555' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 06:59:52.401 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 06:59:52.404 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2821@domain.example.com/res1' to='bob_befriend_and_alienate_2821@domain.example.com/res1'/>



*** User 2024-04-23 06:59:52.408 ***🔗
REST request:
Code: 200
Req: {<0.76670.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"161f8602bb0e70ea">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1929}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.411 ***🔗
REST request:
Code: 200
Req: {<0.76677.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fc39565ddd0b010">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2181}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.422 ***🔗
REST request:
Code: 204
Req: {<0.76683.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ba31dd5e5c6c582">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,9211}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.461 ***🔗
REST request:
Code: 204
Req: {<0.76696.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8133d18cea997c7">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,37265}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.467 ***🔗
REST request:
Code: 204
Req: {<0.76701.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df4e30d583349a21">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,5140}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.472 ***🔗
REST request:
Code: 200
Req: {<0.76703.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99dbca6f43f1b376">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}]">>,
         222,3068}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.476 ***🔗
REST request:
Code: 200
Req: {<0.76705.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0c1344e4b4ff19ca">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}]">>,
         220,2130}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.487 ***🔗
REST request:
Code: 204
Req: {<0.76707.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f9cfd26a26f547f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,9202}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.492 ***🔗
REST request:
Code: 200
Req: {<0.76709.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3a733ec31479b894">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}]">>,
         219,2509}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.502 ***🔗
REST request:
Code: 204
Req: {<0.76711.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9c76a7e09182289c">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,8095}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.507 ***🔗
REST request:
Code: 200
Req: {<0.76715.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"befa9b82036be806">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}]">>,
         218,1959}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.510 ***🔗
REST request:
Code: 200
Req: {<0.76719.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f1a7a97b3ea49392">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}]">>,
         222,2071}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.529 ***🔗
REST request:
Code: 204
Req: {<0.76723.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"53e132b76b6d74fa">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,17908}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.535 ***🔗
REST request:
Code: 200
Req: {<0.76725.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9640842b06f44c1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}]">>,
         221,2200}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.546 ***🔗
REST request:
Code: 204
Req: {<0.76729.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94e8421c1fa543c8">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,9958}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 06:59:52.552 ***🔗
REST request:
Code: 200
Req: {<0.76733.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"22807ab96ae87e16">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2821@domain.example.com\"}]">>,
         220,4520}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.557 ***🔗
REST request:
Code: 200
Req: {<0.76735.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c6362ccd8a740e2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}]">>,
         222,3155}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.578 ***🔗
REST request:
Code: 204
Req: {<0.76737.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b83e3d6977faa889">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,18912}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.581 ***🔗
REST request:
Code: 200
Req: {<0.76739.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b8bfeab656ba222e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2189}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.585 ***🔗
REST request:
Code: 200
Req: {<0.76741.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"945a780dc7e8a143">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2821@domain.example.com\"}]">>,
         222,2713}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.592 ***🔗
REST request:
Code: 204
Req: {<0.76743.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7774fd6d3adbda3">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>}],
         <<>>,80,4747}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com/alice_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.601 ***🔗
REST request:
Code: 200
Req: {<0.76745.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1baced43c9d9c05">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 06:59:52 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,7027}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2821@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='push2da8f89d540836db' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='push0f4791cf7bf6149a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='push6f427f3c5f24062e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2821@domain.example.com/res1' to='alice_befriend_and_alienate_2821@domain.example.com/res1'/>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='push559771e1b4119fc6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='pushc0c0644ac8d060f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='push79607777d6d3d33e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.602 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2821@domain.example.com' to='alice_befriend_and_alienate_2821@domain.example.com/res1' id='pushc0142d0320cf1cd0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2821@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 06:59:52.603 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2821@domain.example.com/res1' to='alice_befriend_and_alienate_2821@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 06:59:57.603 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='pushd6a6838e3fb7f87e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='pushe5f0bc429f0e50ef' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='push26bedca0267b0e32' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com/res1' to='bob_befriend_and_alienate_2821@domain.example.com/res1'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='push49c7e3d5b8325716' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com/res1' to='bob_befriend_and_alienate_2821@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='pushb28f629f2245d9b9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='push96b577a2367d4239' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-04-23 06:59:57.604 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2821@domain.example.com' to='bob_befriend_and_alienate_2821@domain.example.com/res1' id='push90103305ab7ada8f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2821@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 07:00:02.606 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 07:00:02.606 ***🔗
bob_befriend_and_alienate_2821@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 07:00:02.606 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 07:00:02.606 ***🔗
alice_befriend_and_alienate_2821@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-23 07:00:02.609 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3445.html



=== Ended at 2024-04-23 07:00:02
=== successfully completed test case
=== === Returned value: ok