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

=== Config value:

    [{watchdog,<0.103854.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.31.10/rest_suite.befriend_and_alienate.274050.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@d67ced1141dd.2024-04-16_10.12.40/big_tests.tests.rest_SUITE.logs/run.2024-04-16_10.31.10/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        mod_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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              resume_timeout => 600},
        mod_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@d67ced1141dd.2024-04-16_10.12.40"

=== Started at 2024-04-16 10:31:11


*** CT 2024-04-16 10:31:11.941 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4751.html

*** User 2024-04-16 10:31:11.958 ***🔗
alicE_befriend_and_alienate_4142@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 10:31:11.959 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bef2981f09b4c00b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:31:11.959 ***🔗
alicE_befriend_and_alienate_4142@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 10:31:11.959 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV80MTQyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:31:11.960 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:31:11.960 ***🔗
alicE_befriend_and_alienate_4142@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 10:31:11.961 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abbfb468727d11ca' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_4142@localhost'>

*** User 2024-04-16 10:31:11.961 ***🔗
alicE_befriend_and_alienate_4142@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 10:31:11.961 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 out
<iq type='set' id='47be887287ae5d084fa4f3d2715a0d3a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:31:11.961 ***🔗
alicE_befriend_and_alienate_4142@localhost/res1 in
<iq id='47be887287ae5d084fa4f3d2715a0d3a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_4142@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:31:11.962 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 out
<iq type='set' id='fce3fd0908022b8cde464600e11067dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:31:11.962 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='fce3fd0908022b8cde464600e11067dd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:31:11.962 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 out
<presence/>



*** User 2024-04-16 10:31:11.964 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost/res1' to='alice_befriend_and_alienate_4142@localhost/res1'/>



*** User 2024-04-16 10:31:11.965 ***🔗
bOb_befriend_and_alienate_4142@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 10:31:11.966 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da32aab21cd46980' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:31:11.966 ***🔗
bOb_befriend_and_alienate_4142@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 10:31:11.966 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfNDE0MgBtYWtyb2xpa2E=</auth>



*** User 2024-04-16 10:31:11.967 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:31:11.967 ***🔗
bOb_befriend_and_alienate_4142@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 10:31:11.968 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='86fb3ae4d1f897de' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_4142@localhost'>

*** User 2024-04-16 10:31:11.968 ***🔗
bOb_befriend_and_alienate_4142@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 10:31:11.968 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 out
<iq type='set' id='1a8f81904472018b2bc6a5d88b90e0b3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:31:11.968 ***🔗
bOb_befriend_and_alienate_4142@localhost/res1 in
<iq id='1a8f81904472018b2bc6a5d88b90e0b3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_4142@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:31:11.968 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 out
<iq type='set' id='21bd9ad99dff8ff4ba49036847747a4f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:31:11.969 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='21bd9ad99dff8ff4ba49036847747a4f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:31:11.969 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 out
<presence/>



*** User 2024-04-16 10:31:11.971 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='bob_befriend_and_alienate_4142@localhost/res1' to='bob_befriend_and_alienate_4142@localhost/res1'/>



*** User 2024-04-16 10:31:11.975 ***🔗
REST request:
Code: 200
Req: {<0.103963.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb38d51b4f77c517">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2527}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:11.978 ***🔗
REST request:
Code: 200
Req: {<0.103973.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f8c08db44315f7a9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1954}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:11.985 ***🔗
REST request:
Code: 204
Req: {<0.103979.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bfcf5c5d00bfc115">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,6005}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-16 10:31:11.992 ***🔗
REST request:
Code: 204
Req: {<0.103990.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"437ef571b263b7aa">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,5349}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-16 10:31:12.003 ***🔗
REST request:
Code: 204
Req: {<0.103993.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"835c06468761a1a2">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,10294}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}">>,
          role => admin,method => <<"POST">>,return_headers => true}


*** User 2024-04-16 10:31:12.006 ***🔗
REST request:
Code: 200
Req: {<0.103995.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f37d803489403120">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}]">>,
         213,1964}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.009 ***🔗
REST request:
Code: 200
Req: {<0.103997.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d8116e65c51267b4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}]">>,
         211,1848}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.019 ***🔗
REST request:
Code: 204
Req: {<0.103999.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ed718a39bdd7c757">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,8181}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-16 10:31:12.064 ***🔗
REST request:
Code: 200
Req: {<0.104001.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5e92ae3b7db1ce71">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}]">>,
         210,2092}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.075 ***🔗
REST request:
Code: 204
Req: {<0.104007.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ff441daf5338a3e">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,9044}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-16 10:31:12.081 ***🔗
REST request:
Code: 200
Req: {<0.104011.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"560b37004cde1a78">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}]">>,
         209,5405}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.085 ***🔗
REST request:
Code: 200
Req: {<0.104013.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe87ef94e2e77682">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}]">>,
         213,1960}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.095 ***🔗
REST request:
Code: 204
Req: {<0.104015.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"914121b167eaab61">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,8536}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-16 10:31:12.098 ***🔗
REST request:
Code: 200
Req: {<0.104021.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5cb67028c6ac6485">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}]">>,
         212,2362}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.107 ***🔗
REST request:
Code: 204
Req: {<0.104023.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"609586041fd3b23f">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,7385}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,role => admin,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-16 10:31:12.110 ***🔗
REST request:
Code: 200
Req: {<0.104025.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a872879f50581bae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_4142@localhost\"}]">>,
         211,2479}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.114 ***🔗
REST request:
Code: 200
Req: {<0.104027.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8ba6497dde09f5d4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}]">>,
         213,1997}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.127 ***🔗
REST request:
Code: 204
Req: {<0.104029.0>,
      <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b75e09616c472c65">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,12678}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_4142@localhost/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"DELETE">>,
          return_headers => true}


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


*** User 2024-04-16 10:31:12.135 ***🔗
REST request:
Code: 200
Req: {<0.104033.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"11f9853e95197242">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_4142@localhost\"}]">>,
         213,2512}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.140 ***🔗
REST request:
Code: 204
Req: {<0.104035.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"42840a44156fd2c2">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>}],
         <<>>,80,4231}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_4142@localhost/alice_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.144 ***🔗
REST request:
Code: 200
Req: {<0.104037.0>,
      <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d66c0828f100c77b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:31:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2363}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_4142@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => admin,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='push83b85ac626265481' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='pusha68aed0230e965d8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='pushb88792e11298afa6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_4142@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<presence from='bob_befriend_and_alienate_4142@localhost/res1' to='alice_befriend_and_alienate_4142@localhost/res1'/>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='pushd7d8c9bdedc0b9e4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<presence from='bob_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' type='subscribed'/>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='push35ccc1a8a5ae5d8f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<presence from='bob_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' type='subscribe'/>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='push557a3b330e76db66' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<iq from='alice_befriend_and_alienate_4142@localhost' to='alice_befriend_and_alienate_4142@localhost/res1' id='push355cb86326422092' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_4142@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 10:31:12.144 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
<presence from='bob_befriend_and_alienate_4142@localhost/res1' to='alice_befriend_and_alienate_4142@localhost/res1' type='unavailable'/>



*** User 2024-04-16 10:31:17.145 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='pushe1cb4c33d88db33c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' type='subscribe'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='pushb6497234169db608' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='push077acfe8b9f7a0ab' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_4142@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost/res1' to='bob_befriend_and_alienate_4142@localhost/res1'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='pusha730aa6c7d80df53' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' type='subscribed'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost/res1' to='bob_befriend_and_alienate_4142@localhost/res1' type='unavailable'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='push8f22401829ec1a7c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' type='unsubscribe'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='pusheea179e05671034f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<presence from='alice_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' type='unsubscribed'/>



*** User 2024-04-16 10:31:17.146 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
<iq from='bob_befriend_and_alienate_4142@localhost' to='bob_befriend_and_alienate_4142@localhost/res1' id='push728ec53bec6aaa0e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_4142@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-16 10:31:22.147 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:31:22.148 ***🔗
bob_befriend_and_alienate_4142@localhost/res1 in
</stream:stream>

*** User 2024-04-16 10:31:22.148 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 out
</stream:stream>

*** User 2024-04-16 10:31:22.149 ***🔗
alice_befriend_and_alienate_4142@localhost/res1 in
</stream:stream>
*** CT 2024-04-16 10:31:22.152 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4751.html



=== Ended at 2024-04-16 10:31:22
=== successfully completed test case
=== === Returned value: ok