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

=== Config value:

    [{watchdog,<0.54620.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,disabled},
     {preset,"internal_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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.rest_SUITE.logs/run.2024-03-29_09.29.29/rest_suite.befriend_and_alienate.114690.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@8dadd8a9c704.2024-03-29_09.14.50/big_tests.tests.rest_SUITE.logs/run.2024-03-29_09.29.29/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        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@8dadd8a9c704.2024-03-29_09.14.50"

=== Started at 2024-03-29 09:29:29


*** CT 2024-03-29 09:29:29.745 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4756.html

*** User 2024-03-29 09:29:29.754 ***🔗
alicE_befriend_and_alienate_1825@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-03-29 09:29:29.754 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9875ee8c4427dba6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:29:29.754 ***🔗
alicE_befriend_and_alienate_1825@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-03-29 09:29:29.754 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xODI1AG1hdHlncnlzYQ==</auth>



*** User 2024-03-29 09:29:29.755 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:29:29.755 ***🔗
alicE_befriend_and_alienate_1825@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-03-29 09:29:29.756 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9694702c22174a9' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1825@localhost'>

*** User 2024-03-29 09:29:29.756 ***🔗
alicE_befriend_and_alienate_1825@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-03-29 09:29:29.756 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 out
<iq type='set' id='70dd918e59de9d20938a91748fee1cdd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:29:29.756 ***🔗
alicE_befriend_and_alienate_1825@localhost/res1 in
<iq id='70dd918e59de9d20938a91748fee1cdd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_1825@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:29:29.756 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 out
<iq type='set' id='5843c56f1363fcd186e679b7ef8912c3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:29:29.757 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='5843c56f1363fcd186e679b7ef8912c3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:29:29.757 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 out
<presence/>



*** User 2024-03-29 09:29:29.757 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost/res1' to='alice_befriend_and_alienate_1825@localhost/res1'/>



*** User 2024-03-29 09:29:29.758 ***🔗
bOb_befriend_and_alienate_1825@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-03-29 09:29:29.758 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3405e9ab42289b13' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-29 09:29:29.758 ***🔗
bOb_befriend_and_alienate_1825@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-03-29 09:29:29.759 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTgyNQBtYWtyb2xpa2E=</auth>



*** User 2024-03-29 09:29:29.759 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-29 09:29:29.759 ***🔗
bOb_befriend_and_alienate_1825@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-03-29 09:29:29.759 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1ac8e7139c22490' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1825@localhost'>

*** User 2024-03-29 09:29:29.760 ***🔗
bOb_befriend_and_alienate_1825@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-03-29 09:29:29.760 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 out
<iq type='set' id='8b6b393b66254130518af6cac6dc617b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-29 09:29:29.760 ***🔗
bOb_befriend_and_alienate_1825@localhost/res1 in
<iq id='8b6b393b66254130518af6cac6dc617b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_1825@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-29 09:29:29.760 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 out
<iq type='set' id='bb07317247050063b0f61711fa1b03bc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:29:29.761 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='bb07317247050063b0f61711fa1b03bc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-29 09:29:29.761 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 out
<presence/>



*** User 2024-03-29 09:29:29.761 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='bob_befriend_and_alienate_1825@localhost/res1' to='bob_befriend_and_alienate_1825@localhost/res1'/>



*** User 2024-03-29 09:29:29.763 ***🔗
REST request:
Code: 200
Req: {<0.54720.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2c4801ee379d847">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,370}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.765 ***🔗
REST request:
Code: 200
Req: {<0.54729.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"217b405a022d4361">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,385}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.767 ***🔗
REST request:
Code: 204
Req: {<0.54737.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"471d3dff25fe354c">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,892}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:29:29.769 ***🔗
REST request:
Code: 204
Req: {<0.54746.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4102bd7fe4dbe243">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,636}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:29:29.771 ***🔗
REST request:
Code: 204
Req: {<0.54750.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"359f5b39afac2da3">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,627}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-03-29 09:29:29.772 ***🔗
REST request:
Code: 200
Req: {<0.54756.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"06cd7d8237fabcbb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}]">>,
         213,362}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.774 ***🔗
REST request:
Code: 200
Req: {<0.54764.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8f404aeb534dd127">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}]">>,
         211,455}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.776 ***🔗
REST request:
Code: 204
Req: {<0.54768.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d3d985cd7041a53f">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,828}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-03-29 09:29:29.777 ***🔗
REST request:
Code: 200
Req: {<0.54775.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b5faa78eb48569b1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}]">>,
         210,396}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.779 ***🔗
REST request:
Code: 204
Req: {<0.54779.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71d48e4ea896234e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,950}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-03-29 09:29:29.781 ***🔗
REST request:
Code: 200
Req: {<0.54781.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b1ebab3b3cba2d18">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}]">>,
         209,328}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.782 ***🔗
REST request:
Code: 200
Req: {<0.54783.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9478d6b30120910">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}]">>,
         213,334}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.784 ***🔗
REST request:
Code: 204
Req: {<0.54785.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"25fb7bdd9b1f015c">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,1104}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-03-29 09:29:29.786 ***🔗
REST request:
Code: 200
Req: {<0.54787.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dc8bc3ca6a24ad38">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}]">>,
         212,442}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.787 ***🔗
REST request:
Code: 204
Req: {<0.54789.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"891700457b8f9450">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,938}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-03-29 09:29:29.789 ***🔗
REST request:
Code: 200
Req: {<0.54791.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5fae58936e9f7114">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1825@localhost\"}]">>,
         211,413}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.791 ***🔗
REST request:
Code: 200
Req: {<0.54793.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b43390429dafb26a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}]">>,
         213,416}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.794 ***🔗
REST request:
Code: 204
Req: {<0.54795.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4ed1af57467179d1">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,1578}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.796 ***🔗
REST request:
Code: 200
Req: {<0.54797.0>,
      <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7fb55214558076af">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,514}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.797 ***🔗
REST request:
Code: 200
Req: {<0.54799.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"72d90b2dd22b104a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1825@localhost\"}]">>,
         213,574}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.799 ***🔗
REST request:
Code: 204
Req: {<0.54801.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5223c44e3ca7fbae">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>}],
         <<>>,80,749}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_1825@localhost/alice_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.801 ***🔗
REST request:
Code: 200
Req: {<0.54803.0>,
      <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"71fe4d757cf3be38">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 29 Mar 2024 09:29:29 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,351}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1825@localhost">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='pushc0e33ed55f6b4dff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='push2909464e29b8b6a8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='pushe6196c30ad038930' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_1825@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<presence from='bob_befriend_and_alienate_1825@localhost/res1' to='alice_befriend_and_alienate_1825@localhost/res1'/>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='push228e9f8a7a294ac2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<presence from='bob_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' type='subscribed'/>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='pushfc7846d1356d6991' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<presence from='bob_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' type='subscribe'/>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='push4df88ae5093f05da' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<iq from='alice_befriend_and_alienate_1825@localhost' to='alice_befriend_and_alienate_1825@localhost/res1' id='push5cc5ca6f8836f009' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_1825@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-29 09:29:29.801 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
<presence from='bob_befriend_and_alienate_1825@localhost/res1' to='alice_befriend_and_alienate_1825@localhost/res1' type='unavailable'/>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='push6cfd5c8ceb6a4ca5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' type='subscribe'/>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='pushec63bdd63c79b0eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='push04159dc8d8279ec6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_1825@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost/res1' to='bob_befriend_and_alienate_1825@localhost/res1'/>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='push260cc4770db737b4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' type='subscribed'/>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost/res1' to='bob_befriend_and_alienate_1825@localhost/res1' type='unavailable'/>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='pushc2a0ee3a1d11bc31' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.802 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' type='unsubscribe'/>



*** User 2024-03-29 09:29:34.803 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='push833b49752e1406ad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-29 09:29:34.803 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<presence from='alice_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' type='unsubscribed'/>



*** User 2024-03-29 09:29:34.803 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
<iq from='bob_befriend_and_alienate_1825@localhost' to='bob_befriend_and_alienate_1825@localhost/res1' id='pushf625841c743322cc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_1825@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-29 09:29:39.803 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 out
</stream:stream>

*** User 2024-03-29 09:29:39.803 ***🔗
bob_befriend_and_alienate_1825@localhost/res1 in
</stream:stream>

*** User 2024-03-29 09:29:39.804 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 out
</stream:stream>

*** User 2024-03-29 09:29:39.804 ***🔗
alice_befriend_and_alienate_1825@localhost/res1 in
</stream:stream>
*** CT 2024-03-29 09:29:39.806 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4775.html



=== Ended at 2024-03-29 09:29:39
=== successfully completed test case
=== === Returned value: ok