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

Test duration: 5.309s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.224s
2020-06-17 22:58:24 |

2020-06-17 22:58:24 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-17 22:58:24 | ------------------------------------

2020-06-17 22:58:24 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 22:58:24 | command: <command><fields><item><var>jid</var><value>user_regular2n7ij10213@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-17 22:58:24 | target: http://localhost:8088

2020-06-17 22:58:24 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-06-17 22:58:24 | entity: <command><fields><item><var>jid</var><value>user_regular2n7ij10213@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-17 22:58:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 18 Jun 2020 05:58:24 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 22:58:24 | 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_regular2n7ij10213@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 22:58:24 | contains: true

2020-06-17 22:58:24 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 22:58:24 | command: <command><fields><item><var>jid</var><value>user_regular2n7ij10213@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-17 22:58:24 | target: http://localhost:8088

2020-06-17 22:58:24 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-06-17 22:58:24 | entity: <command><fields><item><var>jid</var><value>user_regular2n7ij10213@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-17 22:58:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 18 Jun 2020 05:58:24 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 22:58:24 | 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_regular2n7ij10213@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 22:58:24 | contains: true

testMessageFiltering 1.655s
2020-06-17 22:58:25 |

2020-06-17 22:58:25 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-17 22:58:25 | ------------------------------------

2020-06-17 22:58:25 | [Mutex] waiting for: [msg:j8e6510220]

2020-06-17 22:58:25 | [Mutex] received everything.

2020-06-17 22:58:25 | [Mutex] waiting for: [msg:j0yv350222]

2020-06-17 22:58:25 | [Mutex] received everything.

2020-06-17 22:58:25 | [Mutex] waiting for: [msg:m8idy70224]

2020-06-17 22:58:25 | [Mutex] received everything.

2020-06-17 22:58:25 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 22:58:25 | command: <command><fields><item><var>jid</var><value>user_regularc696ds0216@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-17 22:58:25 | target: http://localhost:8088

2020-06-17 22:58:25 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-06-17 22:58:25 | entity: <command><fields><item><var>jid</var><value>user_regularc696ds0216@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-17 22:58:25 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 18 Jun 2020 05:58:25 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 22:58:25 | 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_regularc696ds0216@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 22:58:25 | contains: true

2020-06-17 22:58:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=516 thread=1] Connector  state changed: connected->disconnecting

2020-06-17 22:58:25 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=516 thread=1] Terminating XMPP Stream

2020-06-17 22:58:25 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-17 22:58:25 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-06-17 22:58:25 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-06-17 22:58:26 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: null->connecting

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] DNS entry stored in session object: localhost:5222

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Preparing connection to [localhost:5222]

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: connecting->connected

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Whitespace ping period is setted to nullms

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3296] Proceeding TLS

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3296] Start handshake

2020-06-17 22:58:26 | [Mutex] waiting for: [msg:6eyh4e0226]

2020-06-17 22:58:26 | [Mutex] received everything.

2020-06-17 22:58:26 | [Mutex] waiting for: [w4x8tn0227:forbidden]

2020-06-17 22:58:26 | [Mutex] received everything.

2020-06-17 22:58:26 | [Mutex] isItemNotified: w4x8tn0227:forbidden :: true

2020-06-17 22:58:26 | [Mutex] waiting for: [9ey2eg0229:forbidden]

2020-06-17 22:58:26 | [Mutex] received everything.

2020-06-17 22:58:26 | [Mutex] isItemNotified: 9ey2eg0229:forbidden :: true

2020-06-17 22:58:26 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-17 22:58:26 | command: <command><fields><item><var>jid</var><value>user_regularc696ds0216@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelisttezyv10217@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-17 22:58:26 | target: http://localhost:8088

2020-06-17 22:58:26 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-06-17 22:58:26 | entity: <command><fields><item><var>jid</var><value>user_regularc696ds0216@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelisttezyv10217@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-17 22:58:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 18 Jun 2020 05:58:26 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-17 22:58:26 | 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_whitelisttezyv10217@localhost;4|deny|all) for user: user_regularc696ds0216@localhost</value>
    </item>
  </fields>
</command>

2020-06-17 22:58:26 | contains: true

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: connected->disconnecting

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Terminating XMPP Stream

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3296] Connector  state changed: disconnecting->disconnected

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3296] Stream terminated

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-17 22:58:26 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-06-17 22:58:26 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-17 22:58:26 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-17 22:58:27 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Connector  state changed: null->connecting

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] DNS entry stored in session object: localhost:5222

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Preparing connection to [localhost:5222]

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Connector  state changed: connecting->connected

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Whitespace ping period is setted to nullms

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3302] Proceeding TLS

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3302] Start handshake

2020-06-17 22:58:27 | [Mutex] waiting for: [msg:ue8vtm0232]

2020-06-17 22:58:27 | [Mutex] received everything.

2020-06-17 22:58:27 | [Mutex] waiting for: [msg:qj40mw0234]

2020-06-17 22:58:27 | [Mutex] received everything.

2020-06-17 22:58:27 | [Mutex] waiting for: [nfjjuy0235:forbidden]

2020-06-17 22:58:27 | [Mutex] received everything.

2020-06-17 22:58:27 | [Mutex] isItemNotified: nfjjuy0235:forbidden :: true

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3302] Connector  state changed: connected->disconnected

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3302] Stream terminated

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-17 22:58:27 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted