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

Test duration: 5.894s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.264s
2020-05-27 22:50:34 |

2020-05-27 22:50:34 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-27 22:50:34 | ------------------------------------

2020-05-27 22:50:34 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 22:50:34 | command: <command><fields><item><var>jid</var><value>user_regularvbbk3u0217@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-27 22:50:34 | target: http://localhost:8088

2020-05-27 22:50:34 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-05-27 22:50:34 | entity: <command><fields><item><var>jid</var><value>user_regularvbbk3u0217@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-27 22:50:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:50:34 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 22:50:34 | 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_regularvbbk3u0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 22:50:34 | contains: true

2020-05-27 22:50:34 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 22:50:34 | command: <command><fields><item><var>jid</var><value>user_regularvbbk3u0217@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-27 22:50:34 | target: http://localhost:8088

2020-05-27 22:50:34 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-05-27 22:50:34 | entity: <command><fields><item><var>jid</var><value>user_regularvbbk3u0217@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-27 22:50:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:50:34 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 22:50:34 | 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_regularvbbk3u0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 22:50:34 | contains: true

testMessageFiltering 1.857s
2020-05-27 22:50:36 |

2020-05-27 22:50:36 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-27 22:50:36 | ------------------------------------

2020-05-27 22:50:36 | [Mutex] waiting for: [msg:y0aud90224]

2020-05-27 22:50:36 | [Mutex] received everything.

2020-05-27 22:50:36 | [Mutex] waiting for: [msg:v39bne0226]

2020-05-27 22:50:36 | [Mutex] received everything.

2020-05-27 22:50:36 | [Mutex] waiting for: [msg:6zfeqz0228]

2020-05-27 22:50:36 | [Mutex] received everything.

2020-05-27 22:50:36 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 22:50:36 | command: <command><fields><item><var>jid</var><value>user_regularo07xcn0220@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-27 22:50:36 | target: http://localhost:8088

2020-05-27 22:50:36 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-05-27 22:50:36 | entity: <command><fields><item><var>jid</var><value>user_regularo07xcn0220@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-27 22:50:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:50:36 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 22:50:36 | 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_regularo07xcn0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 22:50:36 | contains: true

2020-05-27 22:50:37 | [Mutex] waiting for: [msg:vtreis0230]

2020-05-27 22:50:37 | [Mutex] received everything.

2020-05-27 22:50:37 | [Mutex] waiting for: [6cche20231:forbidden]

2020-05-27 22:50:37 | [Mutex] received everything.

2020-05-27 22:50:37 | [Mutex] isItemNotified: 6cche20231:forbidden :: true

2020-05-27 22:50:37 | [Mutex] waiting for: [ynirlv0233:forbidden]

2020-05-27 22:50:37 | [Mutex] received everything.

2020-05-27 22:50:37 | [Mutex] isItemNotified: ynirlv0233:forbidden :: true

2020-05-27 22:50:37 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 22:50:37 | command: <command><fields><item><var>jid</var><value>user_regularo07xcn0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist27pcdm0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-27 22:50:37 | target: http://localhost:8088

2020-05-27 22:50:37 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-05-27 22:50:37 | entity: <command><fields><item><var>jid</var><value>user_regularo07xcn0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist27pcdm0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-27 22:50:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:50:37 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 22:50: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: CUSTOM (domains list: 1|allow|self;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|self;2|allow|jid|user_regular1_whitelist27pcdm0221@localhost;4|deny|all) for user: user_regularo07xcn0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 22:50:37 | contains: true

2020-05-27 22:50:38 | [Mutex] waiting for: [msg:h9e520236]

2020-05-27 22:50:38 | [Mutex] received everything.

2020-05-27 22:50:38 | [Mutex] waiting for: [msg:fcw7ui0238]

2020-05-27 22:50:38 | [Mutex] received everything.

2020-05-27 22:50:38 | [Mutex] received everything.

2020-05-27 22:50:38 | [Mutex] isItemNotified: ao14dh0239:forbidden :: true