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

=== Config value:

    [{watchdog,<0.87861.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@171702243e91.2024-04-23_06.47.29/big_tests.tests.rest_SUITE.logs/run.2024-04-23_07.03.15/rest_suite.befriend_and_alienate.240770.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@171702243e91.2024-04-23_06.47.29/big_tests.tests.rest_SUITE.logs/run.2024-04-23_07.03.15/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_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@171702243e91.2024-04-23_06.47.29"

=== Started at 2024-04-23 07:03:16


*** CT 2024-04-23 07:03:16.248 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5307.html

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

*** User 2024-04-23 07:03:16.265 ***🔗
alicE_befriend_and_alienate_3360@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:03:16.266 ***🔗
alicE_befriend_and_alienate_3360@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzYwAG1hdHlncnlzYQ==</auth>



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



*** User 2024-04-23 07:03:16.267 ***🔗
alicE_befriend_and_alienate_3360@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:03:16.267 ***🔗
alicE_befriend_and_alienate_3360@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13e89fa5949cea9b' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3360@localhost'>

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



*** User 2024-04-23 07:03:16.267 ***🔗
alicE_befriend_and_alienate_3360@localhost/res1 in
<iq id='c2573c20f57da7e9f0581a438dce166f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3360@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 07:03:16.267 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 out
<iq type='set' id='e3c112336d8ab306245ce48ebe6ff94b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



*** User 2024-04-23 07:03:16.268 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 out
<presence/>



*** User 2024-04-23 07:03:16.270 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost/res1' to='alice_befriend_and_alienate_3360@localhost/res1'/>



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

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



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



*** User 2024-04-23 07:03:16.272 ***🔗
bOb_befriend_and_alienate_3360@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:03:16.273 ***🔗
bOb_befriend_and_alienate_3360@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56d91292543e5aed' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3360@localhost'>

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



*** User 2024-04-23 07:03:16.273 ***🔗
bOb_befriend_and_alienate_3360@localhost/res1 in
<iq id='f0c5661632eb91e408fbec4261129a90' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3360@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 07:03:16.274 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 out
<iq type='set' id='94242ba2244d93f7c59ae5c86f7edf20'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:03:16.274 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='94242ba2244d93f7c59ae5c86f7edf20' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:03:16.274 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 out
<presence/>



*** User 2024-04-23 07:03:16.276 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='bob_befriend_and_alienate_3360@localhost/res1' to='bob_befriend_and_alienate_3360@localhost/res1'/>



*** User 2024-04-23 07:03:16.278 ***🔗
REST request:
Code: 200
Req: {<0.87961.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1be69ac5325448ba">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1402}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


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


*** User 2024-04-23 07:03:16.285 ***🔗
REST request:
Code: 204
Req: {<0.87978.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0b99d89db8d2d36">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,3805}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}">>,
          return_headers => true}


*** User 2024-04-23 07:03:16.289 ***🔗
REST request:
Code: 204
Req: {<0.87993.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"083eac755168b6d9">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,3405}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body => <<"{\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}">>,
          return_headers => true}


*** User 2024-04-23 07:03:16.293 ***🔗
REST request:
Code: 204
Req: {<0.88000.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bb5fad2c7e44f6fa">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,2928}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}">>,
          return_headers => true}


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


*** User 2024-04-23 07:03:16.297 ***🔗
REST request:
Code: 200
Req: {<0.88004.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5cb0b4d08804741e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}]">>,
         211,1239}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.303 ***🔗
REST request:
Code: 204
Req: {<0.88006.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"af2d4c2d0a26eb4d">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,5128}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-23 07:03:16.305 ***🔗
REST request:
Code: 200
Req: {<0.88008.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6699f5e49878415a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}]">>,
         210,1253}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.309 ***🔗
REST request:
Code: 204
Req: {<0.88010.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cae44f721db6896c">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,3488}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-23 07:03:16.354 ***🔗
REST request:
Code: 200
Req: {<0.88012.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8f59c06a4e36395c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}]">>,
         209,44325}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.357 ***🔗
REST request:
Code: 200
Req: {<0.88016.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33f69a6294aaa141">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}]">>,
         213,1537}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.363 ***🔗
REST request:
Code: 204
Req: {<0.88018.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ae7745557cd7d3a9">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,4800}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-04-23 07:03:16.365 ***🔗
REST request:
Code: 200
Req: {<0.88024.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b59f24970fc8aaf9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}]">>,
         212,2121}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.371 ***🔗
REST request:
Code: 204
Req: {<0.88026.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ebe264ab0cbbfd82">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,4986}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-04-23 07:03:16.373 ***🔗
REST request:
Code: 200
Req: {<0.88030.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aeea3ffc22c07f56">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3360@localhost\"}]">>,
         211,1325}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.375 ***🔗
REST request:
Code: 200
Req: {<0.88034.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2f5b5aba28a35716">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}]">>,
         213,1327}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.383 ***🔗
REST request:
Code: 204
Req: {<0.88036.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f07a9d32515089a6">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,6898}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.385 ***🔗
REST request:
Code: 200
Req: {<0.88038.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"693e3944ca9e356d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1486}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.387 ***🔗
REST request:
Code: 200
Req: {<0.88040.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"600ef293315d8725">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3360@localhost\"}]">>,
         213,1296}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.390 ***🔗
REST request:
Code: 204
Req: {<0.88042.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"56ffd1429842d61e">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>}],
         <<>>,80,1986}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3360@localhost/alice_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.392 ***🔗
REST request:
Code: 200
Req: {<0.88044.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9ee3064b92c7bbc5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 07:03:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1532}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3360@localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => admin,body => <<>>,
          return_headers => true}


*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='push3546558ff1463d70' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='pushf55b76d6d8e0cd2f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='pushc6a167cf95185d87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3360@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<presence from='bob_befriend_and_alienate_3360@localhost/res1' to='alice_befriend_and_alienate_3360@localhost/res1'/>



*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='pushb5bd396a12b11123' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.392 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<presence from='bob_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' type='subscribed'/>



*** User 2024-04-23 07:03:16.393 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='push0090a8015e5d5775' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.393 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<presence from='bob_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' type='subscribe'/>



*** User 2024-04-23 07:03:16.393 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='push43ef38f15d3200f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.393 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<iq from='alice_befriend_and_alienate_3360@localhost' to='alice_befriend_and_alienate_3360@localhost/res1' id='push1b65215b3dc3f644' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3360@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 07:03:16.393 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
<presence from='bob_befriend_and_alienate_3360@localhost/res1' to='alice_befriend_and_alienate_3360@localhost/res1' type='unavailable'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='push7197e566358a45c3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' type='subscribe'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='push83ce94c9bd90ce49' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='push93a9fffcf3ac7552' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3360@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost/res1' to='bob_befriend_and_alienate_3360@localhost/res1'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='push9fad62ff9d1a3572' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' type='subscribed'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost/res1' to='bob_befriend_and_alienate_3360@localhost/res1' type='unavailable'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='push25cad6aead3cdb85' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' type='unsubscribe'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='pusha7191fb5fb579e23' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<presence from='alice_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' type='unsubscribed'/>



*** User 2024-04-23 07:03:21.394 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
<iq from='bob_befriend_and_alienate_3360@localhost' to='bob_befriend_and_alienate_3360@localhost/res1' id='pusha89b922ecdff9803' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3360@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 07:03:26.395 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 out
</stream:stream>

*** User 2024-04-23 07:03:26.395 ***🔗
bob_befriend_and_alienate_3360@localhost/res1 in
</stream:stream>

*** User 2024-04-23 07:03:26.395 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 out
</stream:stream>

*** User 2024-04-23 07:03:26.395 ***🔗
alice_befriend_and_alienate_3360@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 07:03:26.397 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5307.html



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