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

Test duration: 5.322s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.261s
2020-05-26 00:14:18 |

2020-05-26 00:14:18 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-26 00:14:18 | ------------------------------------

2020-05-26 00:14:18 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 00:14:18 | command: <command><fields><item><var>jid</var><value>user_regularp9uvzw0217@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>

2020-05-26 00:14:18 | target: http://localhost:8088

2020-05-26 00:14:18 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-05-26 00:14:18 | entity: <command><fields><item><var>jid</var><value>user_regularp9uvzw0217@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>

2020-05-26 00:14:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 07:14:18 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 00:14:18 | 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_regularp9uvzw0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 00:14:18 | contains: true

2020-05-26 00:14:18 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 00:14:18 | command: <command><fields><item><var>jid</var><value>user_regularp9uvzw0217@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>

2020-05-26 00:14:18 | target: http://localhost:8088

2020-05-26 00:14:18 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-05-26 00:14:18 | entity: <command><fields><item><var>jid</var><value>user_regularp9uvzw0217@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>

2020-05-26 00:14:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 07:14:18 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 00:14:18 | 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_regularp9uvzw0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 00:14:18 | contains: true

testMessageFiltering 1.708s
2020-05-26 00:14:19 |

2020-05-26 00:14:19 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-26 00:14:19 | ------------------------------------

2020-05-26 00:14:19 | [Mutex] waiting for: [msg:s41n210224]

2020-05-26 00:14:19 | [Mutex] received everything.

2020-05-26 00:14:19 | [Mutex] waiting for: [msg:1ezbik0226]

2020-05-26 00:14:19 | [Mutex] received everything.

2020-05-26 00:14:19 | [Mutex] waiting for: [msg:fwvp8v0228]

2020-05-26 00:14:19 | [Mutex] received everything.

2020-05-26 00:14:19 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 00:14:19 | command: <command><fields><item><var>jid</var><value>user_regular18x1wr0220@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>

2020-05-26 00:14:19 | target: http://localhost:8088

2020-05-26 00:14:19 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-05-26 00:14:19 | entity: <command><fields><item><var>jid</var><value>user_regular18x1wr0220@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>

2020-05-26 00:14:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 07:14:19 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 00:14:19 | 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_regular18x1wr0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 00:14:19 | contains: true

2020-05-26 00:14:20 | [Mutex] waiting for: [msg:8sqjrh0230]

2020-05-26 00:14:20 | [Mutex] received everything.

2020-05-26 00:14:20 | [Mutex] waiting for: [ltunxz0231:forbidden]

2020-05-26 00:14:20 | [Mutex] received everything.

2020-05-26 00:14:20 | [Mutex] isItemNotified: ltunxz0231:forbidden :: true

2020-05-26 00:14:20 | [Mutex] waiting for: [nch37e0233:forbidden]

2020-05-26 00:14:20 | [Mutex] received everything.

2020-05-26 00:14:20 | [Mutex] isItemNotified: nch37e0233:forbidden :: true

2020-05-26 00:14:20 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 00:14:20 | command: <command><fields><item><var>jid</var><value>user_regular18x1wr0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistrxnbq50221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-26 00:14:20 | target: http://localhost:8088

2020-05-26 00:14:20 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-05-26 00:14:20 | entity: <command><fields><item><var>jid</var><value>user_regular18x1wr0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistrxnbq50221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-26 00:14:20 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 07:14:20 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 00:14:20 | 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_whitelistrxnbq50221@localhost;4|deny|all) for user: user_regular18x1wr0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 00:14:20 | contains: true

2020-05-26 00:14:21 | [Mutex] waiting for: [msg:vtvtfs0236]

2020-05-26 00:14:21 | [Mutex] received everything.

2020-05-26 00:14:21 | [Mutex] waiting for: [msg:lebrs80238]

2020-05-26 00:14:21 | [Mutex] received everything.

2020-05-26 00:14:21 | [Mutex] waiting for: [r2xx6w0239:forbidden]

2020-05-26 00:14:21 | [Mutex] received everything.

2020-05-26 00:14:21 | [Mutex] isItemNotified: r2xx6w0239:forbidden :: true