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

=== Config value:

    [{watchdog,<0.75506.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.rest_SUITE.logs/run.2024-04-09_11.49.40/rest_suite.befriend_and_alienate.125060.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@528a5a4ce401.2024-04-09_11.36.09/big_tests.tests.rest_SUITE.logs/run.2024-04-09_11.49.40/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_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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        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@528a5a4ce401.2024-04-09_11.36.09"

=== Started at 2024-04-09 11:49:41


*** CT 2024-04-09 11:49:41.285 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2626.html

*** User 2024-04-09 11:49:41.314 ***🔗
alicE_befriend_and_alienate_3086@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-09 11:49:41.315 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d4dad655e9da5e3' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:49:41.315 ***🔗
alicE_befriend_and_alienate_3086@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-09 11:49:41.315 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMDg2AG1hdHlncnlzYQ==</auth>



*** User 2024-04-09 11:49:41.316 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:49:41.316 ***🔗
alicE_befriend_and_alienate_3086@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-09 11:49:41.317 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='afcb1a823ba56399' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3086@domain.example.com'>

*** User 2024-04-09 11:49:41.317 ***🔗
alicE_befriend_and_alienate_3086@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-09 11:49:41.317 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 out
<iq type='set' id='abcfec287bd3535ad06440646ea8181a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:49:41.317 ***🔗
alicE_befriend_and_alienate_3086@domain.example.com/res1 in
<iq id='abcfec287bd3535ad06440646ea8181a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_3086@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:49:41.317 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 out
<iq type='set' id='456afff94426e62e34661d5de612139c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:41.318 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='456afff94426e62e34661d5de612139c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:41.318 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 out
<presence/>



*** User 2024-04-09 11:49:41.319 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com/res1' to='alice_befriend_and_alienate_3086@domain.example.com/res1'/>



*** User 2024-04-09 11:49:41.320 ***🔗
bOb_befriend_and_alienate_3086@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-09 11:49:41.320 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96aa90c03261b97c' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-09 11:49:41.320 ***🔗
bOb_befriend_and_alienate_3086@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-09 11:49:41.320 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzA4NgBtYWtyb2xpa2E=</auth>



*** User 2024-04-09 11:49:41.321 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-09 11:49:41.321 ***🔗
bOb_befriend_and_alienate_3086@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-09 11:49:41.321 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='329e292d84a7bda6' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3086@domain.example.com'>

*** User 2024-04-09 11:49:41.322 ***🔗
bOb_befriend_and_alienate_3086@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-09 11:49:41.322 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 out
<iq type='set' id='5da00e1afdea97dc88ffceeb1afbdcd7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-09 11:49:41.322 ***🔗
bOb_befriend_and_alienate_3086@domain.example.com/res1 in
<iq id='5da00e1afdea97dc88ffceeb1afbdcd7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_3086@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-09 11:49:41.322 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 out
<iq type='set' id='b5ab24fb14a02f67af4bfbe538d9fe2b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:41.323 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='b5ab24fb14a02f67af4bfbe538d9fe2b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-09 11:49:41.323 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 out
<presence/>



*** User 2024-04-09 11:49:41.325 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3086@domain.example.com/res1' to='bob_befriend_and_alienate_3086@domain.example.com/res1'/>



*** User 2024-04-09 11:49:41.334 ***🔗
REST request:
Code: 200
Req: {<0.75609.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ae9baea647584537">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,8031}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.336 ***🔗
REST request:
Code: 200
Req: {<0.75627.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5d8f129c3002a374">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1323}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.373 ***🔗
REST request:
Code: 204
Req: {<0.75633.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ce1f68d95b0a39b">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,36247}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.379 ***🔗
REST request:
Code: 204
Req: {<0.75643.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a5f944dd2d98ce30">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,4480}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.386 ***🔗
REST request:
Code: 204
Req: {<0.75645.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a50c155c731b4c9b">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,5903}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.392 ***🔗
REST request:
Code: 200
Req: {<0.75647.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5be09cddc42c3d12">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}]">>,
         222,1604}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.395 ***🔗
REST request:
Code: 200
Req: {<0.75649.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9be53eae22164b91">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}]">>,
         220,1407}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.407 ***🔗
REST request:
Code: 204
Req: {<0.75651.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a592b02af0710bdb">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,11149}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.416 ***🔗
REST request:
Code: 200
Req: {<0.75653.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"752499347685817d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}]">>,
         219,7380}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.427 ***🔗
REST request:
Code: 204
Req: {<0.75655.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b5b0671fb9ec250">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,9982}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.430 ***🔗
REST request:
Code: 200
Req: {<0.75661.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cb61a4354c9608aa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}]">>,
         218,2022}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.432 ***🔗
REST request:
Code: 200
Req: {<0.75665.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"92c5bc30a5ff1ef3">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}]">>,
         222,1172}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.444 ***🔗
REST request:
Code: 204
Req: {<0.75667.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"381b5346fa5584cb">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,10508}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.447 ***🔗
REST request:
Code: 200
Req: {<0.75669.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f3efd6cf4077dcd">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}]">>,
         221,1705}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.462 ***🔗
REST request:
Code: 204
Req: {<0.75671.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fe8eb69c8a1e2eba">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,14213}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
          role => admin,return_headers => true}


*** User 2024-04-09 11:49:41.465 ***🔗
REST request:
Code: 200
Req: {<0.75677.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb1677f80fc7ff78">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3086@domain.example.com\"}]">>,
         220,1644}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.469 ***🔗
REST request:
Code: 200
Req: {<0.75679.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4bcb75803d943a61">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}]">>,
         222,1678}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.479 ***🔗
REST request:
Code: 204
Req: {<0.75681.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cf872b1b73e3c361">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,9128}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.482 ***🔗
REST request:
Code: 200
Req: {<0.75683.0>,
      <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4aefe089948c3e8a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1706}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.485 ***🔗
REST request:
Code: 200
Req: {<0.75685.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2af9d8c147f16906">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3086@domain.example.com\"}]">>,
         222,1795}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.489 ***🔗
REST request:
Code: 204
Req: {<0.75687.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"42297a7e0fbe62fc">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>}],
         <<>>,80,2841}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com/alice_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.492 ***🔗
REST request:
Code: 200
Req: {<0.75689.0>,
      <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3384568db5ef28b7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 09 Apr 2024 11:49:40 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1843}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_3086@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => admin,
          return_headers => true}


*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='pushf3492314fb172a6f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='push35215e816d48e0a1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='pushb0437f058d07c465' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3086@domain.example.com/res1' to='alice_befriend_and_alienate_3086@domain.example.com/res1'/>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='push55c8c9cc8c6c8b7e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='push3a6065ae00c2e8a2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='push9a8345f7ffb980ab' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_3086@domain.example.com' to='alice_befriend_and_alienate_3086@domain.example.com/res1' id='push3b72b070fdb03d0a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_befriend_and_alienate_3086@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-09 11:49:41.493 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_3086@domain.example.com/res1' to='alice_befriend_and_alienate_3086@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='push33ea98f8842e8c07' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' type='subscribe'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='push4f06f93022db7c09' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='pusha31296dd705b3224' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='from'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com/res1' to='bob_befriend_and_alienate_3086@domain.example.com/res1'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='pushf887715387028e35' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='both'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' type='subscribed'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com/res1' to='bob_befriend_and_alienate_3086@domain.example.com/res1' type='unavailable'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='push0673ad3353e64ddf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='to'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='pushe493b85bd9cd8b17' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-04-09 11:49:46.494 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_3086@domain.example.com' to='bob_befriend_and_alienate_3086@domain.example.com/res1' id='pushf9d11e749eb3c809' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_befriend_and_alienate_3086@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-09 11:49:51.495 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-09 11:49:51.495 ***🔗
bob_befriend_and_alienate_3086@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-09 11:49:51.495 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-09 11:49:51.496 ***🔗
alice_befriend_and_alienate_3086@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-09 11:49:51.498 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2645.html



=== Ended at 2024-04-09 11:49:51
=== successfully completed test case
=== === Returned value: ok