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

=== Config value:

    [{watchdog,<0.87488.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.18.28/rest_suite.befriend_and_alienate.105476.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.18.28/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_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_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@26557528e1a5.2024-04-25_12.01.25"

=== Started at 2024-04-25 12:18:29


*** CT 2024-04-25 12:18:29.398 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4949.html

*** User 2024-04-25 12:18:29.415 ***🔗
alicE_befriend_and_alienate_3432@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-25 12:18:29.417 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f8c48c22f47ff17' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:29.417 ***🔗
alicE_befriend_and_alienate_3432@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-25 12:18:29.417 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zNDMyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 12:18:29.418 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:29.418 ***🔗
alicE_befriend_and_alienate_3432@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-25 12:18:29.418 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='872580c941eacd90' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3432@localhost'>

*** User 2024-04-25 12:18:29.418 ***🔗
alicE_befriend_and_alienate_3432@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-25 12:18:29.418 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 out
<iq type='set' id='a764b692191e53b6099109fbf59f7256'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:29.419 ***🔗
alicE_befriend_and_alienate_3432@localhost/res1 in
<iq id='a764b692191e53b6099109fbf59f7256' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3432@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:29.419 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 out
<iq type='set' id='c180798a45f3e66605fc9a3f58dfef95'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:29.420 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='c180798a45f3e66605fc9a3f58dfef95' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:29.420 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:29.421 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost/res1' to='alice_befriend_and_alienate_3432@localhost/res1'/>



*** User 2024-04-25 12:18:29.422 ***🔗
bOb_befriend_and_alienate_3432@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-25 12:18:29.423 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef73a76661fb81b6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:29.423 ***🔗
bOb_befriend_and_alienate_3432@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-25 12:18:29.423 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzQzMgBtYWtyb2xpa2E=</auth>



*** User 2024-04-25 12:18:29.424 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:29.424 ***🔗
bOb_befriend_and_alienate_3432@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-25 12:18:29.424 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb9d3a7554844f8c' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3432@localhost'>

*** User 2024-04-25 12:18:29.424 ***🔗
bOb_befriend_and_alienate_3432@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-25 12:18:29.425 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 out
<iq type='set' id='d01c38adda2e34f16bf3741800ba0dfd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:29.425 ***🔗
bOb_befriend_and_alienate_3432@localhost/res1 in
<iq id='d01c38adda2e34f16bf3741800ba0dfd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3432@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:29.425 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 out
<iq type='set' id='a1927cde975697ec1223204da679167e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:29.425 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='a1927cde975697ec1223204da679167e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:29.426 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:29.428 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='bob_befriend_and_alienate_3432@localhost/res1' to='bob_befriend_and_alienate_3432@localhost/res1'/>



*** User 2024-04-25 12:18:29.432 ***🔗
REST request:
Code: 200
Req: {<0.87595.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4eb0d8a0f8e7698b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2210}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.435 ***🔗
REST request:
Code: 200
Req: {<0.87601.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e09c1f5920b65efe">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1943}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.460 ***🔗
REST request:
Code: 204
Req: {<0.87609.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a3112568a2763997">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,14154}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:29.467 ***🔗
REST request:
Code: 204
Req: {<0.87622.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5834e0bf5f5e000a">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,4792}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:29.473 ***🔗
REST request:
Code: 204
Req: {<0.87624.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ca32869459cc84a">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,4033}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:29.477 ***🔗
REST request:
Code: 200
Req: {<0.87629.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"623638d71f3172d9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}]">>,
         213,2122}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.479 ***🔗
REST request:
Code: 200
Req: {<0.87631.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4b3add510edc7a6a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}]">>,
         211,1297}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.486 ***🔗
REST request:
Code: 204
Req: {<0.87633.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4100e55b97a8113c">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,5100}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 12:18:29.489 ***🔗
REST request:
Code: 200
Req: {<0.87635.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93483035f19c1211">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}]">>,
         210,1977}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.495 ***🔗
REST request:
Code: 204
Req: {<0.87637.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3da74ce4df5e442e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,4675}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 12:18:29.501 ***🔗
REST request:
Code: 200
Req: {<0.87643.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5f62f93a40638d5c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}]">>,
         209,2817}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.504 ***🔗
REST request:
Code: 200
Req: {<0.87647.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5cd24a65b6b38116">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}]">>,
         213,1885}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.510 ***🔗
REST request:
Code: 204
Req: {<0.87649.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b657c9ddb94f0245">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,4474}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-25 12:18:29.513 ***🔗
REST request:
Code: 200
Req: {<0.87651.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64b1a417a90bbe95">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}]">>,
         212,1397}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.519 ***🔗
REST request:
Code: 204
Req: {<0.87655.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8782ac0e78c908ef">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,4786}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-25 12:18:29.525 ***🔗
REST request:
Code: 200
Req: {<0.87659.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b9ad14b9edb90ed7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3432@localhost\"}]">>,
         211,4727}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.529 ***🔗
REST request:
Code: 200
Req: {<0.87661.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c5dfee709a52e9da">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}]">>,
         213,2070}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.541 ***🔗
REST request:
Code: 204
Req: {<0.87663.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b47bfc2a6e704a8b">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,11296}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.551 ***🔗
REST request:
Code: 200
Req: {<0.87665.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"174b78c0ddcce9ec">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,7546}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.556 ***🔗
REST request:
Code: 200
Req: {<0.87667.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac81889b45437266">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3432@localhost\"}]">>,
         213,2868}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.560 ***🔗
REST request:
Code: 204
Req: {<0.87669.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd444457122d40d1">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>}],
         <<>>,80,2283}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3432@localhost/alice_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.564 ***🔗
REST request:
Code: 200
Req: {<0.87671.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc69b103aa7e3dee">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1507}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3432@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-25 12:18:29.564 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='push70a94ffce24dba16' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='push1b651a4706ffa4cb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='pushaebd12e9b3356a0e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3432@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<presence from='bob_befriend_and_alienate_3432@localhost/res1' to='alice_befriend_and_alienate_3432@localhost/res1'/>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='push8f94fd3c67d8b23b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<presence from='bob_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' type='subscribed'/>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='push94ba848e1f7972f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<presence from='bob_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' type='subscribe'/>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='push165335ea5ff8e60f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<iq from='alice_befriend_and_alienate_3432@localhost' to='alice_befriend_and_alienate_3432@localhost/res1' id='pushf683a7c24d9f54c5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3432@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 12:18:29.565 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
<presence from='bob_befriend_and_alienate_3432@localhost/res1' to='alice_befriend_and_alienate_3432@localhost/res1' type='unavailable'/>



*** User 2024-04-25 12:18:34.566 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='push07a2490e9e558c9f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.566 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' type='subscribe'/>



*** User 2024-04-25 12:18:34.566 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='push4058c85d58d098cf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.566 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='push897a930a97a15d5a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3432@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost/res1' to='bob_befriend_and_alienate_3432@localhost/res1'/>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='pushb9f655371b8e0cf3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' type='subscribed'/>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost/res1' to='bob_befriend_and_alienate_3432@localhost/res1' type='unavailable'/>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='pushb6c3f60e24b8cf56' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' type='unsubscribe'/>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='pushe42a6d00a635eea3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<presence from='alice_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' type='unsubscribed'/>



*** User 2024-04-25 12:18:34.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
<iq from='bob_befriend_and_alienate_3432@localhost' to='bob_befriend_and_alienate_3432@localhost/res1' id='push57d0f13fda4de087' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3432@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 12:18:39.567 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:39.568 ***🔗
bob_befriend_and_alienate_3432@localhost/res1 in
</stream:stream>

*** User 2024-04-25 12:18:39.568 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:39.568 ***🔗
alice_befriend_and_alienate_3432@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 12:18:39.571 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4968.html



=== Ended at 2024-04-25 12:18:39
=== successfully completed test case
=== === Returned value: ok