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

Test duration: 4.933s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.222s
2019-12-12 20:43:47 |

2019-12-12 20:43:47 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-12-12 20:43:47 | ------------------------------------

2019-12-12 20:43:47 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-12 20:43:47 | command: <command><fields><item><var>jid</var><value>user_regular1kw8mm0195@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-12-12 20:43:47 | target: http://localhost:8088

2019-12-12 20:43:47 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-12-12 20:43:47 | entity: <command><fields><item><var>jid</var><value>user_regular1kw8mm0195@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-12-12 20:43:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:47 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-12 20:43:47 | 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_regular1kw8mm0195@localhost</value>
    </item>
  </fields>
</command>

2019-12-12 20:43:47 | contains: true

2019-12-12 20:43:47 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-12 20:43:47 | command: <command><fields><item><var>jid</var><value>user_regular1kw8mm0195@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-12-12 20:43:47 | target: http://localhost:8088

2019-12-12 20:43:47 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-12-12 20:43:47 | entity: <command><fields><item><var>jid</var><value>user_regular1kw8mm0195@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-12-12 20:43:48 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:48 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-12 20:43:48 | 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_regular1kw8mm0195@localhost</value>
    </item>
  </fields>
</command>

2019-12-12 20:43:48 | contains: true

testMessageFiltering 1.687s
2019-12-12 20:43:49 |

2019-12-12 20:43:49 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-12-12 20:43:49 | ------------------------------------

2019-12-12 20:43:49 | [Mutex] waiting for: [msg:1cdej30202]

2019-12-12 20:43:49 | [Mutex] received everything.

2019-12-12 20:43:49 | [Mutex] waiting for: [msg:rfab9l0204]

2019-12-12 20:43:49 | [Mutex] received everything.

2019-12-12 20:43:49 | [Mutex] waiting for: [msg:9xcn790206]

2019-12-12 20:43:49 | [Mutex] received everything.

2019-12-12 20:43:49 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-12 20:43:49 | command: <command><fields><item><var>jid</var><value>user_regularx9z2c80198@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-12-12 20:43:49 | target: http://localhost:8088

2019-12-12 20:43:49 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-12-12 20:43:49 | entity: <command><fields><item><var>jid</var><value>user_regularx9z2c80198@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-12-12 20:43:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:49 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-12 20:43:49 | 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_regularx9z2c80198@localhost</value>
    </item>
  </fields>
</command>

2019-12-12 20:43:49 | contains: true

2019-12-12 20:43:50 | [Mutex] waiting for: [msg:9mdji00208]

2019-12-12 20:43:50 | [Mutex] received everything.

2019-12-12 20:43:50 | [Mutex] waiting for: [eb5zy00209:forbidden]

2019-12-12 20:43:50 | [Mutex] received everything.

2019-12-12 20:43:50 | [Mutex] isItemNotified: eb5zy00209:forbidden :: true

2019-12-12 20:43:50 | [Mutex] waiting for: [nycomm0211:forbidden]

2019-12-12 20:43:50 | [Mutex] received everything.

2019-12-12 20:43:50 | [Mutex] isItemNotified: nycomm0211:forbidden :: true

2019-12-12 20:43:50 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-12 20:43:50 | command: <command><fields><item><var>jid</var><value>user_regularx9z2c80198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistn5nkxv0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-12-12 20:43:50 | target: http://localhost:8088

2019-12-12 20:43:50 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-12-12 20:43:50 | entity: <command><fields><item><var>jid</var><value>user_regularx9z2c80198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistn5nkxv0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-12-12 20:43:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:50 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-12 20:43:50 | 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_whitelistn5nkxv0199@localhost;4|deny|all) for user: user_regularx9z2c80198@localhost</value>
    </item>
  </fields>
</command>

2019-12-12 20:43:50 | contains: true

2019-12-12 20:43:50 | [Mutex] waiting for: [msg:g0rm700214]

2019-12-12 20:43:51 | [Mutex] received everything.

2019-12-12 20:43:51 | [Mutex] waiting for: [msg:kmblc00216]

2019-12-12 20:43:51 | [Mutex] received everything.

2019-12-12 20:43:51 | [Mutex] waiting for: [g6yrse0217:forbidden]

2019-12-12 20:43:51 | [Mutex] received everything.

2019-12-12 20:43:51 | [Mutex] isItemNotified: g6yrse0217:forbidden :: true