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

=== Config value:

    [{watchdog,<0.86727.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@be559609069e.2024-04-16_10.55.25/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.12.35/rest_suite.befriend_and_alienate.168323.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@be559609069e.2024-04-16_10.55.25/big_tests.tests.rest_SUITE.logs/run.2024-04-16_11.12.35/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_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 =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@be559609069e.2024-04-16_10.55.25"

=== Started at 2024-04-16 11:12:36


*** CT 2024-04-16 11:12:36.045 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4731.html

*** User 2024-04-16 11:12:36.091 ***🔗
alicE_befriend_and_alienate_3398@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-16 11:12:36.092 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c73e12e276c28bc7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 11:12:36.092 ***🔗
alicE_befriend_and_alienate_3398@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-16 11:12:36.092 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzk4AG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 11:12:36.094 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 11:12:36.094 ***🔗
alicE_befriend_and_alienate_3398@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-16 11:12:36.097 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efd8708610ef105a' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3398@localhost'>

*** User 2024-04-16 11:12:36.097 ***🔗
alicE_befriend_and_alienate_3398@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-16 11:12:36.097 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 out
<iq type='set' id='c87c6dff6b118c060e8242dffc02a742'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 11:12:36.098 ***🔗
alicE_befriend_and_alienate_3398@localhost/res1 in
<iq id='c87c6dff6b118c060e8242dffc02a742' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3398@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 11:12:36.098 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 out
<iq type='set' id='582f065e44392be6407ce206c7d70f57'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:12:36.099 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='582f065e44392be6407ce206c7d70f57' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:12:36.099 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 out
<presence/>



*** User 2024-04-16 11:12:36.102 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost/res1' to='alice_befriend_and_alienate_3398@localhost/res1'/>



*** User 2024-04-16 11:12:36.103 ***🔗
bOb_befriend_and_alienate_3398@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-16 11:12:36.103 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9e0f8f8da6814e5' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 11:12:36.103 ***🔗
bOb_befriend_and_alienate_3398@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-16 11:12:36.103 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM5OABtYWtyb2xpa2E=</auth>



*** User 2024-04-16 11:12:36.108 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 11:12:36.108 ***🔗
bOb_befriend_and_alienate_3398@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-16 11:12:36.108 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4996ee5c11360f7b' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3398@localhost'>

*** User 2024-04-16 11:12:36.109 ***🔗
bOb_befriend_and_alienate_3398@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-16 11:12:36.109 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 out
<iq type='set' id='8c5fa9fb0963308bc845bbe53b9bdfcd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 11:12:36.109 ***🔗
bOb_befriend_and_alienate_3398@localhost/res1 in
<iq id='8c5fa9fb0963308bc845bbe53b9bdfcd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3398@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 11:12:36.109 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 out
<iq type='set' id='93d8e209c1c8755e6e6305ecbca59d4e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:12:36.110 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='93d8e209c1c8755e6e6305ecbca59d4e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 11:12:36.110 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 out
<presence/>



*** User 2024-04-16 11:12:36.113 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='bob_befriend_and_alienate_3398@localhost/res1' to='bob_befriend_and_alienate_3398@localhost/res1'/>



*** User 2024-04-16 11:12:36.123 ***🔗
REST request:
Code: 200
Req: {<0.86842.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7a9c8ef8891a6974">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,9430}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.127 ***🔗
REST request:
Code: 200
Req: {<0.86852.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"485f8e3bbf6a415b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2220}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.166 ***🔗
REST request:
Code: 204
Req: {<0.86856.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fc1787e3428438fc">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>}],
         <<>>,80,22332}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.182 ***🔗
REST request:
Code: 204
Req: {<0.86864.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b27ef8d824351f6">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>}],
         <<>>,80,14568}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.200 ***🔗
REST request:
Code: 204
Req: {<0.86866.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"25ffab0843b0d501">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>}],
         <<>>,80,17527}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.205 ***🔗
REST request:
Code: 200
Req: {<0.86868.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"89416546222a1a78">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}]">>,
         213,3015}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.209 ***🔗
REST request:
Code: 200
Req: {<0.86870.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6cd4cb593bb9ebdb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:35 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}]">>,
         211,2996}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.222 ***🔗
REST request:
Code: 204
Req: {<0.86872.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"088c207c03a0e748">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,11282}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.228 ***🔗
REST request:
Code: 200
Req: {<0.86874.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4aa7c2dfe3e45daa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}]">>,
         210,4534}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.239 ***🔗
REST request:
Code: 204
Req: {<0.86876.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"95b2c03e3313d65a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,9352}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.243 ***🔗
REST request:
Code: 200
Req: {<0.86882.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"43264b331564f874">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}]">>,
         209,2962}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.249 ***🔗
REST request:
Code: 200
Req: {<0.86886.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5bd9a35b7769d490">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}]">>,
         213,2898}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.260 ***🔗
REST request:
Code: 204
Req: {<0.86888.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ad46fd8c3ea91dda">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,9116}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.265 ***🔗
REST request:
Code: 200
Req: {<0.86890.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9a518e55a226fd1">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}]">>,
         212,4405}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.291 ***🔗
REST request:
Code: 204
Req: {<0.86894.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ac73feab0ed5b6e6">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,24109}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-16 11:12:36.295 ***🔗
REST request:
Code: 200
Req: {<0.86898.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e17850c78e0cf75">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3398@localhost\"}]">>,
         211,2995}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.299 ***🔗
REST request:
Code: 200
Req: {<0.86900.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"00df4996bad01657">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}]">>,
         213,2678}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.316 ***🔗
REST request:
Code: 204
Req: {<0.86902.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb8aad9382fc4a53">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,15343}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.320 ***🔗
REST request:
Code: 200
Req: {<0.86904.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1e541ad848203012">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2456}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.323 ***🔗
REST request:
Code: 200
Req: {<0.86906.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05a29fba6c7b2104">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3398@localhost\"}]">>,
         213,2525}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.330 ***🔗
REST request:
Code: 204
Req: {<0.86908.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8db77da9e65dfa94">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>}],
         <<>>,80,5759}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3398@localhost/alice_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.334 ***🔗
REST request:
Code: 200
Req: {<0.86910.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f71f776fdd020b8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 11:12:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2646}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3398@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='push05433a14b81a0249' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='pushd46db56e12ab3629' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='pushe44ceed74c07282a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3398@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<presence from='bob_befriend_and_alienate_3398@localhost/res1' to='alice_befriend_and_alienate_3398@localhost/res1'/>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='pushdb29e4530f9bee7c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<presence from='bob_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' type='subscribed'/>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='push48bf14367790f47d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<presence from='bob_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' type='subscribe'/>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='push251ec0e3133f5ed2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<iq from='alice_befriend_and_alienate_3398@localhost' to='alice_befriend_and_alienate_3398@localhost/res1' id='pushf391583215939f09' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3398@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 11:12:36.335 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
<presence from='bob_befriend_and_alienate_3398@localhost/res1' to='alice_befriend_and_alienate_3398@localhost/res1' type='unavailable'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='pushbea639fdec3869be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' type='subscribe'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='push8c700470972527a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='pushd1c6d0e517416585' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3398@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost/res1' to='bob_befriend_and_alienate_3398@localhost/res1'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='push35b5304947415471' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' type='subscribed'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost/res1' to='bob_befriend_and_alienate_3398@localhost/res1' type='unavailable'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='push88f390b56cbaf676' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' type='unsubscribe'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='pushc36f817984055b6a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<presence from='alice_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' type='unsubscribed'/>



*** User 2024-04-16 11:12:41.336 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
<iq from='bob_befriend_and_alienate_3398@localhost' to='bob_befriend_and_alienate_3398@localhost/res1' id='pushc215f27f4be84542' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3398@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 11:12:46.337 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 out
</stream:stream>

*** User 2024-04-16 11:12:46.337 ***🔗
bob_befriend_and_alienate_3398@localhost/res1 in
</stream:stream>

*** User 2024-04-16 11:12:46.337 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 out
</stream:stream>

*** User 2024-04-16 11:12:46.338 ***🔗
alice_befriend_and_alienate_3398@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 11:12:46.340 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4731.html



=== Ended at 2024-04-16 11:12:46
=== successfully completed test case
=== === Returned value: ok