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

=== Config value:

    [{watchdog,<0.87390.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.09.33/rest_suite.befriend_and_alienate.108804.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@97931f009ece.2024-04-23_10.53.14/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.09.33/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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_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,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@97931f009ece.2024-04-23_10.53.14"

=== Started at 2024-04-23 11:09:34


*** CT 2024-04-23 11:09:34.831 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4897.html

*** User 2024-04-23 11:09:34.849 ***🔗
alicE_befriend_and_alienate_3317@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:09:34.849 ***🔗
alicE_befriend_and_alienate_3317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cba67749d78face5' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2024-04-23 11:09:34.851 ***🔗
alicE_befriend_and_alienate_3317@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:09:34.851 ***🔗
alicE_befriend_and_alienate_3317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4fa3a510874a2fd1' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3317@localhost'>

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



*** User 2024-04-23 11:09:34.852 ***🔗
alicE_befriend_and_alienate_3317@localhost/res1 in
<iq id='dcd4ae734b175d0f65b4a4153a2d37c5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3317@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:09:34.852 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 out
<iq type='set' id='e11cccf82a27e0006131db297aab439a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:09:34.853 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='e11cccf82a27e0006131db297aab439a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:09:34.853 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 out
<presence/>



*** User 2024-04-23 11:09:34.854 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost/res1' to='alice_befriend_and_alienate_3317@localhost/res1'/>



*** User 2024-04-23 11:09:34.855 ***🔗
bOb_befriend_and_alienate_3317@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:09:34.855 ***🔗
bOb_befriend_and_alienate_3317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='61fe4e3743e2d1a5' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2024-04-23 11:09:34.856 ***🔗
bOb_befriend_and_alienate_3317@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:09:34.857 ***🔗
bOb_befriend_and_alienate_3317@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6478123a176a0fa' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3317@localhost'>

*** User 2024-04-23 11:09:34.857 ***🔗
bOb_befriend_and_alienate_3317@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:09:34.857 ***🔗
bOb_befriend_and_alienate_3317@localhost/res1 out
<iq type='set' id='68483a6072c3c31cd308a6bcab4e66ff'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:09:34.857 ***🔗
bOb_befriend_and_alienate_3317@localhost/res1 in
<iq id='68483a6072c3c31cd308a6bcab4e66ff' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3317@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:09:34.857 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 out
<iq type='set' id='b36d0a34541d6343cccc64784197ef36'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:09:34.858 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='b36d0a34541d6343cccc64784197ef36' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:09:34.858 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 out
<presence/>



*** User 2024-04-23 11:09:34.859 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='bob_befriend_and_alienate_3317@localhost/res1' to='bob_befriend_and_alienate_3317@localhost/res1'/>



*** User 2024-04-23 11:09:34.862 ***🔗
REST request:
Code: 200
Req: {<0.87507.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4ad1d28f945dd8b9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1534}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


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


*** User 2024-04-23 11:09:34.871 ***🔗
REST request:
Code: 204
Req: {<0.87517.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"344898cc96b73236">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,5267}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}">>,
          return_headers => true}


*** User 2024-04-23 11:09:34.877 ***🔗
REST request:
Code: 204
Req: {<0.87527.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"afade521d916db51">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,4569}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}">>,
          return_headers => true}


*** User 2024-04-23 11:09:34.883 ***🔗
REST request:
Code: 204
Req: {<0.87529.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"043815a4f0fa622c">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,4142}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}">>,
          return_headers => true}


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


*** User 2024-04-23 11:09:34.890 ***🔗
REST request:
Code: 200
Req: {<0.87533.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0e01791b85cc357">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}]">>,
         211,1561}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.935 ***🔗
REST request:
Code: 204
Req: {<0.87535.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2206a493b2efaf2b">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,5100}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


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


*** User 2024-04-23 11:09:34.945 ***🔗
REST request:
Code: 204
Req: {<0.87545.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5d9d956a4d458a18">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,5523}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-23 11:09:34.951 ***🔗
REST request:
Code: 200
Req: {<0.87547.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8d9312b0e6ac3939">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}]">>,
         209,4601}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.954 ***🔗
REST request:
Code: 200
Req: {<0.87549.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e6196de39d7819f3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}]">>,
         213,2235}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.963 ***🔗
REST request:
Code: 204
Req: {<0.87555.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b464860d912517a5">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,7500}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-23 11:09:34.966 ***🔗
REST request:
Code: 200
Req: {<0.87557.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"48cb8ba9ff5e46f0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}]">>,
         212,1795}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.972 ***🔗
REST request:
Code: 204
Req: {<0.87559.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"749ef8aff1c71033">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,4328}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-23 11:09:34.975 ***🔗
REST request:
Code: 200
Req: {<0.87561.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5939d8ea9bc1dfea">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3317@localhost\"}]">>,
         211,1751}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.978 ***🔗
REST request:
Code: 200
Req: {<0.87563.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"10fe4bdecd7eed1d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}]">>,
         213,1359}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.986 ***🔗
REST request:
Code: 204
Req: {<0.87565.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce5c5156d2056423">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,7410}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3317@localhost/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


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


*** User 2024-04-23 11:09:34.991 ***🔗
REST request:
Code: 200
Req: {<0.87569.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4cc766ddbda8b937">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3317@localhost\"}]">>,
         213,1559}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 11:09:34.995 ***🔗
REST request:
Code: 204
Req: {<0.87571.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a6a7311d2b71c800">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:09:34 GMT">>}],
         <<>>,80,2062}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3317@localhost/alice_befriend_and_alienate_3317@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


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


*** User 2024-04-23 11:09:34.998 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='pushbffe2eb7f7f511fb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.998 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='push835633ee97bcc46a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.998 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='pushdc0482c24d278b79' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3317@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.998 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<presence from='bob_befriend_and_alienate_3317@localhost/res1' to='alice_befriend_and_alienate_3317@localhost/res1'/>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='push018d006497be3269' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<presence from='bob_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='push8f25ceac53a26e3d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<presence from='bob_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='push8bd084dc3e8173f1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<iq from='alice_befriend_and_alienate_3317@localhost' to='alice_befriend_and_alienate_3317@localhost/res1' id='push491ac9c16c7df309' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3317@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:09:34.999 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
<presence from='bob_befriend_and_alienate_3317@localhost/res1' to='alice_befriend_and_alienate_3317@localhost/res1' type='unavailable'/>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='pushb6d16deba6f0ee50' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='push0a8f029186a436b0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='push8a67a8442be7de13' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3317@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost/res1' to='bob_befriend_and_alienate_3317@localhost/res1'/>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='push01e13ec57d38732a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.000 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost/res1' to='bob_befriend_and_alienate_3317@localhost/res1' type='unavailable'/>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='push6af3c7d94fe68ecb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' type='unsubscribe'/>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='pusha6dcfa5044de7e42' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<presence from='alice_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' type='unsubscribed'/>



*** User 2024-04-23 11:09:40.001 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
<iq from='bob_befriend_and_alienate_3317@localhost' to='bob_befriend_and_alienate_3317@localhost/res1' id='push65e64997a8e7aa83' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3317@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:09:45.002 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:09:45.002 ***🔗
bob_befriend_and_alienate_3317@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:09:45.003 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:09:45.003 ***🔗
alice_befriend_and_alienate_3317@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:09:45.009 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4897.html



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