REST: REST API for Setting/Updating Privacy Rules - #2928

Test duration: 5.344s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.268s
2019-11-27 21:37:23 |

2019-11-27 21:37:23 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-27 21:37:23 | ------------------------------------

2019-11-27 21:37:23 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 21:37:23 | command: <command><fields><item><var>jid</var><value>user_regularwt2p230195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:23 | target: http://localhost:8088

2019-11-27 21:37:23 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-11-27 21:37:23 | entity: <command><fields><item><var>jid</var><value>user_regularwt2p230195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:37:24 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-27 21:37:24 | response entity: <command>
  <jid>sess-man@localhost</jid>
  <node>user-domain-perm</node>
  <fields>
    <item>
      <var>Script result</var>
      <type>text-multi</type>
      <value>Changed an old value: null (domains list: ) to a new value: CUSTOM (domains list: 1|allow|self;2|allow|jid|admin@localhost;4|deny|all) for user: user_regularwt2p230195@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 21:37:24 | contains: true

2019-11-27 21:37:24 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 21:37:24 | command: <command><fields><item><var>jid</var><value>user_regularwt2p230195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:24 | target: http://localhost:8088

2019-11-27 21:37:24 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-11-27 21:37:24 | entity: <command><fields><item><var>jid</var><value>user_regularwt2p230195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:37:24 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-27 21:37:24 | response entity: <command>
  <jid>sess-man@localhost</jid>
  <node>user-domain-perm</node>
  <fields>
    <item>
      <var>Script result</var>
      <type>text-multi</type>
      <value>Changed an old value: CUSTOM (domains list: 1|allow|self;2|allow|jid|admin@localhost;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|all) for user: user_regularwt2p230195@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 21:37:24 | contains: true

testMessageFiltering 1.741s
2019-11-27 21:37:25 |

2019-11-27 21:37:25 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-27 21:37:25 | ------------------------------------

2019-11-27 21:37:25 | [Mutex] waiting for: [msg:b0o46e0202]

2019-11-27 21:37:25 | [Mutex] received everything.

2019-11-27 21:37:25 | [Mutex] waiting for: [msg:5wrb5y0204]

2019-11-27 21:37:25 | [Mutex] received everything.

2019-11-27 21:37:25 | [Mutex] waiting for: [msg:t9jnby0206]

2019-11-27 21:37:25 | [Mutex] received everything.

2019-11-27 21:37:25 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 21:37:25 | command: <command><fields><item><var>jid</var><value>user_regularbytjur0198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:25 | target: http://localhost:8088

2019-11-27 21:37:25 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-11-27 21:37:25 | entity: <command><fields><item><var>jid</var><value>user_regularbytjur0198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:25 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:37:25 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-27 21:37:25 | response entity: <command>
  <jid>sess-man@localhost</jid>
  <node>user-domain-perm</node>
  <fields>
    <item>
      <var>Script result</var>
      <type>text-multi</type>
      <value>Changed an old value: null (domains list: ) to a new value: CUSTOM (domains list: 1|allow|self;4|deny|all) for user: user_regularbytjur0198@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 21:37:25 | contains: true

2019-11-27 21:37:26 | [Mutex] waiting for: [msg:75jtdy0208]

2019-11-27 21:37:26 | [Mutex] received everything.

2019-11-27 21:37:26 | [Mutex] waiting for: [g4zwyo0209:forbidden]

2019-11-27 21:37:26 | [Mutex] received everything.

2019-11-27 21:37:26 | [Mutex] isItemNotified: g4zwyo0209:forbidden :: true

2019-11-27 21:37:26 | [Mutex] waiting for: [wlgnw10211:forbidden]

2019-11-27 21:37:26 | [Mutex] waiting for: [wlgnw10211:forbidden]

2019-11-27 21:37:26 | [Mutex] received everything.

2019-11-27 21:37:26 | [Mutex] isItemNotified: wlgnw10211:forbidden :: true

2019-11-27 21:37:26 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 21:37:26 | command: <command><fields><item><var>jid</var><value>user_regularbytjur0198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistlzrp9u0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:26 | target: http://localhost:8088

2019-11-27 21:37:26 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-11-27 21:37:26 | entity: <command><fields><item><var>jid</var><value>user_regularbytjur0198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistlzrp9u0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 21:37:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:37:26 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-27 21:37:26 | response entity: <command>
  <jid>sess-man@localhost</jid>
  <node>user-domain-perm</node>
  <fields>
    <item>
      <var>Script result</var>
      <type>text-multi</type>
      <value>Changed an old value: CUSTOM (domains list: 1|allow|self;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|self;2|allow|jid|user_regular1_whitelistlzrp9u0199@localhost;4|deny|all) for user: user_regularbytjur0198@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 21:37:26 | contains: true

2019-11-27 21:37:27 | [Mutex] waiting for: [msg:vgnx910214]

2019-11-27 21:37:27 | [Mutex] received everything.

2019-11-27 21:37:27 | [Mutex] waiting for: [msg:w9v7ea0216]

2019-11-27 21:37:27 | [Mutex] received everything.

2019-11-27 21:37:27 | [Mutex] waiting for: [qdfxey0217:forbidden]

2019-11-27 21:37:27 | [Mutex] received everything.

2019-11-27 21:37:27 | [Mutex] isItemNotified: qdfxey0217:forbidden :: true