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

Test duration: 5.750s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.289s
2020-05-27 00:58:51 |

2020-05-27 00:58:51 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-27 00:58:51 | ------------------------------------

2020-05-27 00:58:51 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 00:58:51 | command: <command><fields><item><var>jid</var><value>user_regular46n4ev0213@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-05-27 00:58:51 | target: http://localhost:8088

2020-05-27 00:58:51 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-05-27 00:58:51 | entity: <command><fields><item><var>jid</var><value>user_regular46n4ev0213@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-05-27 00:58:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 07:58:51 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 00:58:51 | 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_regular46n4ev0213@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 00:58:51 | contains: true

2020-05-27 00:58:51 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 00:58:51 | command: <command><fields><item><var>jid</var><value>user_regular46n4ev0213@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-05-27 00:58:51 | target: http://localhost:8088

2020-05-27 00:58:51 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-05-27 00:58:51 | entity: <command><fields><item><var>jid</var><value>user_regular46n4ev0213@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-05-27 00:58:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 07:58:51 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 00:58:51 | 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_regular46n4ev0213@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 00:58:51 | contains: true

testMessageFiltering 1.643s
2020-05-27 00:58:53 |

2020-05-27 00:58:53 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-27 00:58:53 | ------------------------------------

2020-05-27 00:58:53 | [Mutex] waiting for: [msg:k50gwt0220]

2020-05-27 00:58:53 | [Mutex] received everything.

2020-05-27 00:58:53 | [Mutex] waiting for: [msg:udgzf40222]

2020-05-27 00:58:53 | [Mutex] received everything.

2020-05-27 00:58:53 | [Mutex] waiting for: [msg:4pppwv0224]

2020-05-27 00:58:53 | [Mutex] received everything.

2020-05-27 00:58:53 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 00:58:53 | command: <command><fields><item><var>jid</var><value>user_regulariertpc0216@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-05-27 00:58:53 | target: http://localhost:8088

2020-05-27 00:58:53 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-05-27 00:58:53 | entity: <command><fields><item><var>jid</var><value>user_regulariertpc0216@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-05-27 00:58:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 07:58:53 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 00:58:53 | 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_regulariertpc0216@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 00:58:53 | contains: true

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=516 thread=1] Connector  state changed: connected->disconnecting

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=516 thread=1] Terminating XMPP Stream

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-05-27 00:58:53 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-05-27 00:58:53 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-05-27 00:58:53 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: null->connecting

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] DNS entry stored in session object: localhost:5222

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Preparing connection to [localhost:5222]

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: connecting->connected

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Whitespace ping period is setted to nullms

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3297] Proceeding TLS

2020-05-27 00:58:53 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3297] Start handshake

2020-05-27 00:58:54 | [Mutex] waiting for: [msg:iut6vz0226]

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] isItemNotified: 5r37lw0227:forbidden :: true

2020-05-27 00:58:54 | [Mutex] waiting for: [uf7oxi0229:forbidden]

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] isItemNotified: uf7oxi0229:forbidden :: true

2020-05-27 00:58:54 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-27 00:58:54 | command: <command><fields><item><var>jid</var><value>user_regulariertpc0216@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistj2e5pz0217@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-27 00:58:54 | target: http://localhost:8088

2020-05-27 00:58:54 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-05-27 00:58:54 | entity: <command><fields><item><var>jid</var><value>user_regulariertpc0216@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistj2e5pz0217@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-27 00:58:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 07:58:54 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-27 00:58:54 | 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_whitelistj2e5pz0217@localhost;4|deny|all) for user: user_regulariertpc0216@localhost</value>
    </item>
  </fields>
</command>

2020-05-27 00:58:54 | contains: true

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Connector  state changed: connected->disconnecting

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=1] Terminating XMPP Stream

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3297] Connector  state changed: disconnecting->disconnected

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=521 thread=3297] Stream terminated

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-05-27 00:58:54 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2020-05-27 00:58:54 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-05-27 00:58:54 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

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

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

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

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

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3303] Proceeding TLS

2020-05-27 00:58:54 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3303] Start handshake

2020-05-27 00:58:54 | [Mutex] waiting for: [msg:ui6rf00232]

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] waiting for: [msg:un0c3f0234]

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] waiting for: [ax6mim0235:forbidden]

2020-05-27 00:58:54 | [Mutex] received everything.

2020-05-27 00:58:54 | [Mutex] isItemNotified: ax6mim0235:forbidden :: true

2020-05-27 00:58:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3303] Connector  state changed: connected->disconnected

2020-05-27 00:58:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=522 thread=3303] Stream terminated

2020-05-27 00:58:55 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2020-05-27 00:58:55 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted