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

Test duration: 5.109s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.388s
2019-11-20 21:05:10 |

2019-11-20 21:05:10 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-20 21:05:10 | ------------------------------------

2019-11-20 21:05:10 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-20 21:05:10 | command: <command><fields><item><var>jid</var><value>user_regularb2l0w20180@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-11-20 21:05:10 | target: http://localhost:8088

2019-11-20 21:05:10 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-11-20 21:05:10 | entity: <command><fields><item><var>jid</var><value>user_regularb2l0w20180@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-11-20 21:05:11 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 05:05:11 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-20 21:05:11 | 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_regularb2l0w20180@localhost</value>
    </item>
  </fields>
</command>

2019-11-20 21:05:11 | contains: true

2019-11-20 21:05:11 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-20 21:05:11 | command: <command><fields><item><var>jid</var><value>user_regularb2l0w20180@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-11-20 21:05:11 | target: http://localhost:8088

2019-11-20 21:05:11 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-11-20 21:05:11 | entity: <command><fields><item><var>jid</var><value>user_regularb2l0w20180@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-11-20 21:05:11 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 05:05:11 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-20 21:05:11 | 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_regularb2l0w20180@localhost</value>
    </item>
  </fields>
</command>

2019-11-20 21:05:11 | contains: true

testMessageFiltering 1.701s
2019-11-20 21:05:12 |

2019-11-20 21:05:12 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-20 21:05:12 | ------------------------------------

2019-11-20 21:05:12 | [Mutex] waiting for: [msg:fgdl150187]

2019-11-20 21:05:12 | [Mutex] received everything.

2019-11-20 21:05:12 | [Mutex] waiting for: [msg:8dpzc80189]

2019-11-20 21:05:12 | [Mutex] received everything.

2019-11-20 21:05:12 | [Mutex] waiting for: [msg:o5lrfy0191]

2019-11-20 21:05:12 | [Mutex] received everything.

2019-11-20 21:05:12 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-20 21:05:12 | command: <command><fields><item><var>jid</var><value>user_regulargq5l9v0183@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-11-20 21:05:12 | target: http://localhost:8088

2019-11-20 21:05:12 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-11-20 21:05:12 | entity: <command><fields><item><var>jid</var><value>user_regulargq5l9v0183@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-11-20 21:05:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 05:05:12 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-20 21:05:12 | 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_regulargq5l9v0183@localhost</value>
    </item>
  </fields>
</command>

2019-11-20 21:05:12 | contains: true

2019-11-20 21:05:12 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Connector  state changed: connected->disconnecting

2019-11-20 21:05:12 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Terminating XMPP Stream

2019-11-20 21:05:12 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-11-20 21:05:12 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2019-11-20 21:05:12 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2019-11-20 21:05:13 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Connector  state changed: null->connecting

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] DNS entry stored in session object: localhost:5222

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Preparing connection to [localhost:5222]

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Connector  state changed: connecting->connected

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Whitespace ping period is setted to nullms

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=2928] Proceeding TLS

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=2928] Start handshake

2019-11-20 21:05:13 | [Mutex] waiting for: [msg:8oxk90193]

2019-11-20 21:05:13 | [Mutex] received everything.

2019-11-20 21:05:13 | [Mutex] received everything.

2019-11-20 21:05:13 | [Mutex] isItemNotified: uslx9g0194:forbidden :: true

2019-11-20 21:05:13 | [Mutex] waiting for: [vgyjvh0196:forbidden]

2019-11-20 21:05:13 | [Mutex] received everything.

2019-11-20 21:05:13 | [Mutex] isItemNotified: vgyjvh0196:forbidden :: true

2019-11-20 21:05:13 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-20 21:05:13 | command: <command><fields><item><var>jid</var><value>user_regulargq5l9v0183@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistku5a8m0184@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-20 21:05:13 | target: http://localhost:8088

2019-11-20 21:05:13 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-11-20 21:05:13 | entity: <command><fields><item><var>jid</var><value>user_regulargq5l9v0183@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistku5a8m0184@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-20 21:05:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 05:05:13 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-20 21:05:13 | 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_whitelistku5a8m0184@localhost;4|deny|all) for user: user_regulargq5l9v0183@localhost</value>
    </item>
  </fields>
</command>

2019-11-20 21:05:13 | contains: true

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Connector  state changed: connected->disconnecting

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=1] Terminating XMPP Stream

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=2928] Connector  state changed: disconnecting->disconnected

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=462 thread=2928] Stream terminated

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-11-20 21:05:13 | tigase.jaxmpp.core.client.xmpp.modules.streammng.StreamManagementModule.reset: Reset.

2019-11-20 21:05:13 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [session]

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-11-20 21:05:13 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-11-20 21:05:14 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=true

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] Connector  state changed: null->connecting

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] DNS entry stored in session object: localhost:5222

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] Preparing connection to [localhost:5222]

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] Connector  state changed: connecting->connected

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=1] Whitespace ping period is setted to nullms

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=2934] Proceeding TLS

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=2934] Start handshake

2019-11-20 21:05:14 | [Mutex] waiting for: [msg:67ggv50199]

2019-11-20 21:05:14 | [Mutex] received everything.

2019-11-20 21:05:14 | [Mutex] waiting for: [msg:dp3v6u0201]

2019-11-20 21:05:14 | [Mutex] received everything.

2019-11-20 21:05:14 | [Mutex] waiting for: [iqlasj0202:forbidden]

2019-11-20 21:05:14 | [Mutex] received everything.

2019-11-20 21:05:14 | [Mutex] isItemNotified: iqlasj0202:forbidden :: true

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=2934] Connector  state changed: connected->disconnected

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=463 thread=2934] Stream terminated

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted

2019-11-20 21:05:14 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted