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

=== Config value:

    [{watchdog,<0.734.2>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_SUITE.logs/run.2022-05-25_09.13.15/rest_suite.befriend_and_alienate.139522.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_SUITE.logs/run.2022-05-25_09.13.15/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {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@f0b09cc3aef4.2022-05-25_09.03.38"

=== Started at 2022-05-25 09:13:16


*** CT 2022-05-25 09:13:16.137 *** View log from node mongooseim@localhost when started mongooseim@localhost_2437.html
*** CT 2022-05-25 09:13:16.138 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_520.html

*** User 2022-05-25 09:13:16.147 ***
alicE_befriend_and_alienate_2025@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 2022-05-25 09:13:16.148 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9eff2fbd768fffbc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:16.148 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:13:16.148 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yMDI1AG1hdHlncnlzYQ==</auth>



*** User 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@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 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abeec6e1e747a66f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 out
<iq type='set' id='a39bfb7412c4998e88a87a860257ecd6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:16.149 ***
alicE_befriend_and_alienate_2025@domain.example.com/res1 in
<iq id='a39bfb7412c4998e88a87a860257ecd6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2025@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:16.150 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 out
<iq type='set' id='a5a97481b17709653b220954334590ef'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:16.150 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq type='result' id='a5a97481b17709653b220954334590ef'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:16.150 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:16.151 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com/res1' to='alice_befriend_and_alienate_2025@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:16.152 ***
bOb_befriend_and_alienate_2025@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 2022-05-25 09:13:16.152 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5216791f0c74f562' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:16.153 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:13:16.153 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjAyNQBtYWtyb2xpa2E=</auth>



*** User 2022-05-25 09:13:16.154 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:16.154 ***
bOb_befriend_and_alienate_2025@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 2022-05-25 09:13:16.154 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efc2bbe3323d3c7d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:16.154 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:13:16.154 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 out
<iq type='set' id='f0d53da41b46489c60911fc95394cbfa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:16.155 ***
bOb_befriend_and_alienate_2025@domain.example.com/res1 in
<iq id='f0d53da41b46489c60911fc95394cbfa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2025@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:16.155 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 out
<iq type='set' id='1e0709393a00acb4728b5fdc4a8207c6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:16.155 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq type='result' id='1e0709393a00acb4728b5fdc4a8207c6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:16.155 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:16.157 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2025@domain.example.com/res1' to='bob_befriend_and_alienate_2025@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:16.159 ***
REST request:
Code: 200
Req: {<0.797.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96365d85b8147ea5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1458}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.162 ***
REST request:
Code: 200
Req: {<0.805.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a9d52dcabe2cf5fa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1503}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.167 ***
REST request:
Code: 204
Req: {<0.811.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0187befae517872d">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4468}
Params: #{body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.172 ***
REST request:
Code: 204
Req: {<0.823.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"636dc110db9967f0">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4624}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.175 ***
REST request:
Code: 200
Req: {<0.831.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"360d8bffaeee6504">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1184}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.178 ***
REST request:
Code: 200
Req: {<0.835.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d417062391158351">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         220,2683}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.183 ***
REST request:
Code: 204
Req: {<0.841.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d0b35a6802305e56">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4323}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.185 ***
REST request:
Code: 200
Req: {<0.849.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e299f0c4c922d441">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"out\"}]">>,
         219,1194}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.191 ***
REST request:
Code: 204
Req: {<0.851.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"159ef2ce7d40c637">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5248}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.194 ***
REST request:
Code: 200
Req: {<0.855.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"377d09567d2e6c47">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         218,1342}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.196 ***
REST request:
Code: 200
Req: {<0.859.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"49b1e953d6a73d76">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1230}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.202 ***
REST request:
Code: 204
Req: {<0.863.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dc1dd1019c1a5d6b">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5336}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.204 ***
REST request:
Code: 200
Req: {<0.865.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b3a0e61838954a8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"out\"}]">>,
         221,1236}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.210 ***
REST request:
Code: 204
Req: {<0.867.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc885e212e2c7ce7">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5041}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.212 ***
REST request:
Code: 200
Req: {<0.871.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"162c0625caeba2bb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         220,1226}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.214 ***
REST request:
Code: 200
Req: {<0.875.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7bacfdd79ed57c38">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1092}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.223 ***
REST request:
Code: 204
Req: {<0.877.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"21c6d9a23d92c832">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8493}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.225 ***
REST request:
Code: 200
Req: {<0.879.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"56c5d63276ff4793">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1139}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.227 ***
REST request:
Code: 200
Req: {<0.881.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"226f6aa2eeb8e382">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2025@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1139}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.263 ***
REST request:
Code: 204
Req: {<0.883.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3b58bb77c75e13ef">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,34850}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com/alice_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.265 ***
REST request:
Code: 200
Req: {<0.885.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b70fec510085762a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:15 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1384}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2025@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='push8da6ff7bae5816d8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='push918815a71ea093a2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2025@domain.example.com/res1' to='alice_befriend_and_alienate_2025@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='push5669fd44a089839a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' type='subscribed'/>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='push6dc92cbbd629ac90' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' type='subscribe'/>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='pushc93271e778f2870c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2025@domain.example.com' to='alice_befriend_and_alienate_2025@domain.example.com/res1' id='pushaaef1df3c82249be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:16.266 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2025@domain.example.com/res1' to='alice_befriend_and_alienate_2025@domain.example.com/res1' type='unavailable'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='pushbd0350e03ae5f4d3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' type='subscribe'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push67fb9f3cea3d7cd3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push40362f1cda70bcf6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com/res1' to='bob_befriend_and_alienate_2025@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push58799f401c4a661e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' type='subscribed'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com/res1' to='bob_befriend_and_alienate_2025@domain.example.com/res1' type='unavailable'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push236122ce99b14802' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push805e69b05b317e98' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-05-25 09:13:21.267 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2025@domain.example.com' to='bob_befriend_and_alienate_2025@domain.example.com/res1' id='push8ba971a69758683a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2025@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:26.268 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:26.268 ***
bob_befriend_and_alienate_2025@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-25 09:13:26.268 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:26.268 ***
alice_befriend_and_alienate_2025@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-25 09:13:26.270 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_520.html
*** CT 2022-05-25 09:13:26.275 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2445.html



=== Ended at 2022-05-25 09:13:26
=== successfully completed test case
=== === Returned value: ok