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

=== Config value:

    [{watchdog,<0.74982.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@a5aac04b5a41.2024-04-23_10.53.31/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.07.29/rest_suite.befriend_and_alienate.174339.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@a5aac04b5a41.2024-04-23_10.53.31/big_tests.tests.rest_SUITE.logs/run.2024-04-23_11.07.29/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a5aac04b5a41.2024-04-23_10.53.31"

=== Started at 2024-04-23 11:07:30


*** CT 2024-04-23 11:07:30.157 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2631.html

*** User 2024-04-23 11:07:30.174 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:07:30.174 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1e7ab5f5122e8b9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:07:30.174 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/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 11:07:30.175 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTIyAG1hdHlncnlzYQ==</auth>



*** User 2024-04-23 11:07:30.176 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:07:30.176 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:07:30.176 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39d5042e1d292df9' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2922@domain.example.com'>

*** User 2024-04-23 11:07:30.176 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/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 11:07:30.176 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 out
<iq type='set' id='e8f605bc2b3e385611d3d2b620940e88'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:07:30.177 ***🔗
alicE_befriend_and_alienate_2922@domain.example.com/res1 in
<iq id='e8f605bc2b3e385611d3d2b620940e88' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2922@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:07:30.177 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 out
<iq type='set' id='328000807a8d52821497c07dc723c30b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:30.177 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='328000807a8d52821497c07dc723c30b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:30.177 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 11:07:30.180 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com/res1' to='alice_befriend_and_alienate_2922@domain.example.com/res1'/>



*** User 2024-04-23 11:07:30.181 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:07:30.181 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd2d4483da076ae2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:07:30.181 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/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 11:07:30.181 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkyMgBtYWtyb2xpa2E=</auth>



*** User 2024-04-23 11:07:30.182 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:07:30.182 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:07:30.183 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00cb685122dc7afb' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2922@domain.example.com'>

*** User 2024-04-23 11:07:30.183 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/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 11:07:30.183 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 out
<iq type='set' id='7c83c6cb24c2f1a59eff4d74dab86a13'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:07:30.183 ***🔗
bOb_befriend_and_alienate_2922@domain.example.com/res1 in
<iq id='7c83c6cb24c2f1a59eff4d74dab86a13' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2922@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:07:30.183 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 out
<iq type='set' id='dfcacbc81cce969516fcda8bd80bcdbe'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:30.184 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='dfcacbc81cce969516fcda8bd80bcdbe' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:07:30.184 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 out
<presence/>



*** User 2024-04-23 11:07:30.187 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2922@domain.example.com/res1' to='bob_befriend_and_alienate_2922@domain.example.com/res1'/>



*** User 2024-04-23 11:07:30.193 ***🔗
REST request:
Code: 200
Req: {<0.75095.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"15f315466e2291a4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3008}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.198 ***🔗
REST request:
Code: 200
Req: {<0.75103.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"777e6bd8bee0b0ae">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4526}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.207 ***🔗
REST request:
Code: 204
Req: {<0.75109.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"968aba47eb41bc10">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,6957}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:07:30.212 ***🔗
REST request:
Code: 204
Req: {<0.75116.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"929b1a900abb8312">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,4262}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:07:30.217 ***🔗
REST request:
Code: 204
Req: {<0.75121.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"62f3492583f12a3b">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,3742}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:07:30.220 ***🔗
REST request:
Code: 200
Req: {<0.75123.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b4a3968888d59b7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}]">>,
         222,1802}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.225 ***🔗
REST request:
Code: 200
Req: {<0.75125.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"47fc825eecbd3dd8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}]">>,
         220,3598}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.231 ***🔗
REST request:
Code: 204
Req: {<0.75127.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b22b3289c2cc54c">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,5176}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-23 11:07:30.239 ***🔗
REST request:
Code: 200
Req: {<0.75129.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3317fc39e1f8b223">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}]">>,
         219,6603}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.282 ***🔗
REST request:
Code: 204
Req: {<0.75133.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ab0f11c4745f2cb7">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,42833}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-23 11:07:30.285 ***🔗
REST request:
Code: 200
Req: {<0.75139.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"abe0d040e736d61d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}]">>,
         218,1498}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.287 ***🔗
REST request:
Code: 200
Req: {<0.75141.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6782a67a491a20f4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}]">>,
         222,1377}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.293 ***🔗
REST request:
Code: 204
Req: {<0.75143.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3808c9f087d95f69">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,4879}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribe\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-23 11:07:30.296 ***🔗
REST request:
Code: 200
Req: {<0.75147.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2026bc08e70cf29f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}]">>,
         221,1560}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.302 ***🔗
REST request:
Code: 204
Req: {<0.75151.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0a61140a3a8a3b1a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,5411}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<"{\"action\":\"subscribed\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-23 11:07:30.305 ***🔗
REST request:
Code: 200
Req: {<0.75153.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"39a4fba376211973">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2922@domain.example.com\"}]">>,
         220,1619}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.307 ***🔗
REST request:
Code: 200
Req: {<0.75155.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1ebc9d22f73728d8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}]">>,
         222,1443}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.316 ***🔗
REST request:
Code: 204
Req: {<0.75157.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"88ba6000b6817c28">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,7843}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.319 ***🔗
REST request:
Code: 200
Req: {<0.75159.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e15fb0495f74cb0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1741}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.321 ***🔗
REST request:
Code: 200
Req: {<0.75161.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d38b1474356e090c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2922@domain.example.com\"}]">>,
         222,1507}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.325 ***🔗
REST request:
Code: 204
Req: {<0.75163.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2d1ffeaa9a0efe5e">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>}],
         <<>>,80,2954}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com/alice_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"DELETE">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.328 ***🔗
REST request:
Code: 200
Req: {<0.75165.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e73a19d5452ffd52">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:07:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1488}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2922@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='push52094403753727f8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='pusha979b44d8302d732' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='push75e0028578dbd38f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2922@domain.example.com/res1' to='alice_befriend_and_alienate_2922@domain.example.com/res1'/>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='push6e2ec9cdf8efe1e4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='pushee5c53943b16ea15' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='pushcfe1bb825374c485' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2922@domain.example.com' to='alice_befriend_and_alienate_2922@domain.example.com/res1' id='push835ebcb9969d89cd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_2922@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:07:30.328 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2922@domain.example.com/res1' to='alice_befriend_and_alienate_2922@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='push4c8379be31060b7f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='pushe99a61ac7a7b5988' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='pusheba86712eafc61b3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com/res1' to='bob_befriend_and_alienate_2922@domain.example.com/res1'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='push1988cf08b0081d48' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com/res1' to='bob_befriend_and_alienate_2922@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='push04e6a4af65313a8f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='pushc0cb8c5a1bf2614e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-04-23 11:07:35.329 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2922@domain.example.com' to='bob_befriend_and_alienate_2922@domain.example.com/res1' id='pushd7f9e8f429359075' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_2922@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:07:40.330 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 11:07:40.330 ***🔗
bob_befriend_and_alienate_2922@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-23 11:07:40.330 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-23 11:07:40.330 ***🔗
alice_befriend_and_alienate_2922@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-23 11:07:40.333 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2650.html



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