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

Test duration: 5.365s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.241s
2020-06-02 14:15:04 |

2020-06-02 14:15:04 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-02 14:15:04 | ------------------------------------

2020-06-02 14:15:04 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-02 14:15:04 | command: <command><fields><item><var>jid</var><value>user_regular2etwj70217@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-02 14:15:04 | target: http://localhost:8088

2020-06-02 14:15:04 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-06-02 14:15:04 | entity: <command><fields><item><var>jid</var><value>user_regular2etwj70217@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-02 14:15:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:15:04 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-02 14:15:04 | 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_regular2etwj70217@localhost</value>
    </item>
  </fields>
</command>

2020-06-02 14:15:04 | contains: true

2020-06-02 14:15:04 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-02 14:15:04 | command: <command><fields><item><var>jid</var><value>user_regular2etwj70217@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-02 14:15:04 | target: http://localhost:8088

2020-06-02 14:15:04 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-06-02 14:15:04 | entity: <command><fields><item><var>jid</var><value>user_regular2etwj70217@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-02 14:15:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:15:04 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-02 14:15:04 | 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_regular2etwj70217@localhost</value>
    </item>
  </fields>
</command>

2020-06-02 14:15:04 | contains: true

testMessageFiltering 1.654s
2020-06-02 14:15:06 |

2020-06-02 14:15:06 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-02 14:15:06 | ------------------------------------

2020-06-02 14:15:06 | [Mutex] waiting for: [msg:sr1fyc0224]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | [Mutex] waiting for: [msg:ae5fv40226]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | [Mutex] waiting for: [msg:b0sht80228]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-02 14:15:06 | command: <command><fields><item><var>jid</var><value>user_regular3jhqvs0220@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-02 14:15:06 | target: http://localhost:8088

2020-06-02 14:15:06 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-06-02 14:15:06 | entity: <command><fields><item><var>jid</var><value>user_regular3jhqvs0220@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-02 14:15:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:15:06 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-02 14:15: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_regular3jhqvs0220@localhost</value>
    </item>
  </fields>
</command>

2020-06-02 14:15:06 | contains: true

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=519 thread=1] Connector  state changed: connected->disconnecting

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=519 thread=1] Terminating XMPP Stream

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-02 14:15:06 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-06-02 14:15:06 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-06-02 14:15:06 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Connector  state changed: null->connecting

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] DNS entry stored in session object: localhost:5222

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Preparing connection to [localhost:5222]

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Connector  state changed: connecting->connected

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Whitespace ping period is setted to nullms

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=3314] Proceeding TLS

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=3314] Start handshake

2020-06-02 14:15:06 | [Mutex] waiting for: [msg:gt7avi0230]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | [Mutex] waiting for: [7gx9zq0231:forbidden]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | [Mutex] isItemNotified: 7gx9zq0231:forbidden :: true

2020-06-02 14:15:06 | [Mutex] waiting for: [kg7mda0233:forbidden]

2020-06-02 14:15:06 | [Mutex] received everything.

2020-06-02 14:15:06 | [Mutex] isItemNotified: kg7mda0233:forbidden :: true

2020-06-02 14:15:06 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-02 14:15:06 | command: <command><fields><item><var>jid</var><value>user_regular3jhqvs0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistieo1us0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-02 14:15:06 | target: http://localhost:8088

2020-06-02 14:15:06 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-06-02 14:15:06 | entity: <command><fields><item><var>jid</var><value>user_regular3jhqvs0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistieo1us0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-02 14:15:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 21:15:06 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-02 14:15: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: CUSTOM (domains list: 1|allow|self;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|self;2|allow|jid|user_regular1_whitelistieo1us0221@localhost;4|deny|all) for user: user_regular3jhqvs0220@localhost</value>
    </item>
  </fields>
</command>

2020-06-02 14:15:06 | contains: true

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Connector  state changed: connected->disconnecting

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=1] Terminating XMPP Stream

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=3314] Connector  state changed: disconnecting->disconnected

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=524 thread=3314] Stream terminated

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-02 14:15:06 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-06-02 14:15:06 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-02 14:15:06 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-02 14:15:07 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] Connector  state changed: null->connecting

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] DNS entry stored in session object: localhost:5222

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] Preparing connection to [localhost:5222]

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] Connector  state changed: connecting->connected

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=1] Whitespace ping period is setted to nullms

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=3320] Proceeding TLS

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=3320] Start handshake

2020-06-02 14:15:07 | [Mutex] waiting for: [msg:hy3h9f0236]

2020-06-02 14:15:07 | [Mutex] received everything.

2020-06-02 14:15:07 | [Mutex] waiting for: [msg:od8xvt0238]

2020-06-02 14:15:07 | [Mutex] received everything.

2020-06-02 14:15:07 | [Mutex] received everything.

2020-06-02 14:15:07 | [Mutex] isItemNotified: kuyjmy0239:forbidden :: true

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=3320] Connector  state changed: connected->disconnected

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=525 thread=3320] Stream terminated

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-06-02 14:15:07 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted