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

Test duration: 2.903s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.176s
2019-03-02 14:16:05 |

2019-03-02 14:16:05 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-03-02 14:16:05 | ------------------------------------

2019-03-02 14:16:05 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-03-02 14:16:05 | command: <command><fields><item><var>jid</var><value>user_regularihczdg0149@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>

2019-03-02 14:16:05 | target: http://localhost:8088

2019-03-02 14:16:05 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-03-02 14:16:05 | entity: <command><fields><item><var>jid</var><value>user_regularihczdg0149@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>

2019-03-02 14:16:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 02 Mar 2019 17:16:05 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-03-02 14:16:05 | 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_regularihczdg0149@localhost</value>
    </item>
  </fields>
</command>

2019-03-02 14:16:05 | contains: true

2019-03-02 14:16:05 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-03-02 14:16:05 | command: <command><fields><item><var>jid</var><value>user_regularihczdg0149@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>

2019-03-02 14:16:05 | target: http://localhost:8088

2019-03-02 14:16:05 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-03-02 14:16:05 | entity: <command><fields><item><var>jid</var><value>user_regularihczdg0149@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>

2019-03-02 14:16:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 02 Mar 2019 17:16:05 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-03-02 14:16:05 | 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_regularihczdg0149@localhost</value>
    </item>
  </fields>
</command>

2019-03-02 14:16:05 | contains: true

testMessageFiltering 1.386s
2019-03-02 14:16:06 |

2019-03-02 14:16:06 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-03-02 14:16:06 | ------------------------------------

2019-03-02 14:16:06 | [Mutex] waiting for: [msg:may6i70156]

2019-03-02 14:16:06 | [Mutex] received everything.

2019-03-02 14:16:06 | [Mutex] waiting for: [msg:7cd3pg0158]

2019-03-02 14:16:06 | [Mutex] received everything.

2019-03-02 14:16:06 | [Mutex] waiting for: [msg:nkr24s0160]

2019-03-02 14:16:06 | [Mutex] received everything.

2019-03-02 14:16:06 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-03-02 14:16:06 | command: <command><fields><item><var>jid</var><value>user_regularaaw1xm0152@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>

2019-03-02 14:16:06 | target: http://localhost:8088

2019-03-02 14:16:06 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-03-02 14:16:06 | entity: <command><fields><item><var>jid</var><value>user_regularaaw1xm0152@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>

2019-03-02 14:16:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 02 Mar 2019 17:16:06 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-03-02 14:16:06 | 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_regularaaw1xm0152@localhost</value>
    </item>
  </fields>
</command>

2019-03-02 14:16:06 | contains: true

2019-03-02 14:16:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=1597736125) state changed: connected->disconnecting

2019-03-02 14:16:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.terminateStream: Terminating XMPP Stream

2019-03-02 14:16:06 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-03-02 14:16:06 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties!

2019-03-02 14:16:07 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties!

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Start connector (oid=254784037).

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=254784037) state changed: null->connecting

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: DNS entry stored in session object: localhost:5222

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Preparing connection to [localhost:5222]

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.createSocket: Opening connection to localhost/127.0.0.1:5222

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=254784037) state changed: connecting->connected

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Whitespace ping period is setted to nullms

2019-03-02 14:16:07 | [Mutex] waiting for: [msg:uvp5iw0162]

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] waiting for: [7dih3t0163:forbidden]

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] isItemNotified: 7dih3t0163:forbidden :: true

2019-03-02 14:16:07 | [Mutex] waiting for: [hp8beg0165:forbidden]

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] isItemNotified: hp8beg0165:forbidden :: true

2019-03-02 14:16:07 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-03-02 14:16:07 | command: <command><fields><item><var>jid</var><value>user_regularaaw1xm0152@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistvhswxd0153@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-03-02 14:16:07 | target: http://localhost:8088

2019-03-02 14:16:07 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-03-02 14:16:07 | entity: <command><fields><item><var>jid</var><value>user_regularaaw1xm0152@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistvhswxd0153@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-03-02 14:16:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 02 Mar 2019 17:16:07 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-03-02 14:16:07 | 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_whitelistvhswxd0153@localhost;4|deny|all) for user: user_regularaaw1xm0152@localhost</value>
    </item>
  </fields>
</command>

2019-03-02 14:16:07 | contains: true

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=254784037) state changed: connected->disconnecting

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.terminateStream: Terminating XMPP Stream

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=254784037) state changed: disconnecting->disconnected

2019-03-02 14:16:07 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties!

2019-03-02 14:16:07 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties!

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Start connector (oid=411272987).

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=411272987) state changed: null->connecting

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: DNS entry stored in session object: localhost:5222

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Preparing connection to [localhost:5222]

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.createSocket: Opening connection to localhost/127.0.0.1:5222

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=411272987) state changed: connecting->connected

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start: Whitespace ping period is setted to nullms

2019-03-02 14:16:07 | [Mutex] waiting for: [msg:3xwjvr0168]

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] waiting for: [msg:p797kw0170]

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] received everything.

2019-03-02 14:16:07 | [Mutex] isItemNotified: 1k7jtw0171:forbidden :: true

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.setStage: Connector (oid=411272987) state changed: connected->disconnected

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.onStreamTerminate: Stream terminated

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-03-02 14:16:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted