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

Test duration: 5.628s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.262s
2020-04-30 00:23:16 |

2020-04-30 00:23:16 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-04-30 00:23:16 | ------------------------------------

2020-04-30 00:23:16 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-04-30 00:23:16 | command: <command><fields><item><var>jid</var><value>user_regularjjm84y0216@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-04-30 00:23:16 | target: http://localhost:8088

2020-04-30 00:23:16 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

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

2020-04-30 00:23:16 | 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_regularjjm84y0216@localhost</value>
    </item>
  </fields>
</command>

2020-04-30 00:23:16 | contains: true

2020-04-30 00:23:16 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-04-30 00:23:16 | command: <command><fields><item><var>jid</var><value>user_regularjjm84y0216@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-04-30 00:23:16 | target: http://localhost:8088

2020-04-30 00:23:16 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

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

2020-04-30 00:23:16 | 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_regularjjm84y0216@localhost</value>
    </item>
  </fields>
</command>

2020-04-30 00:23:16 | contains: true

testMessageFiltering 1.683s
2020-04-30 00:23:18 |

2020-04-30 00:23:18 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-04-30 00:23:18 | ------------------------------------

2020-04-30 00:23:18 | [Mutex] waiting for: [msg:m655oh0223]

2020-04-30 00:23:18 | [Mutex] received everything.

2020-04-30 00:23:18 | [Mutex] waiting for: [msg:xnrvub0225]

2020-04-30 00:23:18 | [Mutex] received everything.

2020-04-30 00:23:18 | [Mutex] waiting for: [msg:35d0ga0227]

2020-04-30 00:23:18 | [Mutex] received everything.

2020-04-30 00:23:18 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-04-30 00:23:18 | command: <command><fields><item><var>jid</var><value>user_regular8xmpcz0219@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-04-30 00:23:18 | target: http://localhost:8088

2020-04-30 00:23:18 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

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

2020-04-30 00:23:18 | 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_regular8xmpcz0219@localhost</value>
    </item>
  </fields>
</command>

2020-04-30 00:23:18 | contains: true

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=517 thread=1] Connector  state changed: connected->disconnecting

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=517 thread=1] Terminating XMPP Stream

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-04-30 00:23:18 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-04-30 00:23:18 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

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

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Connector  state changed: null->connecting

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

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Preparing connection to [localhost:5222]

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Connector  state changed: connecting->connected

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Whitespace ping period is setted to nullms

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3291] Proceeding TLS

2020-04-30 00:23:18 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3291] Start handshake

2020-04-30 00:23:18 | [Mutex] waiting for: [msg:l4r8pk0229]

2020-04-30 00:23:18 | [Mutex] received everything.

2020-04-30 00:23:18 | [Mutex] waiting for: [dwg25c0230:forbidden]

2020-04-30 00:23:18 | [Mutex] received everything.

2020-04-30 00:23:18 | [Mutex] isItemNotified: dwg25c0230:forbidden :: true

2020-04-30 00:23:18 | [Mutex] waiting for: [l89800232:forbidden]

2020-04-30 00:23:19 | [Mutex] received everything.

2020-04-30 00:23:19 | [Mutex] isItemNotified: l89800232:forbidden :: true

2020-04-30 00:23:19 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-04-30 00:23:19 | command: <command><fields><item><var>jid</var><value>user_regular8xmpcz0219@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistz1oh010220@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-04-30 00:23:19 | target: http://localhost:8088

2020-04-30 00:23:19 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-04-30 00:23:19 | entity: <command><fields><item><var>jid</var><value>user_regular8xmpcz0219@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistz1oh010220@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-04-30 00:23:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 30 Apr 2020 07:23:19 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-04-30 00:23:19 | 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_whitelistz1oh010220@localhost;4|deny|all) for user: user_regular8xmpcz0219@localhost</value>
    </item>
  </fields>
</command>

2020-04-30 00:23:19 | contains: true

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Connector  state changed: connected->disconnecting

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=1] Terminating XMPP Stream

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3291] Connector  state changed: disconnecting->disconnected

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3291] Stream terminated

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-04-30 00:23:19 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-04-30 00:23:19 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

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

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=1] Connector  state changed: null->connecting

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

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=1] Preparing connection to [localhost:5222]

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=1] Connector  state changed: connecting->connected

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=1] Whitespace ping period is setted to nullms

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=3297] Proceeding TLS

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=3297] Start handshake

2020-04-30 00:23:19 | [Mutex] waiting for: [msg:9gqf2b0235]

2020-04-30 00:23:19 | [Mutex] received everything.

2020-04-30 00:23:19 | [Mutex] waiting for: [msg:8frd4q0237]

2020-04-30 00:23:19 | [Mutex] received everything.

2020-04-30 00:23:19 | [Mutex] waiting for: [jpnz8s0238:forbidden]

2020-04-30 00:23:19 | [Mutex] received everything.

2020-04-30 00:23:19 | [Mutex] isItemNotified: jpnz8s0238:forbidden :: true

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=3297] Connector  state changed: connected->disconnected

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=523 thread=3297] Stream terminated

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-04-30 00:23:19 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted