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

Test duration: 5,642s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0,220s
2020-07-23 11:59:34 |

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

2020-07-23 11:59:34 | ------------------------------------

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

2020-07-23 11:59:34 | command: <command><fields><item><var>jid</var><value>user_regularvffv3a0213@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:59:34 | target: http://localhost:8088

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

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

2020-07-23 11:59:34 | 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_regularvffv3a0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:59:34 | contains: true

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

2020-07-23 11:59:34 | command: <command><fields><item><var>jid</var><value>user_regularvffv3a0213@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:59:34 | target: http://localhost:8088

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

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

2020-07-23 11:59:34 | 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_regularvffv3a0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:59:34 | contains: true

testMessageFiltering 2,559s
2020-07-23 11:59:35 |

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

2020-07-23 11:59:35 | ------------------------------------

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

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

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

2020-07-23 11:59:35 | [Mutex] waiting for: [msg:69xwih0222]

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

2020-07-23 11:59:35 | [Mutex] isItemNotified: msg:69xwih0222 :: true

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

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

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

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

2020-07-23 11:59:35 | command: <command><fields><item><var>jid</var><value>user_regularnaltwz0216@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:59:35 | target: http://localhost:8088

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

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

2020-07-23 11:59:35 | 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_regularnaltwz0216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:59:35 | contains: true

2020-07-23 11:59:36 | [Mutex] waiting for: [msg:7elo9l0226]

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

2020-07-23 11:59:36 | [Mutex] isItemNotified: msg:7elo9l0226 :: true

2020-07-23 11:59:36 | [Mutex] waiting for: [9h26hw0227:forbidden]

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

2020-07-23 11:59:36 | [Mutex] isItemNotified: 9h26hw0227:forbidden :: true

2020-07-23 11:59:36 | [Mutex] waiting for: [kzo8d40229:forbidden]

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

2020-07-23 11:59:36 | [Mutex] isItemNotified: kzo8d40229:forbidden :: true

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

2020-07-23 11:59:36 | command: <command><fields><item><var>jid</var><value>user_regularnaltwz0216@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_whitelistb98bjq0217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

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

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

2020-07-23 11:59:36 | entity: <command><fields><item><var>jid</var><value>user_regularnaltwz0216@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_whitelistb98bjq0217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

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

2020-07-23 11:59:36 | 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_whitelistb98bjq0217@test-domain.com;4|deny|all) for user: user_regularnaltwz0216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-23 11:59:36 | contains: true

2020-07-23 11:59:38 | [Mutex] waiting for: [msg:h42ye70232]

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

2020-07-23 11:59:38 | [Mutex] isItemNotified: msg:h42ye70232 :: true

2020-07-23 11:59:38 | [Mutex] waiting for: [msg:xwol0y0234]

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

2020-07-23 11:59:38 | [Mutex] isItemNotified: msg:xwol0y0234 :: true

2020-07-23 11:59:38 | [Mutex] waiting for: [ve4vji0235:forbidden]

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

2020-07-23 11:59:38 | [Mutex] isItemNotified: ve4vji0235:forbidden :: true