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

Test duration: 5.780s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.281s
2020-06-15 23:34:52 |

2020-06-15 23:34:52 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-15 23:34:52 | ------------------------------------

2020-06-15 23:34:52 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-15 23:34:52 | command: <command><fields><item><var>jid</var><value>user_regularkhhfsm0217@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-15 23:34:52 | target: http://localhost:8088

2020-06-15 23:34:52 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

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

2020-06-15 23:34:52 | 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_regularkhhfsm0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-15 23:34:52 | contains: true

2020-06-15 23:34:52 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-15 23:34:52 | command: <command><fields><item><var>jid</var><value>user_regularkhhfsm0217@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-15 23:34:52 | target: http://localhost:8088

2020-06-15 23:34:52 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

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

2020-06-15 23:34:52 | 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_regularkhhfsm0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-15 23:34:52 | contains: true

testMessageFiltering 1.677s
2020-06-15 23:34:54 |

2020-06-15 23:34:54 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-15 23:34:54 | ------------------------------------

2020-06-15 23:34:54 | [Mutex] waiting for: [msg:pvnlb60224]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | [Mutex] waiting for: [msg:uzlxou0226]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | [Mutex] waiting for: [msg:hfxw0228]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-15 23:34:54 | command: <command><fields><item><var>jid</var><value>user_regularl3gf720220@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-15 23:34:54 | target: http://localhost:8088

2020-06-15 23:34:54 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

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

2020-06-15 23:34: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: null (domains list: ) to a new value: CUSTOM (domains list: 1|allow|self;4|deny|all) for user: user_regularl3gf720220@localhost</value>
    </item>
  </fields>
</command>

2020-06-15 23:34:54 | contains: true

2020-06-15 23:34:54 | [Mutex] waiting for: [msg:5fwfy50230]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | [Mutex] waiting for: [90jyxo0231:forbidden]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | [Mutex] isItemNotified: 90jyxo0231:forbidden :: true

2020-06-15 23:34:54 | [Mutex] waiting for: [c0jyc20233:forbidden]

2020-06-15 23:34:54 | [Mutex] received everything.

2020-06-15 23:34:54 | [Mutex] isItemNotified: c0jyc20233:forbidden :: true

2020-06-15 23:34:54 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-15 23:34:54 | command: <command><fields><item><var>jid</var><value>user_regularl3gf720220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistomw9y0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-15 23:34:54 | target: http://localhost:8088

2020-06-15 23:34:54 | entity: [Content-Type: application/xml,Content-Length: 328,Chunked: false]

2020-06-15 23:34:54 | entity: <command><fields><item><var>jid</var><value>user_regularl3gf720220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistomw9y0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

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

2020-06-15 23:34:55 | 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_whitelistomw9y0221@localhost;4|deny|all) for user: user_regularl3gf720220@localhost</value>
    </item>
  </fields>
</command>

2020-06-15 23:34:55 | contains: true

2020-06-15 23:34:55 | [Mutex] waiting for: [msg:ck95f70236]

2020-06-15 23:34:55 | [Mutex] waiting for: [msg:ck95f70236]

2020-06-15 23:34:55 | [Mutex] waiting for: [msg:ck95f70236]

2020-06-15 23:34:55 | [Mutex] received everything.

2020-06-15 23:34:55 | [Mutex] waiting for: [msg:cxngga0238]

2020-06-15 23:34:55 | [Mutex] received everything.

2020-06-15 23:34:55 | [Mutex] waiting for: [p041p00239:forbidden]

2020-06-15 23:34:55 | [Mutex] received everything.

2020-06-15 23:34:55 | [Mutex] isItemNotified: p041p00239:forbidden :: true