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

Test duration: 6.783s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.398s
2020-07-30 01:01:19 |

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

2020-07-30 01:01:19 | ------------------------------------

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

2020-07-30 01:01:19 | command: <command><fields><item><var>jid</var><value>user_regular34z5t20212@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-30 01:01:19 | target: http://localhost:8088

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

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

2020-07-30 01:01:19 | 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_regular34z5t20212@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-30 01:01:19 | contains: true

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

2020-07-30 01:01:19 | command: <command><fields><item><var>jid</var><value>user_regular34z5t20212@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-30 01:01:19 | target: http://localhost:8088

2020-07-30 01:01:19 | entity: [Content-Type: application/xml,Content-Length: 267,Chunked: false]

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

2020-07-30 01:01:19 | 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_regular34z5t20212@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-30 01:01:19 | contains: true

testMessageFiltering 2.776s
2020-07-30 01:01:21 |

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

2020-07-30 01:01:21 | ------------------------------------

2020-07-30 01:01:21 | [Mutex] waiting for: [msg:msh1yg0219]

2020-07-30 01:01:21 | [Mutex] received everything.

2020-07-30 01:01:21 | [Mutex] isItemNotified: msg:msh1yg0219 :: true

2020-07-30 01:01:21 | [Mutex] waiting for: [msg:qtfbp20221]

2020-07-30 01:01:21 | [Mutex] received everything.

2020-07-30 01:01:21 | [Mutex] isItemNotified: msg:qtfbp20221 :: true

2020-07-30 01:01:21 | [Mutex] waiting for: [msg:rbux8m0223]

2020-07-30 01:01:21 | [Mutex] received everything.

2020-07-30 01:01:21 | [Mutex] isItemNotified: msg:rbux8m0223 :: true

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

2020-07-30 01:01:21 | command: <command><fields><item><var>jid</var><value>user_regular1fpnhe0215@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-30 01:01:21 | target: http://localhost:8088

2020-07-30 01:01:21 | entity: [Content-Type: application/xml,Content-Length: 279,Chunked: false]

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

2020-07-30 01:01:21 | 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_regular1fpnhe0215@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-30 01:01:21 | contains: true

2020-07-30 01:01:21 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=497 thread=1] Connector  state changed: connected->disconnecting

2020-07-30 01:01:21 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=497 thread=1] Terminating XMPP Stream

2020-07-30 01:01:21 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-07-30 01:01:21 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-07-30 01:01:21 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-07-30 01:01:22 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Connector  state changed: null->connecting

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] DNS entry stored in session object: localhost:5222

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Preparing connection to [localhost:5222]

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Connector  state changed: connecting->connected

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Whitespace ping period is setted to nullms

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=3190] Proceeding TLS

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=3190] Start handshake

2020-07-30 01:01:22 | [Mutex] waiting for: [msg:5mn12x0225]

2020-07-30 01:01:22 | [Mutex] received everything.

2020-07-30 01:01:22 | [Mutex] isItemNotified: msg:5mn12x0225 :: true

2020-07-30 01:01:22 | [Mutex] waiting for: [d7lvem0226:forbidden]

2020-07-30 01:01:22 | [Mutex] received everything.

2020-07-30 01:01:22 | [Mutex] isItemNotified: d7lvem0226:forbidden :: true

2020-07-30 01:01:22 | [Mutex] waiting for: [3fet250228:forbidden]

2020-07-30 01:01:22 | [Mutex] received everything.

2020-07-30 01:01:22 | [Mutex] isItemNotified: 3fet250228:forbidden :: true

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

2020-07-30 01:01:22 | command: <command><fields><item><var>jid</var><value>user_regular1fpnhe0215@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_whitelist6a9o2j0216@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-30 01:01:22 | target: http://localhost:8088

2020-07-30 01:01:22 | entity: [Content-Type: application/xml,Content-Length: 341,Chunked: false]

2020-07-30 01:01:22 | entity: <command><fields><item><var>jid</var><value>user_regular1fpnhe0215@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_whitelist6a9o2j0216@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

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

2020-07-30 01:01:22 | 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_whitelist6a9o2j0216@test-domain.com;4|deny|all) for user: user_regular1fpnhe0215@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-30 01:01:22 | contains: true

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Connector  state changed: connected->disconnecting

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=1] Terminating XMPP Stream

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=3190] Connector  state changed: disconnecting->disconnected

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=502 thread=3190] Stream terminated

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-07-30 01:01:22 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-07-30 01:01:22 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-07-30 01:01:22 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-07-30 01:01:23 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] Connector  state changed: null->connecting

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] DNS entry stored in session object: localhost:5222

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] Preparing connection to [localhost:5222]

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] Connector  state changed: connecting->connected

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=1] Whitespace ping period is setted to nullms

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=3196] Proceeding TLS

2020-07-30 01:01:23 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=3196] Start handshake

2020-07-30 01:01:24 | [Mutex] waiting for: [msg:xgnypr0231]

2020-07-30 01:01:24 | [Mutex] received everything.

2020-07-30 01:01:24 | [Mutex] isItemNotified: msg:xgnypr0231 :: true

2020-07-30 01:01:24 | [Mutex] waiting for: [msg:uufqh10233]

2020-07-30 01:01:24 | [Mutex] received everything.

2020-07-30 01:01:24 | [Mutex] isItemNotified: msg:uufqh10233 :: true

2020-07-30 01:01:24 | [Mutex] waiting for: [6yk5pj0234:forbidden]

2020-07-30 01:01:24 | [Mutex] received everything.

2020-07-30 01:01:24 | [Mutex] isItemNotified: 6yk5pj0234:forbidden :: true

2020-07-30 01:01:24 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=3196] Connector  state changed: connected->disconnected

2020-07-30 01:01:24 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=503 thread=3196] Stream terminated

2020-07-30 01:01:24 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-07-30 01:01:24 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted