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

=== Config value:

    [{watchdog,<0.25384.1>},
     {{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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.befriend_and_alienate_auto.108547.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/log_private/"},
     {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@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:36:32


*** CT 2022-01-27 12:36:32.387 *** View log from node mongooseim@localhost when started mongooseim@localhost_2461.html
*** CT 2022-01-27 12:36:32.388 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_655.html

*** User 2022-01-27 12:36:32.448 ***
alicE_befriend_and_alienate_auto_1737@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-01-27 12:36:32.449 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='151046ef4585e116' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.449 ***
alicE_befriend_and_alienate_auto_1737@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-01-27 12:36:32.449 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV9hdXRvXzE3MzcAbWF0eWdyeXNh</auth>



*** User 2022-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@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-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='975c3e5fdc9ec08b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@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-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<iq type='set' id='d2e6fde2b1ba4eaf7a629e3c9196ab8e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.451 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq id='d2e6fde2b1ba4eaf7a629e3c9196ab8e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_auto_1737@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.452 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<iq type='set' id='a0225bb489491ef7fa00c8f0620e0e27'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.452 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq type='result' id='a0225bb489491ef7fa00c8f0620e0e27'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.452 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.455 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1737@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.457 ***
bOb_befriend_and_alienate_auto_1737@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-01-27 12:36:32.457 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ed3b0859d0bd939' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.457 ***
bOb_befriend_and_alienate_auto_1737@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-01-27 12:36:32.458 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfYXV0b18xNzM3AG1ha3JvbGlrYQ==</auth>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_auto_1737@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-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='687b95ded67826d6' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_auto_1737@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-01-27 12:36:32.459 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<iq type='set' id='73e354cf3d659cdfc8c32070619b4325'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.460 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq id='73e354cf3d659cdfc8c32070619b4325' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_auto_1737@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.460 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<iq type='set' id='e2c2c1f067bb5c031265b6c5fb2c776b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.460 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq type='result' id='e2c2c1f067bb5c031265b6c5fb2c776b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.460 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.465 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1737@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.470 ***
REST request:
Code: 200
Req: {<0.25449.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6da1c049a6a1ac55">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3022}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.510 ***
REST request:
Code: 200
Req: {<0.25455.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"39b0984c8cd526f2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,38969}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.600 ***
REST request:
Code: 204
Req: {<0.25468.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com/bob_befriend_and_alienate_auto_1737@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"04af0892e03a66d0">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,88560}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com/bob_befriend_and_alienate_auto_1737@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.605 ***
REST request:
Code: 200
Req: {<0.25503.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"617e5a84fa318d5b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"101">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_auto_1737@domain.example.com\",\"ask\":\"none\"}]">>,
         226,2374}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.609 ***
REST request:
Code: 200
Req: {<0.25505.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"59689499fc919de5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"103">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_auto_1737@domain.example.com\",\"ask\":\"none\"}]">>,
         228,1990}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.652 ***
REST request:
Code: 204
Req: {<0.25509.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com/bob_befriend_and_alienate_auto_1737@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"467dcf31359bd561">>}],
      <<"{\"action\":\"disconnect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,41697}
Params: #{body => <<"{\"action\":\"disconnect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com/bob_befriend_and_alienate_auto_1737@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.660 ***
REST request:
Code: 200
Req: {<0.25515.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c554fa481f8ca0a9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,6845}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.665 ***
REST request:
Code: 200
Req: {<0.25519.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e2b6e054daffc85">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3385}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1737@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.665 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push328874fd1aeefca5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushee64cdaa4f4b71e0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushbaa0a3ca240a79a0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' type='subscribe'/>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1737@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushb64f60886e939b69' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' type='subscribed'/>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push8b6d27ebf25d7514' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push0e024aa03089471a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:32.666 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1737@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1737@domain.example.com/res1' type='unavailable'/>



*** User 2022-01-27 12:36:37.667 ***
APushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push328874fd1aeefca5">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushee64cdaa4f4b71e0">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushbaa0a3ca240a79a0">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushb64f60886e939b69">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push8b6d27ebf25d7514">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push0e024aa03089471a">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]}]

*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushc6587e60da14884d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' type='subscribe'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push768691225c4c7cf9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushbdb5bc7c50682e0d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1737@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push49be46ab2d5ada94' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' type='subscribed'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1737@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' type='unavailable'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='pushbdeadefe08e75c75' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push5d8978de87c47db9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-01-27 12:36:37.667 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1737@domain.example.com' to='bob_befriend_and_alienate_auto_1737@domain.example.com/res1' id='push7888190e74b00a87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_auto_1737@domain.example.com'/>
	</query>
</iq>



*** User 2022-01-27 12:36:42.668 ***
BPushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushc6587e60da14884d">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push768691225c4c7cf9">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushbdb5bc7c50682e0d">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"from">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push49be46ab2d5ada94">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"pushbdeadefe08e75c75">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push5d8978de87c47db9">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1737@domain.example.com/res1">>},
                  {<<"id">>,<<"push7888190e74b00a87">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1737@domain.example.com">>}],
                                 []}]}]}]

*** User 2022-01-27 12:36:42.668 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:42.668 ***
bOb_befriend_and_alienate_auto_1737@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:36:42.668 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:42.669 ***
alicE_befriend_and_alienate_auto_1737@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:36:42.672 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_655.html
*** CT 2022-01-27 12:36:42.673 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2469.html



=== Ended at 2022-01-27 12:36:42
=== successfully completed test case
=== === Returned value: ok