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

=== Config value:

    [{watchdog,<0.29611.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,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.rest_SUITE.logs/run.2022-03-18_10.58.12/rest_suite.befriend_and_alienate.104323.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.rest_SUITE.logs/run.2022-03-18_10.58.12/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => [],
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => [],mod_commands => [],
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"

=== Started at 2022-03-18 10:58:13


*** CT 2022-03-18 10:58:13.934 *** View log from node mongooseim@localhost when started mongooseim@localhost_1589.html
*** CT 2022-03-18 10:58:13.935 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_533.html

*** User 2022-03-18 10:58:13.974 ***
alicE_befriend_and_alienate_1988@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-18 10:58:13.975 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='58e06a3b319c1972' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:58:13.976 ***
alicE_befriend_and_alienate_1988@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-18 10:58:13.976 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xOTg4AG1hdHlncnlzYQ==</auth>



*** User 2022-03-18 10:58:13.978 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@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-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='951e3f2d12b1d0be' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@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-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 out
<iq type='set' id='e40af4fe263c05ca2e9356e3dc2e1008'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq id='e40af4fe263c05ca2e9356e3dc2e1008' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_1988@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:58:13.979 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 out
<iq type='set' id='c21646e9585f5278daaa756f4c6507ec'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:58:13.980 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq type='result' id='c21646e9585f5278daaa756f4c6507ec'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:58:13.980 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 out
<presence/>



*** User 2022-03-18 10:58:13.982 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1988@domain.example.com/res1' to='alice_befriend_and_alienate_1988@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:58:13.983 ***
bOb_befriend_and_alienate_1988@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-18 10:58:13.984 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='280da1bce4e5a4ca' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:58:13.984 ***
bOb_befriend_and_alienate_1988@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-18 10:58:13.984 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTk4OABtYWtyb2xpa2E=</auth>



*** User 2022-03-18 10:58:13.985 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:58:13.985 ***
bOb_befriend_and_alienate_1988@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-18 10:58:13.985 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ecb608584f39bb91' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:58:13.985 ***
bOb_befriend_and_alienate_1988@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-18 10:58:13.986 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 out
<iq type='set' id='3b6b16fa1a01b1954df7d3df6d9e1d20'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:58:13.986 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq id='3b6b16fa1a01b1954df7d3df6d9e1d20' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_1988@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:58:13.986 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 out
<iq type='set' id='1d91c86a8709f1f53a19c3b890024151'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:58:13.987 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq type='result' id='1d91c86a8709f1f53a19c3b890024151'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:58:13.987 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 out
<presence/>



*** User 2022-03-18 10:58:13.995 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1988@domain.example.com/res1' to='bob_befriend_and_alienate_1988@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:58:14.000 ***
REST request:
Code: 200
Req: {<0.29684.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bffcc49e223afbed">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1612}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.002 ***
REST request:
Code: 200
Req: {<0.29688.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a337fc879e8a9d45">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1214}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.012 ***
REST request:
Code: 204
Req: {<0.29693.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"775bda82351abfe9">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8667}
Params: #{body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.021 ***
REST request:
Code: 204
Req: {<0.29700.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fd9d42b6e70b425d">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,7540}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.028 ***
REST request:
Code: 200
Req: {<0.29702.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"40888964f6e1327d">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         222,5652}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.031 ***
REST request:
Code: 200
Req: {<0.29706.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"de54ebec3015c4b6">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         220,1558}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.049 ***
REST request:
Code: 204
Req: {<0.29710.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef157dedb764144b">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,14893}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.051 ***
REST request:
Code: 200
Req: {<0.29726.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f75fbba577ea4ed">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"out\"}]">>,
         219,1558}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.081 ***
REST request:
Code: 204
Req: {<0.29728.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4b6cd79fc3f2c39a">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,20230}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.085 ***
REST request:
Code: 200
Req: {<0.29734.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b5252caadff82f0b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         218,1717}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.092 ***
REST request:
Code: 200
Req: {<0.29736.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"63fa3a1d743d1e22">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         222,5449}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.098 ***
REST request:
Code: 204
Req: {<0.29740.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ebfb1a6a2d7249d1">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4788}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.102 ***
REST request:
Code: 200
Req: {<0.29742.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0d70f1b25af5e4e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"out\"}]">>,
         221,2445}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.108 ***
REST request:
Code: 204
Req: {<0.29745.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ce70caffc267c73d">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4952}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.111 ***
REST request:
Code: 200
Req: {<0.29750.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4754b40d1fa6b596">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         220,1310}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.113 ***
REST request:
Code: 200
Req: {<0.29752.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"29c12e716fd99336">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1116}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.123 ***
REST request:
Code: 204
Req: {<0.29754.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"68f53200e5b94479">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8058}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.125 ***
REST request:
Code: 200
Req: {<0.29756.1>,
      <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9d8404482e340cef">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1095}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.127 ***
REST request:
Code: 200
Req: {<0.29758.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"db38366df7bdfddc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1988@domain.example.com\",\"ask\":\"none\"}]">>,
         222,1119}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.131 ***
REST request:
Code: 204
Req: {<0.29760.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b7dd34bcd9fe0ce">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,1881}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com/alice_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.133 ***
REST request:
Code: 200
Req: {<0.29762.1>,
      <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2bb3afaac1f32e92">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:58:13 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,943}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_1988@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 10:58:14.133 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='pushdde9a00445423ade' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.133 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='pushcd496f890ea84805' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1988@domain.example.com/res1' to='alice_befriend_and_alienate_1988@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='pushebbaf62d070e384e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='push8ef1e5140a249b1b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='pushff071a6a17ff800f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_1988@domain.example.com' to='alice_befriend_and_alienate_1988@domain.example.com/res1' id='pusheafd56c7dd9adadc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:14.134 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='bOb_befriend_and_alienate_1988@domain.example.com/res1' to='alice_befriend_and_alienate_1988@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='pushcd38656164193c20' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' type='subscribe'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='push5acdfe319e530a6a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='push3c3acd227718a065' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1988@domain.example.com/res1' to='bob_befriend_and_alienate_1988@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='pushfb03966c68744acb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' type='subscribed'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alicE_befriend_and_alienate_1988@domain.example.com/res1' to='bob_befriend_and_alienate_1988@domain.example.com/res1' type='unavailable'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='pushd54a7efa98c29c92' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' type='unsubscribe'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='push6a5dfc8b43e8c2e0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' type='unsubscribed'/>



*** User 2022-03-18 10:58:19.135 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_1988@domain.example.com' to='bob_befriend_and_alienate_1988@domain.example.com/res1' id='push408dc14a39d0fc09' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_1988@domain.example.com'/>
	</query>
</iq>



*** User 2022-03-18 10:58:24.136 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-18 10:58:24.136 ***
bOb_befriend_and_alienate_1988@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-18 10:58:24.136 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-18 10:58:24.137 ***
alicE_befriend_and_alienate_1988@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-18 10:58:24.139 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_533.html
*** CT 2022-03-18 10:58:24.140 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1597.html



=== Ended at 2022-03-18 10:58:24
=== successfully completed test case
=== === Returned value: ok