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

Test duration: 6.607s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.288s
2020-08-03 05:53:08 |

2020-08-03 05:53:08 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-08-03 05:53:08 | ------------------------------------

2020-08-03 05:53:08 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-08-03 05:53:08 | command: <command><fields><item><var>jid</var><value>user_regular1xl7vn0213@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-08-03 05:53:08 | target: http://localhost:8088

2020-08-03 05:53:08 | entity: [Content-Type: application/xml,Content-Length: 313,Chunked: false]

2020-08-03 05:53:08 | entity: <command><fields><item><var>jid</var><value>user_regular1xl7vn0213@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-08-03 05:53:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 03 Aug 2020 12:53:08 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-08-03 05:53:08 | 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_regular1xl7vn0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-08-03 05:53:08 | contains: true

2020-08-03 05:53:08 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-08-03 05:53:08 | command: <command><fields><item><var>jid</var><value>user_regular1xl7vn0213@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-08-03 05:53:08 | target: http://localhost:8088

2020-08-03 05:53:08 | entity: [Content-Type: application/xml,Content-Length: 267,Chunked: false]

2020-08-03 05:53:08 | entity: <command><fields><item><var>jid</var><value>user_regular1xl7vn0213@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-08-03 05:53:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 03 Aug 2020 12:53:08 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-08-03 05:53:08 | 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_regular1xl7vn0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-08-03 05:53:08 | contains: true

testMessageFiltering 2.677s
2020-08-03 05:53:10 |

2020-08-03 05:53:10 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-08-03 05:53:10 | ------------------------------------

2020-08-03 05:53:10 | [Mutex] waiting for: [msg:e95ysr0220]

2020-08-03 05:53:10 | [Mutex] received everything.

2020-08-03 05:53:10 | [Mutex] isItemNotified: msg:e95ysr0220 :: true

2020-08-03 05:53:10 | [Mutex] waiting for: [msg:17i3l80222]

2020-08-03 05:53:10 | [Mutex] received everything.

2020-08-03 05:53:10 | [Mutex] isItemNotified: msg:17i3l80222 :: true

2020-08-03 05:53:10 | [Mutex] waiting for: [msg:souzg40224]

2020-08-03 05:53:10 | [Mutex] received everything.

2020-08-03 05:53:10 | [Mutex] isItemNotified: msg:souzg40224 :: true

2020-08-03 05:53:10 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-08-03 05:53:10 | command: <command><fields><item><var>jid</var><value>user_regularp5fj420216@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-08-03 05:53:10 | target: http://localhost:8088

2020-08-03 05:53:10 | entity: [Content-Type: application/xml,Content-Length: 279,Chunked: false]

2020-08-03 05:53:10 | entity: <command><fields><item><var>jid</var><value>user_regularp5fj420216@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-08-03 05:53:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 03 Aug 2020 12:53:10 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-08-03 05:53:10 | 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_regularp5fj420216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-08-03 05:53:10 | contains: true

2020-08-03 05:53:11 | [Mutex] waiting for: [msg:p91eqn0226]

2020-08-03 05:53:11 | [Mutex] received everything.

2020-08-03 05:53:11 | [Mutex] isItemNotified: msg:p91eqn0226 :: true

2020-08-03 05:53:11 | [Mutex] waiting for: [aua9zx0227:forbidden]

2020-08-03 05:53:11 | [Mutex] received everything.

2020-08-03 05:53:11 | [Mutex] isItemNotified: aua9zx0227:forbidden :: true

2020-08-03 05:53:11 | [Mutex] waiting for: [ifaepq0229:forbidden]

2020-08-03 05:53:11 | [Mutex] received everything.

2020-08-03 05:53:11 | [Mutex] isItemNotified: ifaepq0229:forbidden :: true

2020-08-03 05:53:11 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-08-03 05:53:11 | command: <command><fields><item><var>jid</var><value>user_regularp5fj420216@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_whitelistmac4y30217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-08-03 05:53:11 | target: http://localhost:8088

2020-08-03 05:53:11 | entity: [Content-Type: application/xml,Content-Length: 341,Chunked: false]

2020-08-03 05:53:11 | entity: <command><fields><item><var>jid</var><value>user_regularp5fj420216@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_whitelistmac4y30217@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-08-03 05:53:11 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 03 Aug 2020 12:53:11 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-08-03 05:53:11 | 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_whitelistmac4y30217@test-domain.com;4|deny|all) for user: user_regularp5fj420216@test-domain.com</value>
    </item>
  </fields>
</command>

2020-08-03 05:53:11 | contains: true

2020-08-03 05:53:12 | [Mutex] waiting for: [msg:oy3psl0232]

2020-08-03 05:53:12 | [Mutex] received everything.

2020-08-03 05:53:12 | [Mutex] isItemNotified: msg:oy3psl0232 :: true

2020-08-03 05:53:12 | [Mutex] waiting for: [msg:h7x47s0234]

2020-08-03 05:53:12 | [Mutex] received everything.

2020-08-03 05:53:12 | [Mutex] isItemNotified: msg:h7x47s0234 :: true

2020-08-03 05:53:12 | [Mutex] received everything.

2020-08-03 05:53:12 | [Mutex] isItemNotified: 2ldrlv0235:forbidden :: true