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

Test duration: 5.372s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.245s
2020-06-19 00:33:31 |

2020-06-19 00:33:31 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-19 00:33:31 | ------------------------------------

2020-06-19 00:33:31 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-19 00:33:31 | command: <command><fields><item><var>jid</var><value>user_regulare2swb00217@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-19 00:33:31 | target: http://localhost:8088

2020-06-19 00:33:31 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

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

2020-06-19 00:33:31 | 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_regulare2swb00217@localhost</value>
    </item>
  </fields>
</command>

2020-06-19 00:33:31 | contains: true

2020-06-19 00:33:31 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-19 00:33:31 | command: <command><fields><item><var>jid</var><value>user_regulare2swb00217@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-19 00:33:31 | target: http://localhost:8088

2020-06-19 00:33:31 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

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

2020-06-19 00:33:31 | 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_regulare2swb00217@localhost</value>
    </item>
  </fields>
</command>

2020-06-19 00:33:31 | contains: true

testMessageFiltering 1.725s
2020-06-19 00:33:32 |

2020-06-19 00:33:32 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-19 00:33:32 | ------------------------------------

2020-06-19 00:33:32 | [Mutex] waiting for: [msg:4l51fk0224]

2020-06-19 00:33:32 | [Mutex] received everything.

2020-06-19 00:33:32 | [Mutex] waiting for: [msg:77ofgv0226]

2020-06-19 00:33:32 | [Mutex] received everything.

2020-06-19 00:33:32 | [Mutex] waiting for: [msg:77r3z60228]

2020-06-19 00:33:32 | [Mutex] received everything.

2020-06-19 00:33:32 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-19 00:33:32 | command: <command><fields><item><var>jid</var><value>user_regular1hcdiy0220@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-19 00:33:32 | target: http://localhost:8088

2020-06-19 00:33:32 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

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

2020-06-19 00:33:32 | 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_regular1hcdiy0220@localhost</value>
    </item>
  </fields>
</command>

2020-06-19 00:33:32 | contains: true

2020-06-19 00:33:33 | [Mutex] waiting for: [msg:cz04ow0230]

2020-06-19 00:33:33 | [Mutex] received everything.

2020-06-19 00:33:33 | [Mutex] waiting for: [s4zwhy0231:forbidden]

2020-06-19 00:33:33 | [Mutex] received everything.

2020-06-19 00:33:33 | [Mutex] isItemNotified: s4zwhy0231:forbidden :: true

2020-06-19 00:33:33 | [Mutex] waiting for: [o6fkmx0233:forbidden]

2020-06-19 00:33:33 | [Mutex] received everything.

2020-06-19 00:33:33 | [Mutex] isItemNotified: o6fkmx0233:forbidden :: true

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

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

2020-06-19 00:33:33 | target: http://localhost:8088

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

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

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

2020-06-19 00:33:33 | 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_whitelist2ddhow0221@localhost;4|deny|all) for user: user_regular1hcdiy0220@localhost</value>
    </item>
  </fields>
</command>

2020-06-19 00:33:33 | contains: true

2020-06-19 00:33:34 | [Mutex] waiting for: [msg:xf53hw0236]

2020-06-19 00:33:34 | [Mutex] received everything.

2020-06-19 00:33:34 | [Mutex] waiting for: [msg:vw78v30238]

2020-06-19 00:33:34 | [Mutex] received everything.

2020-06-19 00:33:34 | [Mutex] waiting for: [anix4o0239:forbidden]

2020-06-19 00:33:34 | [Mutex] received everything.

2020-06-19 00:33:34 | [Mutex] isItemNotified: anix4o0239:forbidden :: true