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

=== Config value:

    [{watchdog,<0.88513.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@7856d109ddbc.2024-04-23_06.47.05/big_tests.tests.rest_SUITE.logs/run.2024-04-23_07.02.36/rest_suite.befriend_and_alienate.243970.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@7856d109ddbc.2024-04-23_06.47.05/big_tests.tests.rest_SUITE.logs/run.2024-04-23_07.02.36/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2}}},
     {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@7856d109ddbc.2024-04-23_06.47.05"

=== Started at 2024-04-23 07:02:37


*** CT 2024-04-23 07:02:37.418 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5520.html

*** User 2024-04-23 07:02:37.433 ***🔗
alicE_befriend_and_alienate_3354@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-23 07:02:37.434 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ee740943b2871e0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 07:02:37.434 ***🔗
alicE_befriend_and_alienate_3354@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-23 07:02:37.434 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzU0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 07:02:37.435 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 07:02:37.435 ***🔗
alicE_befriend_and_alienate_3354@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-23 07:02:37.435 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c8d49cae98de8a3' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3354@localhost'>

*** User 2024-04-23 07:02:37.435 ***🔗
alicE_befriend_and_alienate_3354@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-23 07:02:37.436 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 out
<iq type='set' id='281160fff2b361bb5a27de1a047bb698'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 07:02:37.436 ***🔗
alicE_befriend_and_alienate_3354@localhost/res1 in
<iq id='281160fff2b361bb5a27de1a047bb698' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 07:02:37.436 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 out
<iq type='set' id='ce815d328aa45316fd421e2ae67f0bb4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:02:37.437 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='ce815d328aa45316fd421e2ae67f0bb4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:02:37.437 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 out
<presence/>



*** User 2024-04-23 07:02:37.438 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost/res1' to='alice_befriend_and_alienate_3354@localhost/res1'/>



*** User 2024-04-23 07:02:37.439 ***🔗
bOb_befriend_and_alienate_3354@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-23 07:02:37.439 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6445dc049a9a174' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 07:02:37.439 ***🔗
bOb_befriend_and_alienate_3354@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-23 07:02:37.439 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM1NABtYWtyb2xpa2E=</auth>



*** User 2024-04-23 07:02:37.440 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 07:02:37.440 ***🔗
bOb_befriend_and_alienate_3354@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-23 07:02:37.441 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c8c89bc4376193c' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3354@localhost'>

*** User 2024-04-23 07:02:37.441 ***🔗
bOb_befriend_and_alienate_3354@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-23 07:02:37.441 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 out
<iq type='set' id='0ec2773a81de4c4afa5ed3af2e949431'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 07:02:37.442 ***🔗
bOb_befriend_and_alienate_3354@localhost/res1 in
<iq id='0ec2773a81de4c4afa5ed3af2e949431' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3354@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 07:02:37.442 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 out
<iq type='set' id='10a14909df89e266a160a657c0da1f1a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:02:37.442 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='10a14909df89e266a160a657c0da1f1a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:02:37.443 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 out
<presence/>



*** User 2024-04-23 07:02:37.444 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='bob_befriend_and_alienate_3354@localhost/res1' to='bob_befriend_and_alienate_3354@localhost/res1'/>



*** User 2024-04-23 07:02:37.447 ***🔗
REST request:
Code: 200
Req: {<0.88618.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8a159d4e2a97aa6a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1606}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.449 ***🔗
REST request:
Code: 200
Req: {<0.88624.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aa6674fe8795464e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1326}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.453 ***🔗
REST request:
Code: 204
Req: {<0.88632.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6caf4ba9699ab8eb">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,3673}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.457 ***🔗
REST request:
Code: 204
Req: {<0.88645.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"257ea95c823754f7">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,2667}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.460 ***🔗
REST request:
Code: 204
Req: {<0.88652.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0be10e73d5b8b2d9">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,2479}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}">>,
          method => <<"POST">>,role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.462 ***🔗
REST request:
Code: 200
Req: {<0.88654.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f116753d8381d198">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}]">>,
         213,1474}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.467 ***🔗
REST request:
Code: 200
Req: {<0.88656.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"943b2b3a33abccb8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}]">>,
         211,4010}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.471 ***🔗
REST request:
Code: 204
Req: {<0.88658.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"094375a3399aef8b">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,3393}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.473 ***🔗
REST request:
Code: 200
Req: {<0.88660.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c5b4fee6724e590a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}]">>,
         210,996}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.477 ***🔗
REST request:
Code: 204
Req: {<0.88664.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6300af51070067bb">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,2826}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.479 ***🔗
REST request:
Code: 200
Req: {<0.88670.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4af149114e9703c2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}]">>,
         209,1073}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.480 ***🔗
REST request:
Code: 200
Req: {<0.88672.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"da1f0a80363cd63e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}]">>,
         213,921}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.484 ***🔗
REST request:
Code: 204
Req: {<0.88674.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8de89d08dbdef572">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,3219}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.486 ***🔗
REST request:
Code: 200
Req: {<0.88678.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"456a90e6e03e331f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}]">>,
         212,1064}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.490 ***🔗
REST request:
Code: 204
Req: {<0.88682.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c79d50c198806bd9">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,3250}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          role => admin,return_headers => true}


*** User 2024-04-23 07:02:37.492 ***🔗
REST request:
Code: 200
Req: {<0.88684.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"203036f6799fe89f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3354@localhost\"}]">>,
         211,1017}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.494 ***🔗
REST request:
Code: 200
Req: {<0.88686.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"73769671f8a679db">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}]">>,
         213,893}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.499 ***🔗
REST request:
Code: 204
Req: {<0.88688.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5b11a128f5f141b4">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,4811}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.501 ***🔗
REST request:
Code: 200
Req: {<0.88690.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"13c28783dab1d38c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,907}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.503 ***🔗
REST request:
Code: 200
Req: {<0.88692.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4d70906ad4731b3a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3354@localhost\"}]">>,
         213,1105}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.505 ***🔗
REST request:
Code: 204
Req: {<0.88694.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"167b580a82fb429f">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>}],
         <<>>,80,1625}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3354@localhost/alice_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.507 ***🔗
REST request:
Code: 200
Req: {<0.88696.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d1385ed3536bb94a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:02:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1093}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3354@localhost">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => admin,
          return_headers => true}


*** User 2024-04-23 07:02:37.507 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pushbc3a88fe8f0ac9dd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pushf2cd01b439c25799' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pushf091d9f3992add6b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<presence from='bob_befriend_and_alienate_3354@localhost/res1' to='alice_befriend_and_alienate_3354@localhost/res1'/>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pusheb12d3ad7a9a1037' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<presence from='bob_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' type='subscribed'/>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='push76ac77853362d397' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<presence from='bob_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' type='subscribe'/>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pushe60521db9f3e07e9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<iq from='alice_befriend_and_alienate_3354@localhost' to='alice_befriend_and_alienate_3354@localhost/res1' id='pushfd471d64a7cdce2a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3354@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 07:02:37.508 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
<presence from='bob_befriend_and_alienate_3354@localhost/res1' to='alice_befriend_and_alienate_3354@localhost/res1' type='unavailable'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='push6ba988a589a27d94' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' type='subscribe'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='push7a5aa608abea7dc1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='push9a778a47c961371c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3354@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost/res1' to='bob_befriend_and_alienate_3354@localhost/res1'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='pushf52541e480988fb7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' type='subscribed'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost/res1' to='bob_befriend_and_alienate_3354@localhost/res1' type='unavailable'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='push7dbc6da22c9f8bb5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' type='unsubscribe'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='pusha26b603129d073eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<presence from='alice_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' type='unsubscribed'/>



*** User 2024-04-23 07:02:42.509 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
<iq from='bob_befriend_and_alienate_3354@localhost' to='bob_befriend_and_alienate_3354@localhost/res1' id='push50b329377a187c47' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3354@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 07:02:47.510 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-23 07:02:47.510 ***🔗
bob_befriend_and_alienate_3354@localhost/res1 in
</stream:stream>

*** User 2024-04-23 07:02:47.510 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 out
</stream:stream>

*** User 2024-04-23 07:02:47.510 ***🔗
alice_befriend_and_alienate_3354@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 07:02:47.513 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5520.html



=== Ended at 2024-04-23 07:02:47
=== successfully completed test case
=== === Returned value: ok