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

=== Config value:

    [{watchdog,<0.27618.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.befriend_and_alienate_auto.151810.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:25:02


*** CT 2022-03-04 11:25:02.084 *** View log from node mongooseim@localhost when started mongooseim@localhost_2509.html
*** CT 2022-03-04 11:25:02.084 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_646.html

*** User 2022-03-04 11:25:02.095 ***
alicE_befriend_and_alienate_auto_1792@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-03-04 11:25:02.096 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='645dbc6eaa58fc11' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.096 ***
alicE_befriend_and_alienate_auto_1792@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-03-04 11:25:02.096 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV9hdXRvXzE3OTIAbWF0eWdyeXNh</auth>



*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@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-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ad171a6ae0212d55' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@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-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<iq type='set' id='af59d7d8b8e73a67351ff12d428211d5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.097 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq id='af59d7d8b8e73a67351ff12d428211d5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_auto_1792@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<iq type='set' id='17baa48574ddff83887067a8f6689ca7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq type='result' id='17baa48574ddff83887067a8f6689ca7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.098 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.100 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1792@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.100 ***
bOb_befriend_and_alienate_auto_1792@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-03-04 11:25:02.100 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94cd686ff1ea4797' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.101 ***
bOb_befriend_and_alienate_auto_1792@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-03-04 11:25:02.101 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfYXV0b18xNzkyAG1ha3JvbGlrYQ==</auth>



*** User 2022-03-04 11:25:02.101 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_auto_1792@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-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9baf9828b26f2b4' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_auto_1792@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-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<iq type='set' id='12558501882a4149012b5a55ac1c6dc1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.102 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq id='12558501882a4149012b5a55ac1c6dc1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_auto_1792@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<iq type='set' id='d12c41988a82def2a332da741cd84f1d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq type='result' id='d12c41988a82def2a332da741cd84f1d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.105 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1792@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.108 ***
REST request:
Code: 200
Req: {<0.27677.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"89892b77e98c15fa">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2802}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.111 ***
REST request:
Code: 200
Req: {<0.27687.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d7eb68462a38903b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1809}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.136 ***
REST request:
Code: 204
Req: {<0.27695.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com/bob_befriend_and_alienate_auto_1792@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5deca5c97c27e940">>}],
      <<"{\"action\":\"connect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,24200}
Params: #{body => <<"{\"action\":\"connect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com/bob_befriend_and_alienate_auto_1792@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.138 ***
REST request:
Code: 200
Req: {<0.27735.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"42a26523fc92d5d0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"101">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_auto_1792@domain.example.com\",\"ask\":\"none\"}]">>,
         226,1351}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.141 ***
REST request:
Code: 200
Req: {<0.27737.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e7b2821b16a6ec68">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"103">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_auto_1792@domain.example.com\",\"ask\":\"none\"}]">>,
         228,1450}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.152 ***
REST request:
Code: 204
Req: {<0.27741.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com/bob_befriend_and_alienate_auto_1792@domain.example.com/manage">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14edbc5310b2225a">>}],
      <<"{\"action\":\"disconnect\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,10343}
Params: #{body => <<"{\"action\":\"disconnect\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com/bob_befriend_and_alienate_auto_1792@domain.example.com/manage">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.154 ***
REST request:
Code: 200
Req: {<0.27747.1>,
      <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"46039c0ab8f1985a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1262}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.156 ***
REST request:
Code: 200
Req: {<0.27751.1>,
      <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a62095949de7cfd9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1224}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_auto_1792@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushc983a2e7fc5aa7a2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushebe811479b7a374f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushc6a5a571e60d33b4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1792@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push6d6cff2763d4233e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push8f79a93e500e9fd6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushe91f644552c80a75' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:02.156 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_auto_1792@domain.example.com/res1' to='alice_befriend_and_alienate_auto_1792@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-04 11:25:07.157 ***
APushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushc983a2e7fc5aa7a2">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushebe811479b7a374f">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushc6a5a571e60d33b4">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push6d6cff2763d4233e">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push8f79a93e500e9fd6">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushe91f644552c80a75">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]}]

*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushcd48408ae05fbe28' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushf732a93cae6288e3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push1994ac2b94661289' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1792@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push2bd09d8a7f42ccad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_auto_1792@domain.example.com/res1' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push3dbd8fca3cba3345' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='pushe894d7ba0cfbce61' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-03-04 11:25:07.158 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_auto_1792@domain.example.com' to='bob_befriend_and_alienate_auto_1792@domain.example.com/res1' id='push27e88d22023c8218' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_auto_1792@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-04 11:25:12.158 ***
BPushes: [{xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushcd48408ae05fbe28">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushf732a93cae6288e3">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push1994ac2b94661289">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"ask">>,<<"subscribe">>},
                                  {<<"subscription">>,<<"from">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push2bd09d8a7f42ccad">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"both">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push3dbd8fca3cba3345">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"to">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"pushe894d7ba0cfbce61">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"none">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]},
          {xmlel,<<"iq">>,
                 [{<<"from">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com">>},
                  {<<"to">>,
                   <<"bob_befriend_and_alienate_auto_1792@domain.example.com/res1">>},
                  {<<"id">>,<<"push27e88d22023c8218">>},
                  {<<"type">>,<<"set">>}],
                 [{xmlel,<<"query">>,
                         [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                         [{xmlel,<<"item">>,
                                 [{<<"subscription">>,<<"remove">>},
                                  {<<"jid">>,
                                   <<"alice_befriend_and_alienate_auto_1792@domain.example.com">>}],
                                 []}]}]}]

*** User 2022-03-04 11:25:12.159 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:12.159 ***
bOb_befriend_and_alienate_auto_1792@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:25:12.159 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:12.159 ***
alicE_befriend_and_alienate_auto_1792@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:25:12.161 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_646.html
*** CT 2022-03-04 11:25:12.162 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2517.html



=== Ended at 2022-03-04 11:25:12
=== successfully completed test case
=== === Returned value: ok