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

Test duration: 5.360s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.400s
2019-11-27 20:35:28 |

2019-11-27 20:35:28 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-27 20:35:28 | ------------------------------------

2019-11-27 20:35:28 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 20:35:28 | command: <command><fields><item><var>jid</var><value>user_regularp2yxlu0192@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-27 20:35:28 | target: http://localhost:8088

2019-11-27 20:35:28 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

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

2019-11-27 20:35:29 | 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_regularp2yxlu0192@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 20:35:29 | contains: true

2019-11-27 20:35:29 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 20:35:29 | command: <command><fields><item><var>jid</var><value>user_regularp2yxlu0192@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-27 20:35:29 | target: http://localhost:8088

2019-11-27 20:35:29 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

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

2019-11-27 20:35:29 | 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_regularp2yxlu0192@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 20:35:29 | contains: true

testMessageFiltering 1.757s
2019-11-27 20:35:30 |

2019-11-27 20:35:30 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-27 20:35:30 | ------------------------------------

2019-11-27 20:35:30 | [Mutex] waiting for: [msg:4fysp10199]

2019-11-27 20:35:30 | [Mutex] received everything.

2019-11-27 20:35:30 | [Mutex] waiting for: [msg:txjsb10201]

2019-11-27 20:35:30 | [Mutex] received everything.

2019-11-27 20:35:30 | [Mutex] waiting for: [msg:h1gjtn0203]

2019-11-27 20:35:30 | [Mutex] received everything.

2019-11-27 20:35:30 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 20:35:30 | command: <command><fields><item><var>jid</var><value>user_regularsng5wr0195@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-27 20:35:30 | target: http://localhost:8088

2019-11-27 20:35:30 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

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

2019-11-27 20:35:30 | 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_regularsng5wr0195@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 20:35:30 | contains: true

2019-11-27 20:35:31 | [Mutex] waiting for: [msg:xd7h8k0205]

2019-11-27 20:35:31 | [Mutex] received everything.

2019-11-27 20:35:31 | [Mutex] waiting for: [tq454c0206:forbidden]

2019-11-27 20:35:31 | [Mutex] received everything.

2019-11-27 20:35:31 | [Mutex] isItemNotified: tq454c0206:forbidden :: true

2019-11-27 20:35:31 | [Mutex] waiting for: [nus2sy0208:forbidden]

2019-11-27 20:35:31 | [Mutex] received everything.

2019-11-27 20:35:31 | [Mutex] isItemNotified: nus2sy0208:forbidden :: true

2019-11-27 20:35:31 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-27 20:35:31 | command: <command><fields><item><var>jid</var><value>user_regularsng5wr0195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistwv3cuo0196@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-27 20:35:31 | target: http://localhost:8088

2019-11-27 20:35:31 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-11-27 20:35:31 | entity: <command><fields><item><var>jid</var><value>user_regularsng5wr0195@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistwv3cuo0196@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

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

2019-11-27 20:35:31 | 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_whitelistwv3cuo0196@localhost;4|deny|all) for user: user_regularsng5wr0195@localhost</value>
    </item>
  </fields>
</command>

2019-11-27 20:35:31 | contains: true

2019-11-27 20:35:32 | [Mutex] waiting for: [msg:7zkbiu0211]

2019-11-27 20:35:32 | [Mutex] received everything.

2019-11-27 20:35:32 | [Mutex] waiting for: [msg:6zauxn0213]

2019-11-27 20:35:32 | [Mutex] received everything.

2019-11-27 20:35:32 | [Mutex] waiting for: [4wi2120214:forbidden]

2019-11-27 20:35:32 | [Mutex] received everything.

2019-11-27 20:35:32 | [Mutex] isItemNotified: 4wi2120214:forbidden :: true