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

=== Config value:

    [{watchdog,<0.80610.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@def112168c16.2024-04-23_11.32.54/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.46.57/rest_suite.befriend_and_alienate.224386.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@def112168c16.2024-04-23_11.32.54/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.46.57/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => cets,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@def112168c16.2024-04-23_11.32.54"

=== Started at 2024-04-23 11:46:57


*** CT 2024-04-23 11:46:57.911 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4547.html

*** User 2024-04-23 11:46:57.927 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:46:57.927 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2b7fbdebcf7ae0bb' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:46:57.928 ***🔗
alicE_befriend_and_alienate_2934@localhost/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 11:46:57.928 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTM0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:46:57.929 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:46:57.929 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:46:57.929 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1144289cf9edb8a8' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2934@localhost'>

*** User 2024-04-23 11:46:57.929 ***🔗
alicE_befriend_and_alienate_2934@localhost/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 11:46:57.929 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 out
<iq type='set' id='4b3ce6142657123761d26008c45dabde'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:46:57.930 ***🔗
alicE_befriend_and_alienate_2934@localhost/res1 in
<iq id='4b3ce6142657123761d26008c45dabde' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2934@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:46:57.930 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 out
<iq type='set' id='76d117f0ba334c8645d610d1e6745e49'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:57.931 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='76d117f0ba334c8645d610d1e6745e49' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:57.931 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 out
<presence/>



*** User 2024-04-23 11:46:57.933 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost/res1' to='alice_befriend_and_alienate_2934@localhost/res1'/>



*** User 2024-04-23 11:46:57.934 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:46:57.934 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='588b4751302ebcb4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:46:57.934 ***🔗
bOb_befriend_and_alienate_2934@localhost/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 11:46:57.934 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkzNABtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:46:57.935 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:46:57.935 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:46:57.935 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8f756710d1b318c2' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2934@localhost'>

*** User 2024-04-23 11:46:57.935 ***🔗
bOb_befriend_and_alienate_2934@localhost/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 11:46:57.936 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 out
<iq type='set' id='079ab76a01e55f529559c59e1610ba40'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:46:57.936 ***🔗
bOb_befriend_and_alienate_2934@localhost/res1 in
<iq id='079ab76a01e55f529559c59e1610ba40' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2934@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:46:57.936 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 out
<iq type='set' id='93308c696a9741618f7a5703e9cd1e18'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:57.937 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='93308c696a9741618f7a5703e9cd1e18' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:46:57.937 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 out
<presence/>



*** User 2024-04-23 11:46:57.939 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='bob_befriend_and_alienate_2934@localhost/res1' to='bob_befriend_and_alienate_2934@localhost/res1'/>



*** User 2024-04-23 11:46:57.942 ***🔗
REST request:
Code: 200
Req: {<0.80719.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"40a5135285ff8f19">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1964}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.944 ***🔗
REST request:
Code: 200
Req: {<0.80727.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b09864c54f584ee7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1207}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.948 ***🔗
REST request:
Code: 204
Req: {<0.80731.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"98c6ebe490de05a5">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,3370}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.953 ***🔗
REST request:
Code: 204
Req: {<0.80741.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"de5e26cd676db04b">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,3939}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.957 ***🔗
REST request:
Code: 204
Req: {<0.80748.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b2efe42b1f15f362">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,2730}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.959 ***🔗
REST request:
Code: 200
Req: {<0.80751.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"00f46377df0f88b2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}]">>,
         213,999}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.961 ***🔗
REST request:
Code: 200
Req: {<0.80753.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ddb3da64821dfc6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}]">>,
         211,1100}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.965 ***🔗
REST request:
Code: 204
Req: {<0.80755.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"878af833b825e5c6">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,3144}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.968 ***🔗
REST request:
Code: 200
Req: {<0.80757.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"46d3d98b028e8377">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}]">>,
         210,1768}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.971 ***🔗
REST request:
Code: 204
Req: {<0.80761.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"118ec1afebd2dab2">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,2941}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.973 ***🔗
REST request:
Code: 200
Req: {<0.80765.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dcb15620f8b8e54a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}]">>,
         209,946}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.975 ***🔗
REST request:
Code: 200
Req: {<0.80769.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e8b4cf2963d7350">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}]">>,
         213,1121}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.979 ***🔗
REST request:
Code: 204
Req: {<0.80771.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8550f432d2f62fdd">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,3032}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.981 ***🔗
REST request:
Code: 200
Req: {<0.80773.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18100a5af3131b77">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}]">>,
         212,1174}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.986 ***🔗
REST request:
Code: 204
Req: {<0.80775.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"09c0ed2d1dcfa6f6">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,4110}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-23 11:46:57.988 ***🔗
REST request:
Code: 200
Req: {<0.80781.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4b50581344c5873f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2934@localhost\"}]">>,
         211,939}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.990 ***🔗
REST request:
Code: 200
Req: {<0.80783.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"542f8d06fa63f076">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}]">>,
         213,925}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.996 ***🔗
REST request:
Code: 204
Req: {<0.80785.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6f1f15ac44008c37">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,5409}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:57.998 ***🔗
REST request:
Code: 200
Req: {<0.80787.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dc123bdcdb15281c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1130}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:58.000 ***🔗
REST request:
Code: 200
Req: {<0.80789.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"adc1cecdb79d3b52">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2934@localhost\"}]">>,
         213,1127}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:58.004 ***🔗
REST request:
Code: 204
Req: {<0.80791.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ebb61d5569aa2121">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>}],
         <<>>,80,3022}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2934@localhost/alice_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:58.006 ***🔗
REST request:
Code: 200
Req: {<0.80793.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"67c3fbc795093696">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:46:57 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1211}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_2934@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-23 11:46:58.006 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='push9d6174d68327f18b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='pushe06ef93feebb55e2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='pushbc4b69f577ec4ba6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2934@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<presence from='bob_befriend_and_alienate_2934@localhost/res1' to='alice_befriend_and_alienate_2934@localhost/res1'/>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='pushdc4de6a78d63a1d3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<presence from='bob_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='pushe8d00848792ee722' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<presence from='bob_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='push16215c3cfed96a27' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<iq from='alice_befriend_and_alienate_2934@localhost' to='alice_befriend_and_alienate_2934@localhost/res1' id='pushd8b70c9e655d5321' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2934@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:46:58.007 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
<presence from='bob_befriend_and_alienate_2934@localhost/res1' to='alice_befriend_and_alienate_2934@localhost/res1' type='unavailable'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='pushdb332adf05cafad0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='push823f780ba0b9b5e7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='pushb4327eedb735a819' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2934@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost/res1' to='bob_befriend_and_alienate_2934@localhost/res1'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='push4034ff1725bfeed9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost/res1' to='bob_befriend_and_alienate_2934@localhost/res1' type='unavailable'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='pushacc59e2adfb9123f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' type='unsubscribe'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='push350c341cf3f137f9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<presence from='alice_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' type='unsubscribed'/>



*** User 2024-04-23 11:47:03.008 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
<iq from='bob_befriend_and_alienate_2934@localhost' to='bob_befriend_and_alienate_2934@localhost/res1' id='push7ea6c8a48360f53c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2934@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:47:08.009 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:47:08.009 ***🔗
bob_befriend_and_alienate_2934@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:47:08.009 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:47:08.010 ***🔗
alice_befriend_and_alienate_2934@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:47:08.012 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4566.html



=== Ended at 2024-04-23 11:47:08
=== successfully completed test case
=== === Returned value: ok