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

=== Config value:

    [{watchdog,<0.71713.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_SUITE.logs/run.2023-11-23_14.27.16/rest_suite.befriend_and_alienate.190338.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_SUITE.logs/run.2023-11-23_14.27.16/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_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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@7465fd1d5a64.2023-11-23_14.13.58"

=== Started at 2023-11-23 14:27:17


*** CT 2023-11-23 14:27:17.331 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2684.html

*** User 2023-11-23 14:27:17.345 ***🔗
alicE_befriend_and_alienate_2700@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 2023-11-23 14:27:17.345 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a9470ca1e5c85019' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:17.345 ***🔗
alicE_befriend_and_alienate_2700@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 2023-11-23 14:27:17.345 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzAwAG1hdHlncnlzYQ==</auth>



*** User 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@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 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='db251d9f971352f2' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2700@domain.example.com'>

*** User 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@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 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 out
<iq type='set' id='209a68f59f33873b156434e16b07a724'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:17.347 ***🔗
alicE_befriend_and_alienate_2700@domain.example.com/res1 in
<iq id='209a68f59f33873b156434e16b07a724' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2700@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:17.348 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 out
<iq type='set' id='b552c4bb5c5fedcc10730451c5fcdcf4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:17.348 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='b552c4bb5c5fedcc10730451c5fcdcf4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:17.348 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:17.350 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com/res1' to='alice_befriend_and_alienate_2700@domain.example.com/res1'/>



*** User 2023-11-23 14:27:17.350 ***🔗
bOb_befriend_and_alienate_2700@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 2023-11-23 14:27:17.350 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b72c07f4bf19175' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:17.351 ***🔗
bOb_befriend_and_alienate_2700@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 2023-11-23 14:27:17.351 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjcwMABtYWtyb2xpa2E=</auth>



*** User 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@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 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69140a18421301a2' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2700@domain.example.com'>

*** User 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@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 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 out
<iq type='set' id='5471d7aeeccff4df1e191f0457238c04'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:17.352 ***🔗
bOb_befriend_and_alienate_2700@domain.example.com/res1 in
<iq id='5471d7aeeccff4df1e191f0457238c04' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2700@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:17.352 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 out
<iq type='set' id='65f0933baa0c85e883a8b8c61fbd8f1f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:17.353 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='65f0933baa0c85e883a8b8c61fbd8f1f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:17.353 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:17.354 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2700@domain.example.com/res1' to='bob_befriend_and_alienate_2700@domain.example.com/res1'/>



*** User 2023-11-23 14:27:17.357 ***🔗
REST request:
Code: 200
Req: {<0.71823.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13178e4ee12f1a1d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1412}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.360 ***🔗
REST request:
Code: 200
Req: {<0.71834.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b6e2980e175116a7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1441}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.364 ***🔗
REST request:
Code: 204
Req: {<0.71840.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac993d12ac2c45a4">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,2851}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2023-11-23 14:27:17.374 ***🔗
REST request:
Code: 204
Req: {<0.71847.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"00eb95f4f9a4fd7f">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,9383}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2023-11-23 14:27:17.400 ***🔗
REST request:
Code: 204
Req: {<0.71852.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6fd8d4d17338bfc">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,6224}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2023-11-23 14:27:17.405 ***🔗
REST request:
Code: 200
Req: {<0.71854.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"572630a33a8c3f18">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}]">>,
         222,2416}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.408 ***🔗
REST request:
Code: 200
Req: {<0.71858.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"97d5efb675fb23dd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}]">>,
         220,1115}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.412 ***🔗
REST request:
Code: 204
Req: {<0.71862.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7dbedd5cf189a82a">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,3136}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2023-11-23 14:27:17.414 ***🔗
REST request:
Code: 200
Req: {<0.71866.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d90d0be41cecf23d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}]">>,
         219,1320}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.418 ***🔗
REST request:
Code: 204
Req: {<0.71868.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1f05ed37098e046c">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,2929}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2023-11-23 14:27:17.420 ***🔗
REST request:
Code: 200
Req: {<0.71870.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"387119cc64269559">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}]">>,
         218,1130}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.423 ***🔗
REST request:
Code: 200
Req: {<0.71874.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74228f15eed58527">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}]">>,
         222,1308}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.427 ***🔗
REST request:
Code: 204
Req: {<0.71878.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"508006e2dd0e7158">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,3242}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2023-11-23 14:27:17.429 ***🔗
REST request:
Code: 200
Req: {<0.71880.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65d3d9cf7e58b689">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}]">>,
         221,1182}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.433 ***🔗
REST request:
Code: 204
Req: {<0.71882.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"142d03e9c0529a8e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,3177}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2023-11-23 14:27:17.435 ***🔗
REST request:
Code: 200
Req: {<0.71884.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94fd3fd51bf017bd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2700@domain.example.com\"}]">>,
         220,1279}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.437 ***🔗
REST request:
Code: 200
Req: {<0.71886.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d009d384b6611134">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}]">>,
         222,1125}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.443 ***🔗
REST request:
Code: 204
Req: {<0.71888.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"63bb2685316f2146">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,5285}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.445 ***🔗
REST request:
Code: 200
Req: {<0.71890.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a21da2cbc621cd78">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1061}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.448 ***🔗
REST request:
Code: 200
Req: {<0.71892.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9f2988d3ba236f9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2700@domain.example.com\"}]">>,
         222,1403}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.450 ***🔗
REST request:
Code: 204
Req: {<0.71894.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c059812c5027b848">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>}],
         <<>>,80,1632}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com/alice_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.453 ***🔗
REST request:
Code: 200
Req: {<0.71896.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b25b4043345dfc7f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1168}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2700@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='push836aaf52c9c5cfaf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='pushd03f83ec27be5477' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='push9f1e76d25bbf09d2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2700@domain.example.com/res1' to='alice_befriend_and_alienate_2700@domain.example.com/res1'/>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='pushb8494841b0661320' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='push087271a74baa4ed3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='pushf7bbe82e7ed069d3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2700@domain.example.com' to='alice_befriend_and_alienate_2700@domain.example.com/res1' id='push5d6d74012eff640c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:17.453 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2700@domain.example.com/res1' to='alice_befriend_and_alienate_2700@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='push8bc0e7fd11974b97' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='push10371a308f3eca13' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='push966be0b37916cf89' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com/res1' to='bob_befriend_and_alienate_2700@domain.example.com/res1'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='pushccabf157365083be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' type='subscribed'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com/res1' to='bob_befriend_and_alienate_2700@domain.example.com/res1' type='unavailable'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='push3ad7a268dd92fb4f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' type='unsubscribe'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='pusha0b4fdc3296f1d9f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' type='unsubscribed'/>



*** User 2023-11-23 14:27:22.455 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2700@domain.example.com' to='bob_befriend_and_alienate_2700@domain.example.com/res1' id='push696fd6b7f1307f6e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2700@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:27.457 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:27.457 ***🔗
bob_befriend_and_alienate_2700@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-23 14:27:27.457 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:27.457 ***🔗
alice_befriend_and_alienate_2700@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-23 14:27:27.459 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2703.html



=== Ended at 2023-11-23 14:27:27
=== successfully completed test case
=== === Returned value: ok