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

=== Config value:

    [{watchdog,<0.10938.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,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_SUITE.logs/run.2022-03-07_16.09.23/rest_suite.befriend_and_alienate.164354.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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.rest_SUITE.logs/run.2022-03-07_16.09.23/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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},{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 => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}},
     {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@fac56f14d8cf.2022-03-07_15.57.55"

=== Started at 2022-03-07 16:09:24


*** CT 2022-03-07 16:09:24.929 *** View log from node mongooseim@localhost when started mongooseim@localhost_4907.html
*** CT 2022-03-07 16:09:24.930 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1909.html

*** User 2022-03-07 16:09:24.938 ***
alicE_befriend_and_alienate_2217@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-03-07 16:09:24.938 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='231083294a0084af' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:24.938 ***
alicE_befriend_and_alienate_2217@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-03-07 16:09:24.938 ***
alicE_befriend_and_alienate_2217@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yMjE3AG1hdHlncnlzYQ==</auth>



*** User 2022-03-07 16:09:24.939 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:24.939 ***
alicE_befriend_and_alienate_2217@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-03-07 16:09:24.939 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8e0578cff27b1a5' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:24.939 ***
alicE_befriend_and_alienate_2217@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-03-07 16:09:24.940 ***
alicE_befriend_and_alienate_2217@localhost/res1 out
<iq type='set' id='a8e0d6d29cffc127f7b51f5fbdd2a0c3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:24.940 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq id='a8e0d6d29cffc127f7b51f5fbdd2a0c3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_befriend_and_alienate_2217@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:24.940 ***
alicE_befriend_and_alienate_2217@localhost/res1 out
<iq type='set' id='eb7db54a731de3233f98f2da7285be44'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:24.940 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq type='result' id='eb7db54a731de3233f98f2da7285be44'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:24.940 ***
alicE_befriend_and_alienate_2217@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:24.943 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2217@localhost/res1' to='alice_befriend_and_alienate_2217@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:24.943 ***
bOb_befriend_and_alienate_2217@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-03-07 16:09:24.943 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='929e4516a2ae37b5' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:24.943 ***
bOb_befriend_and_alienate_2217@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-03-07 16:09:24.944 ***
bOb_befriend_and_alienate_2217@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjIxNwBtYWtyb2xpa2E=</auth>



*** User 2022-03-07 16:09:24.944 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:09:24.944 ***
bOb_befriend_and_alienate_2217@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-03-07 16:09:24.944 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8fe53c440d17b09' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@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-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@localhost/res1 out
<iq type='set' id='7ffefb094d7a63c9523eeec2749979cd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq id='7ffefb094d7a63c9523eeec2749979cd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_befriend_and_alienate_2217@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@localhost/res1 out
<iq type='set' id='594bec8b03bc0569d8e247b227822937'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq type='result' id='594bec8b03bc0569d8e247b227822937'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:09:24.945 ***
bOb_befriend_and_alienate_2217@localhost/res1 out
<presence/>



*** User 2022-03-07 16:09:24.948 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2217@localhost/res1' to='bob_befriend_and_alienate_2217@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:24.950 ***
REST request:
Code: 200
Req: {<0.11003.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a0d859b8f5df864">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1109}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.952 ***
REST request:
Code: 200
Req: {<0.11007.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3ea226678fe8ed37">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1060}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.955 ***
REST request:
Code: 204
Req: {<0.11015.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dcc998debe96cca1">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2217@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2687}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_2217@localhost\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.958 ***
REST request:
Code: 204
Req: {<0.11027.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"318c0ee9bd3b77da">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2217@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2041}
Params: #{body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2217@localhost\"}">>,
          method => <<"POST">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.960 ***
REST request:
Code: 200
Req: {<0.11033.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"861658ca52fe1331">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         213,1196}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.962 ***
REST request:
Code: 200
Req: {<0.11037.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b03be76f7e76104e">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         211,1291}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.968 ***
REST request:
Code: 204
Req: {<0.11043.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e36184fa76cde70e">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5337}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.970 ***
REST request:
Code: 200
Req: {<0.11053.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"865267c97533b83b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"86">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2217@localhost\",\"ask\":\"out\"}]">>,
         210,1621}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.977 ***
REST request:
Code: 204
Req: {<0.11055.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"08361fc9c114923d">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5690}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.980 ***
REST request:
Code: 200
Req: {<0.11057.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6abf527f32b635bc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"85">>}],
         <<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         209,2509}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.982 ***
REST request:
Code: 200
Req: {<0.11059.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7f3b674e9f959348">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         213,1457}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.988 ***
REST request:
Code: 204
Req: {<0.11063.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eaeb90650a4a67d6">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,4704}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.990 ***
REST request:
Code: 200
Req: {<0.11069.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9a74704f8a72d5fb">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"88">>}],
         <<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2217@localhost\",\"ask\":\"out\"}]">>,
         212,1680}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.997 ***
REST request:
Code: 204
Req: {<0.11071.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec617292683ba91c">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,5798}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:24.999 ***
REST request:
Code: 200
Req: {<0.11073.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b4174531ba0a153">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"87">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         211,1194}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.001 ***
REST request:
Code: 200
Req: {<0.11075.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3b2434bf54347be4">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         213,1155}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.010 ***
REST request:
Code: 204
Req: {<0.11077.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0b7ece340bf95c1b">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,8422}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.012 ***
REST request:
Code: 200
Req: {<0.11083.2>,
      <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb3fdee22e928acf">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1221}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.014 ***
REST request:
Code: 200
Req: {<0.11085.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"561528350f90c60b">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"89">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2217@localhost\",\"ask\":\"none\"}]">>,
         213,1059}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.017 ***
REST request:
Code: 204
Req: {<0.11087.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e99a9591178c1324">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,2401}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/contacts/bob_befriend_and_alienate_2217@localhost/alice_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.019 ***
REST request:
Code: 200
Req: {<0.11089.2>,
      <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"651445651f38668a">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:09:24 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1195}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_befriend_and_alienate_2217@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='pushef1454d2a763430d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='pushcfc62339aa95d5b3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2217@localhost/res1' to='alice_befriend_and_alienate_2217@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='pushd8dc77a03466f037' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<presence from='bob_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' type='subscribed'/>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='push51e7e746c2427cca' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<presence from='bob_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' type='subscribe'/>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='pushd8335927d79003db' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.019 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<iq from='alice_befriend_and_alienate_2217@localhost' to='alice_befriend_and_alienate_2217@localhost/res1' id='pushf69619b4f9d3fd2a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:25.020 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
<presence from='bOb_befriend_and_alienate_2217@localhost/res1' to='alice_befriend_and_alienate_2217@localhost/res1' type='unavailable'/>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='push442d5f19bc893f0c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alice_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' type='subscribe'/>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='push335c95d199487d64' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='push83d7c733c43ee7eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2217@localhost/res1' to='bob_befriend_and_alienate_2217@localhost/res1' xml:lang='en'/>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='pushb810d05c5c062daa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.020 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alice_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' type='subscribed'/>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alicE_befriend_and_alienate_2217@localhost/res1' to='bob_befriend_and_alienate_2217@localhost/res1' type='unavailable'/>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='pushffc40a8776aaa317' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alice_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' type='unsubscribe'/>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='pusha4ee86a0de28164f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<presence from='alice_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' type='unsubscribed'/>



*** User 2022-03-07 16:09:30.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
<iq from='bob_befriend_and_alienate_2217@localhost' to='bob_befriend_and_alienate_2217@localhost/res1' id='push1758c7d07848cb19' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2217@localhost'/>
	</query>
</iq>



*** User 2022-03-07 16:09:35.021 ***
bOb_befriend_and_alienate_2217@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:35.022 ***
bOb_befriend_and_alienate_2217@localhost/res1 in
</stream:stream>

*** User 2022-03-07 16:09:35.022 ***
alicE_befriend_and_alienate_2217@localhost/res1 out
</stream:stream>

*** User 2022-03-07 16:09:35.022 ***
alicE_befriend_and_alienate_2217@localhost/res1 in
</stream:stream>
*** CT 2022-03-07 16:09:35.024 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1909.html
*** CT 2022-03-07 16:09:35.025 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4915.html



=== Ended at 2022-03-07 16:09:35
=== successfully completed test case
=== === Returned value: ok