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

Test duration: 6.083s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.300s
2020-06-24 23:23:35 |

2020-06-24 23:23:35 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-24 23:23:35 | ------------------------------------

2020-06-24 23:23:35 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-24 23:23:35 | command: <command><fields><item><var>jid</var><value>user_regularr2ixlj0217@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-24 23:23:35 | target: http://localhost:8088

2020-06-24 23:23:35 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-06-24 23:23:35 | entity: <command><fields><item><var>jid</var><value>user_regularr2ixlj0217@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-24 23:23:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:23:35 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-24 23:23:35 | 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_regularr2ixlj0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-24 23:23:35 | contains: true

2020-06-24 23:23:35 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-24 23:23:35 | command: <command><fields><item><var>jid</var><value>user_regularr2ixlj0217@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-24 23:23:35 | target: http://localhost:8088

2020-06-24 23:23:35 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-06-24 23:23:35 | entity: <command><fields><item><var>jid</var><value>user_regularr2ixlj0217@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-24 23:23:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:23:35 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-24 23:23:35 | 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_regularr2ixlj0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-24 23:23:35 | contains: true

testMessageFiltering 1.871s
2020-06-24 23:23:37 |

2020-06-24 23:23:37 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-24 23:23:37 | ------------------------------------

2020-06-24 23:23:37 | [Mutex] waiting for: [msg:e62hzk0224]

2020-06-24 23:23:37 | [Mutex] received everything.

2020-06-24 23:23:37 | [Mutex] waiting for: [msg:pcpwbz0226]

2020-06-24 23:23:37 | [Mutex] received everything.

2020-06-24 23:23:37 | [Mutex] waiting for: [msg:wci0pp0228]

2020-06-24 23:23:37 | [Mutex] received everything.

2020-06-24 23:23:37 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-24 23:23:37 | command: <command><fields><item><var>jid</var><value>user_regularyvfkr70220@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-24 23:23:37 | target: http://localhost:8088

2020-06-24 23:23:37 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-06-24 23:23:37 | entity: <command><fields><item><var>jid</var><value>user_regularyvfkr70220@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-24 23:23:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:23:37 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-24 23:23:37 | 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_regularyvfkr70220@localhost</value>
    </item>
  </fields>
</command>

2020-06-24 23:23:37 | contains: true

2020-06-24 23:23:38 | [Mutex] waiting for: [msg:hg1a4i0230]

2020-06-24 23:23:38 | [Mutex] received everything.

2020-06-24 23:23:38 | [Mutex] received everything.

2020-06-24 23:23:38 | [Mutex] isItemNotified: 6xr2ay0231:forbidden :: true

2020-06-24 23:23:38 | [Mutex] waiting for: [a3wgal0233:forbidden]

2020-06-24 23:23:38 | [Mutex] received everything.

2020-06-24 23:23:38 | [Mutex] isItemNotified: a3wgal0233:forbidden :: true

2020-06-24 23:23:38 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-24 23:23:38 | command: <command><fields><item><var>jid</var><value>user_regularyvfkr70220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist1h1jlv0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-24 23:23:38 | target: http://localhost:8088

2020-06-24 23:23:38 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-06-24 23:23:38 | entity: <command><fields><item><var>jid</var><value>user_regularyvfkr70220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist1h1jlv0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-24 23:23:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:23:38 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-24 23:23:38 | 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_whitelist1h1jlv0221@localhost;4|deny|all) for user: user_regularyvfkr70220@localhost</value>
    </item>
  </fields>
</command>

2020-06-24 23:23:38 | contains: true

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:nk0l550236]

2020-06-24 23:23:39 | [Mutex] received everything.

2020-06-24 23:23:39 | [Mutex] waiting for: [msg:5z27zz0238]

2020-06-24 23:23:39 | [Mutex] received everything.

2020-06-24 23:23:39 | [Mutex] waiting for: [khbddc0239:forbidden]

2020-06-24 23:23:39 | [Mutex] received everything.

2020-06-24 23:23:39 | [Mutex] isItemNotified: khbddc0239:forbidden :: true