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

Test duration: 5.240s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.208s
2020-06-17 00:29:14 |

2020-06-17 00:29:14 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-17 00:29:14 | ------------------------------------

2020-06-17 00:29:14 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 00:29:14 | command: <command><fields><item><var>jid</var><value>user_regularic40cv0217@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-06-17 00:29:14 | target: http://localhost:8088

2020-06-17 00:29:14 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-06-17 00:29:14 | entity: <command><fields><item><var>jid</var><value>user_regularic40cv0217@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-06-17 00:29:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:29:14 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 00:29:14 | 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_regularic40cv0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 00:29:14 | contains: true

2020-06-17 00:29:14 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 00:29:14 | command: <command><fields><item><var>jid</var><value>user_regularic40cv0217@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-06-17 00:29:14 | target: http://localhost:8088

2020-06-17 00:29:14 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-06-17 00:29:14 | entity: <command><fields><item><var>jid</var><value>user_regularic40cv0217@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-06-17 00:29:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:29:14 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 00:29:14 | 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_regularic40cv0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 00:29:14 | contains: true

testMessageFiltering 1.663s
2020-06-17 00:29:16 |

2020-06-17 00:29:16 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-17 00:29:16 | ------------------------------------

2020-06-17 00:29:16 | [Mutex] waiting for: [msg:wj0u9p0224]

2020-06-17 00:29:16 | [Mutex] received everything.

2020-06-17 00:29:16 | [Mutex] waiting for: [msg:kowqi80226]

2020-06-17 00:29:16 | [Mutex] received everything.

2020-06-17 00:29:16 | [Mutex] waiting for: [msg:e4vx310228]

2020-06-17 00:29:16 | [Mutex] received everything.

2020-06-17 00:29:16 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 00:29:16 | command: <command><fields><item><var>jid</var><value>user_regularc9d8z00220@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-06-17 00:29:16 | target: http://localhost:8088

2020-06-17 00:29:16 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-06-17 00:29:16 | entity: <command><fields><item><var>jid</var><value>user_regularc9d8z00220@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-06-17 00:29:16 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:29:16 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 00:29:16 | 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_regularc9d8z00220@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 00:29:16 | contains: true

2020-06-17 00:29:17 | [Mutex] waiting for: [msg:lqqlwo0230]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] waiting for: [3nzg920231:forbidden]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] isItemNotified: 3nzg920231:forbidden :: true

2020-06-17 00:29:17 | [Mutex] waiting for: [ukmow10233:forbidden]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] isItemNotified: ukmow10233:forbidden :: true

2020-06-17 00:29:17 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 00:29:17 | command: <command><fields><item><var>jid</var><value>user_regularc9d8z00220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistgcdznl0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-17 00:29:17 | target: http://localhost:8088

2020-06-17 00:29:17 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-06-17 00:29:17 | entity: <command><fields><item><var>jid</var><value>user_regularc9d8z00220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistgcdznl0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-17 00:29:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:29:17 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 00:29:17 | 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_whitelistgcdznl0221@localhost;4|deny|all) for user: user_regularc9d8z00220@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 00:29:17 | contains: true

2020-06-17 00:29:17 | [Mutex] waiting for: [msg:rxdibz0236]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] waiting for: [msg:4aq6pa0238]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] waiting for: [ufu9s20239:forbidden]

2020-06-17 00:29:17 | [Mutex] received everything.

2020-06-17 00:29:17 | [Mutex] isItemNotified: ufu9s20239:forbidden :: true