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

Test duration: 5,646s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0,267s
2020-07-23 11:07:30 |

2020-07-23 11:07:30 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-07-23 11:07:30 | ------------------------------------

2020-07-23 11:07:30 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-23 11:07:30 | command: <command><fields><item><var>jid</var><value>user_regularnlis9h0213@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-23 11:07:30 | target: http://localhost:8088

2020-07-23 11:07:30 | entity: [Content-Type: application/xml,Content-Length: 313,Chunked: false]

2020-07-23 11:07:30 | entity: <command><fields><item><var>jid</var><value>user_regularnlis9h0213@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-23 11:07:31 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:07:31 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-23 11:07:31 | response entity: <command>
  <jid>sess-man@test-domain.com</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@test-domain.com;4|deny|all) for user: user_regularnlis9h0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:07:31 | contains: true

2020-07-23 11:07:31 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-23 11:07:31 | command: <command><fields><item><var>jid</var><value>user_regularnlis9h0213@test-domain.com</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-07-23 11:07:31 | target: http://localhost:8088

2020-07-23 11:07:31 | entity: [Content-Type: application/xml,Content-Length: 267,Chunked: false]

2020-07-23 11:07:31 | entity: <command><fields><item><var>jid</var><value>user_regularnlis9h0213@test-domain.com</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-07-23 11:07:31 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:07:31 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-23 11:07:31 | response entity: <command>
  <jid>sess-man@test-domain.com</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@test-domain.com;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|all) for user: user_regularnlis9h0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:07:31 | contains: true

testMessageFiltering 2,668s
2020-07-23 11:07:32 |

2020-07-23 11:07:32 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-07-23 11:07:32 | ------------------------------------

2020-07-23 11:07:32 | [Mutex] waiting for: [msg:pvqode0220]

2020-07-23 11:07:32 | [Mutex] received everything.

2020-07-23 11:07:32 | [Mutex] isItemNotified: msg:pvqode0220 :: true

2020-07-23 11:07:32 | [Mutex] waiting for: [msg:i251kk0222]

2020-07-23 11:07:32 | [Mutex] received everything.

2020-07-23 11:07:32 | [Mutex] isItemNotified: msg:i251kk0222 :: true

2020-07-23 11:07:32 | [Mutex] waiting for: [msg:f9t14q0224]

2020-07-23 11:07:32 | [Mutex] received everything.

2020-07-23 11:07:32 | [Mutex] isItemNotified: msg:f9t14q0224 :: true

2020-07-23 11:07:32 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-23 11:07:32 | command: <command><fields><item><var>jid</var><value>user_regular3jsyz20216@test-domain.com</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-07-23 11:07:32 | target: http://localhost:8088

2020-07-23 11:07:32 | entity: [Content-Type: application/xml,Content-Length: 279,Chunked: false]

2020-07-23 11:07:32 | entity: <command><fields><item><var>jid</var><value>user_regular3jsyz20216@test-domain.com</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-07-23 11:07:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:07:32 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-23 11:07:32 | response entity: <command>
  <jid>sess-man@test-domain.com</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_regular3jsyz20216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:07:32 | contains: true

2020-07-23 11:07:33 | [Mutex] waiting for: [msg:ei41i70226]

2020-07-23 11:07:33 | [Mutex] received everything.

2020-07-23 11:07:33 | [Mutex] isItemNotified: msg:ei41i70226 :: true

2020-07-23 11:07:33 | [Mutex] waiting for: [k2m1p70227:forbidden]

2020-07-23 11:07:33 | [Mutex] received everything.

2020-07-23 11:07:33 | [Mutex] isItemNotified: k2m1p70227:forbidden :: true

2020-07-23 11:07:33 | [Mutex] waiting for: [w1dz4g0229:forbidden]

2020-07-23 11:07:33 | [Mutex] received everything.

2020-07-23 11:07:33 | [Mutex] isItemNotified: w1dz4g0229:forbidden :: true

2020-07-23 11:07:33 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-23 11:07:33 | command: <command><fields><item><var>jid</var><value>user_regular3jsyz20216@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistut5cq70217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-23 11:07:33 | target: http://localhost:8088

2020-07-23 11:07:33 | entity: [Content-Type: application/xml,Content-Length: 341,Chunked: false]

2020-07-23 11:07:33 | entity: <command><fields><item><var>jid</var><value>user_regular3jsyz20216@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistut5cq70217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-23 11:07:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:07:33 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-23 11:07:33 | response entity: <command>
  <jid>sess-man@test-domain.com</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_whitelistut5cq70217@test-domain.com;4|deny|all) for user: user_regular3jsyz20216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:07:33 | contains: true

2020-07-23 11:07:35 | [Mutex] waiting for: [msg:p4t56u0232]

2020-07-23 11:07:35 | [Mutex] received everything.

2020-07-23 11:07:35 | [Mutex] isItemNotified: msg:p4t56u0232 :: true

2020-07-23 11:07:35 | [Mutex] waiting for: [msg:pwpjfo0234]

2020-07-23 11:07:35 | [Mutex] received everything.

2020-07-23 11:07:35 | [Mutex] isItemNotified: msg:pwpjfo0234 :: true

2020-07-23 11:07:35 | [Mutex] waiting for: [eh4xvp0235:forbidden]

2020-07-23 11:07:35 | [Mutex] received everything.

2020-07-23 11:07:35 | [Mutex] isItemNotified: eh4xvp0235:forbidden :: true