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

=== Config value:

    [{watchdog,<0.8863.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/rest_suite.befriend_and_alienate_auto.148354.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:36:48


*** CT 2022-01-27 15:36:48.915 *** View log from node mongooseim@localhost when started mongooseim@localhost_5797.html
*** CT 2022-01-27 15:36:48.915 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:36:48.930 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:36:48.931 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50f7d5fe5e849097' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.931 ***
alicE_befriend_and_alienate_auto_2149@localhost/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 15:36:48.931 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV9hdXRvXzIxNDkAbWF0eWdyeXNh</auth>



*** User 2022-01-27 15:36:48.932 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:48.932 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:36:48.932 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a7a3fb8f4f719eb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.933 ***
alicE_befriend_and_alienate_auto_2149@localhost/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 15:36:48.933 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<iq type='set' id='1e70fff71f635933e2938a5514dd6f3a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.933 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq id='1e70fff71f635933e2938a5514dd6f3a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_auto_2149@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.933 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<iq type='set' id='78ad174a2cffd4cb21b2c3c4d8b5ed41'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.933 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq type='result' id='78ad174a2cffd4cb21b2c3c4d8b5ed41'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.934 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.936 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_2149@localhost/res1' to='alice_befriend_and_alienate_auto_2149@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:48.937 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:36:48.937 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e4a48733ecb137de' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.937 ***
bOb_befriend_and_alienate_auto_2149@localhost/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 15:36:48.937 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfYXV0b18yMTQ5AG1ha3JvbGlrYQ==</auth>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8650f54abcd953c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/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 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<iq type='set' id='4c37efd7dc304799373a18f7e14aa10f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq id='4c37efd7dc304799373a18f7e14aa10f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_auto_2149@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<iq type='set' id='aec03096224cc647991a2e0a27d2a176'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.940 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq type='result' id='aec03096224cc647991a2e0a27d2a176'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.940 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.942 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_2149@localhost/res1' to='bob_befriend_and_alienate_auto_2149@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:48.946 ***
REST request:
Code: 200
Req: {<0.8928.2>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f29f1f666ec9bc5">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1745}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.949 ***
REST request:
Code: 200
Req: {<0.8934.2>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"badeb6d7b31d459d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2052}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.993 ***
REST request:
Code: 204
Req: {<0.8940.2>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost/bob_befriend_and_alienate_auto_2149@localhost/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"afc8ae1049264d92">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,42897}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost/bob_befriend_and_alienate_auto_2149@localhost/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.000 ***
REST request:
Code: 200
Req: {<0.8980.2>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08dd5d549990e2f7">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"92">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_auto_2149@localhost\",\"ask\":\"none\"}]">>,
         216,4459}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.003 ***
REST request:
Code: 200
Req: {<0.8984.2>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b538e490d2fd5031">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_auto_2149@localhost\",\"ask\":\"none\"}]">>,
         218,2640}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.048 ***
REST request:
Code: 204
Req: {<0.8988.2>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost/bob_befriend_and_alienate_auto_2149@localhost/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"02cf9acb2b9837b1">>}],
      <<"{\"action\":\"disconnect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,43498}
Params: #{body => <<"{\"action\":\"disconnect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost/bob_befriend_and_alienate_auto_2149@localhost/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.054 ***
REST request:
Code: 200
Req: {<0.8994.2>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bc11e5c8c02bc90c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4674}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.057 ***
REST request:
Code: 200
Req: {<0.8998.2>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"334a6fff2fc3953a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1972}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_2149@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='push520e48b3af26cf52' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='pushe220aba0b2321605' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='pushe9ec7dab2bcc2554' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='bob_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_2149@localhost/res1' to='alice_befriend_and_alienate_auto_2149@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='push5802ea0b70f92ebd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='bob_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:36:49.057 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='push8b25be523f305501' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.058 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='alice_befriend_and_alienate_auto_2149@localhost' to='alice_befriend_and_alienate_auto_2149@localhost/res1' id='push5a4c75faf76d804d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:49.058 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='bOb_befriend_and_alienate_auto_2149@localhost/res1' to='alice_befriend_and_alienate_auto_2149@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:36:54.058 ***
APushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push520e48b3af26cf52">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"pushe220aba0b2321605">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"pushe9ec7dab2bcc2554">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push5802ea0b70f92ebd">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push8b25be523f305501">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push5a4c75faf76d804d">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]}]

*** User 2022-01-27 15:36:54.058 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push747a7b7bc66b2c5b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.058 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' type='subscribe'/>



*** User 2022-01-27 15:36:54.058 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push874f06bbed9f5f74' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.058 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push078fe208c6cd60c5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_2149@localhost/res1' to='bob_befriend_and_alienate_auto_2149@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push4bebeb5c4c787da9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' type='subscribed'/>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alicE_befriend_and_alienate_auto_2149@localhost/res1' to='bob_befriend_and_alienate_auto_2149@localhost/res1' type='unavailable'/>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push7c6d57f559de137d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' type='unsubscribe'/>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push26f8f1b25f6912a4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<presence from='alice_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' type='unsubscribed'/>



*** User 2022-01-27 15:36:54.059 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
<iq from='bob_befriend_and_alienate_auto_2149@localhost' to='bob_befriend_and_alienate_auto_2149@localhost/res1' id='push2c694c47af666aa5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_auto_2149@localhost'/>
	</query>
</iq>



*** User 2022-01-27 15:36:59.060 ***
BPushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push747a7b7bc66b2c5b">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push874f06bbed9f5f74">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push078fe208c6cd60c5">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"from">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push4bebeb5c4c787da9">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push7c6d57f559de137d">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push26f8f1b25f6912a4">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_2149@localhost/res1">>},
                  {<<"id">>,<<"push2c694c47af666aa5">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_2149@localhost">>}],
                                 []}]}]}]

*** User 2022-01-27 15:36:59.060 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:59.061 ***
bOb_befriend_and_alienate_auto_2149@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:36:59.061 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:59.061 ***
alicE_befriend_and_alienate_auto_2149@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:36:59.063 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:36:59.064 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5805.html



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