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

=== Config value:

    [{watchdog,<0.85886.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@c566e7588063.2024-02-23_15.58.53/big_tests.tests.rest_SUITE.logs/run.2024-02-23_16.14.40/rest_suite.befriend_and_alienate.222722.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@c566e7588063.2024-02-23_15.58.53/big_tests.tests.rest_SUITE.logs/run.2024-02-23_16.14.40/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        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_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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@c566e7588063.2024-02-23_15.58.53"

=== Started at 2024-02-23 16:14:41


*** CT 2024-02-23 16:14:41.090 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4921.html

*** User 2024-02-23 16:14:41.106 ***🔗
alicE_befriend_and_alienate_3216@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-02-23 16:14:41.107 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='37e82bbde94a7361' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-23 16:14:41.107 ***🔗
alicE_befriend_and_alienate_3216@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-02-23 16:14:41.107 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMjE2AG1hdHlncnlzYQ==</auth>



*** User 2024-02-23 16:14:41.108 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-23 16:14:41.108 ***🔗
alicE_befriend_and_alienate_3216@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-02-23 16:14:41.109 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff5b2c07690d0713' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3216@localhost'>

*** User 2024-02-23 16:14:41.110 ***🔗
alicE_befriend_and_alienate_3216@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-02-23 16:14:41.110 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 out
<iq type='set' id='c85660744ab8af30112041cad596d062'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-23 16:14:41.110 ***🔗
alicE_befriend_and_alienate_3216@localhost/res1 in
<iq id='c85660744ab8af30112041cad596d062' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3216@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 16:14:41.110 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 out
<iq type='set' id='44c3ea2605ee0a4c94d007be91f21b8d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 16:14:41.111 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='44c3ea2605ee0a4c94d007be91f21b8d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 16:14:41.111 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 out
<presence/>



*** User 2024-02-23 16:14:41.113 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost/res1' to='alice_befriend_and_alienate_3216@localhost/res1'/>



*** User 2024-02-23 16:14:41.114 ***🔗
bOb_befriend_and_alienate_3216@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-02-23 16:14:41.114 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6e3a8815f142d91' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-02-23 16:14:41.114 ***🔗
bOb_befriend_and_alienate_3216@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-02-23 16:14:41.114 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzIxNgBtYWtyb2xpa2E=</auth>



*** User 2024-02-23 16:14:41.115 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-23 16:14:41.115 ***🔗
bOb_befriend_and_alienate_3216@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-02-23 16:14:41.116 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abf587f628f58b34' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3216@localhost'>

*** User 2024-02-23 16:14:41.116 ***🔗
bOb_befriend_and_alienate_3216@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-02-23 16:14:41.116 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 out
<iq type='set' id='761498e0593a05d8c1c4f275de8e08db'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-23 16:14:41.116 ***🔗
bOb_befriend_and_alienate_3216@localhost/res1 in
<iq id='761498e0593a05d8c1c4f275de8e08db' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3216@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 16:14:41.116 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 out
<iq type='set' id='34d1ac0dca6d282c21fb1f14e4232c86'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 16:14:41.117 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='34d1ac0dca6d282c21fb1f14e4232c86' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 16:14:41.117 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 out
<presence/>



*** User 2024-02-23 16:14:41.119 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='bob_befriend_and_alienate_3216@localhost/res1' to='bob_befriend_and_alienate_3216@localhost/res1'/>



*** User 2024-02-23 16:14:41.121 ***🔗
REST request:
Code: 200
Req: {<0.85992.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"78fe649fe24110bd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1400}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.125 ***🔗
REST request:
Code: 200
Req: {<0.85999.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef0816516c0c7067">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1711}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.128 ***🔗
REST request:
Code: 204
Req: {<0.86007.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"15beb8459d6ba4fe">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,2741}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.133 ***🔗
REST request:
Code: 204
Req: {<0.86016.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c62e9dbc77d843f4">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,3709}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.137 ***🔗
REST request:
Code: 204
Req: {<0.86025.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4bfa9a76f01a14cf">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,2496}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.140 ***🔗
REST request:
Code: 200
Req: {<0.86027.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62f8120c22da7d8a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}]">>,
         213,2287}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.143 ***🔗
REST request:
Code: 200
Req: {<0.86029.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec47dc288f0bbe91">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}]">>,
         211,1207}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.188 ***🔗
REST request:
Code: 204
Req: {<0.86031.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b44360e475d78d8e">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,43772}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.192 ***🔗
REST request:
Code: 200
Req: {<0.86033.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96312d8b47d14e73">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}]">>,
         210,2933}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.197 ***🔗
REST request:
Code: 204
Req: {<0.86037.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6a697d5a43075114">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,3968}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.200 ***🔗
REST request:
Code: 200
Req: {<0.86041.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"919e20243849889f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}]">>,
         209,1613}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.202 ***🔗
REST request:
Code: 200
Req: {<0.86045.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8fa1b80e5e611aa5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}]">>,
         213,1402}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.208 ***🔗
REST request:
Code: 204
Req: {<0.86047.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e64d3f11d1d090af">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,4196}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.211 ***🔗
REST request:
Code: 200
Req: {<0.86049.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8f626c519475eccc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}]">>,
         212,1513}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.216 ***🔗
REST request:
Code: 204
Req: {<0.86054.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"651a660ba0eda06a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,4026}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-02-23 16:14:41.219 ***🔗
REST request:
Code: 200
Req: {<0.86057.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"16e1389fb36038c7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3216@localhost\"}]">>,
         211,1582}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.221 ***🔗
REST request:
Code: 200
Req: {<0.86059.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ac14fec4e8d1078">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}]">>,
         213,1397}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.229 ***🔗
REST request:
Code: 204
Req: {<0.86061.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fb87b9ecbabdf0ec">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,6821}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.232 ***🔗
REST request:
Code: 200
Req: {<0.86063.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ee8226bb14d0bbdf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1409}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.235 ***🔗
REST request:
Code: 200
Req: {<0.86065.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c33f318aa362fb22">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3216@localhost\"}]">>,
         213,1454}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.238 ***🔗
REST request:
Code: 204
Req: {<0.86067.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1a34574f046e4cbd">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>}],
         <<>>,80,1825}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3216@localhost/alice_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.240 ***🔗
REST request:
Code: 200
Req: {<0.86069.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"19ba7b197940111f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 16:14:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1305}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3216@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-02-23 16:14:41.240 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='push56adfe2ee554d256' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.240 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='push26780e611d7f1dfd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.240 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='push32ea601e9f83beb4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<presence from='bob_befriend_and_alienate_3216@localhost/res1' to='alice_befriend_and_alienate_3216@localhost/res1'/>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='pusha8b34b3b174aed0d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<presence from='bob_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' type='subscribed'/>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='pushb7bdde779a55115f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<presence from='bob_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' type='subscribe'/>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='push3ac8f939aeb6ff81' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<iq from='alice_befriend_and_alienate_3216@localhost' to='alice_befriend_and_alienate_3216@localhost/res1' id='push3731aa6473687de4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:41.241 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
<presence from='bob_befriend_and_alienate_3216@localhost/res1' to='alice_befriend_and_alienate_3216@localhost/res1' type='unavailable'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push9dfe260079856586' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' type='subscribe'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push0b389f63745c8a4e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push4609f1b97d09498b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost/res1' to='bob_befriend_and_alienate_3216@localhost/res1'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push9fdd629943bdb829' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' type='subscribed'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost/res1' to='bob_befriend_and_alienate_3216@localhost/res1' type='unavailable'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='pushd5ef619652a651a3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' type='unsubscribe'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push87ae082d751e0f6e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<presence from='alice_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' type='unsubscribed'/>



*** User 2024-02-23 16:14:46.242 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
<iq from='bob_befriend_and_alienate_3216@localhost' to='bob_befriend_and_alienate_3216@localhost/res1' id='push36cfdc740434cf10' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_3216@localhost'/>
	</query>
</iq>



*** User 2024-02-23 16:14:51.243 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 out
</stream:stream>

*** User 2024-02-23 16:14:51.244 ***🔗
bob_befriend_and_alienate_3216@localhost/res1 in
</stream:stream>

*** User 2024-02-23 16:14:51.244 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 out
</stream:stream>

*** User 2024-02-23 16:14:51.244 ***🔗
alice_befriend_and_alienate_3216@localhost/res1 in
</stream:stream>
*** CT 2024-02-23 16:14:51.247 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4940.html



=== Ended at 2024-02-23 16:14:51
=== successfully completed test case
=== === Returned value: ok