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

Test duration: 4.797s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.292s
2020-01-02 19:21:50 |

2020-01-02 19:21:50 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-01-02 19:21:50 | ------------------------------------

2020-01-02 19:21:50 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-01-02 19:21:50 | command: <command><fields><item><var>jid</var><value>user_regularh1te5u0195@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-01-02 19:21:50 | target: http://localhost:8088

2020-01-02 19:21:50 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-01-02 19:21:50 | entity: <command><fields><item><var>jid</var><value>user_regularh1te5u0195@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-01-02 19:21:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:51 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-01-02 19:21: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_regularh1te5u0195@localhost</value>
    </item>
  </fields>
</command>

2020-01-02 19:21:51 | contains: true

2020-01-02 19:21:51 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-01-02 19:21:51 | command: <command><fields><item><var>jid</var><value>user_regularh1te5u0195@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-01-02 19:21:51 | target: http://localhost:8088

2020-01-02 19:21:51 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-01-02 19:21:51 | entity: <command><fields><item><var>jid</var><value>user_regularh1te5u0195@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-01-02 19:21:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:51 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-01-02 19:21: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_regularh1te5u0195@localhost</value>
    </item>
  </fields>
</command>

2020-01-02 19:21:51 | contains: true

testMessageFiltering 1.640s
2020-01-02 19:21:52 |

2020-01-02 19:21:52 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-01-02 19:21:52 | ------------------------------------

2020-01-02 19:21:52 | [Mutex] waiting for: [msg:5rn7ee0202]

2020-01-02 19:21:52 | [Mutex] received everything.

2020-01-02 19:21:52 | [Mutex] waiting for: [msg:g56qg00204]

2020-01-02 19:21:52 | [Mutex] received everything.

2020-01-02 19:21:52 | [Mutex] waiting for: [msg:wenzy60206]

2020-01-02 19:21:52 | [Mutex] received everything.

2020-01-02 19:21:52 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-01-02 19:21:52 | command: <command><fields><item><var>jid</var><value>user_regularyokru10198@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-01-02 19:21:52 | target: http://localhost:8088

2020-01-02 19:21:52 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-01-02 19:21:52 | entity: <command><fields><item><var>jid</var><value>user_regularyokru10198@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-01-02 19:21:52 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:52 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-01-02 19:21: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;4|deny|all) for user: user_regularyokru10198@localhost</value>
    </item>
  </fields>
</command>

2020-01-02 19:21:52 | contains: true

2020-01-02 19:21:53 | [Mutex] waiting for: [msg:rz5tfi0208]

2020-01-02 19:21:53 | [Mutex] received everything.

2020-01-02 19:21:53 | [Mutex] waiting for: [8io2cd0209:forbidden]

2020-01-02 19:21:53 | [Mutex] received everything.

2020-01-02 19:21:53 | [Mutex] isItemNotified: 8io2cd0209:forbidden :: true

2020-01-02 19:21:53 | [Mutex] waiting for: [5zw1qs0211:forbidden]

2020-01-02 19:21:53 | [Mutex] received everything.

2020-01-02 19:21:53 | [Mutex] isItemNotified: 5zw1qs0211:forbidden :: true

2020-01-02 19:21:53 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-01-02 19:21:53 | command: <command><fields><item><var>jid</var><value>user_regularyokru10198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistybw2ug0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-01-02 19:21:53 | target: http://localhost:8088

2020-01-02 19:21:53 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-01-02 19:21:53 | entity: <command><fields><item><var>jid</var><value>user_regularyokru10198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistybw2ug0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-01-02 19:21:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:53 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-01-02 19:21: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: CUSTOM (domains list: 1|allow|self;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|self;2|allow|jid|user_regular1_whitelistybw2ug0199@localhost;4|deny|all) for user: user_regularyokru10198@localhost</value>
    </item>
  </fields>
</command>

2020-01-02 19:21:53 | contains: true

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:2ty7660214]

2020-01-02 19:21:54 | [Mutex] received everything.

2020-01-02 19:21:54 | [Mutex] waiting for: [msg:25hdo00216]

2020-01-02 19:21:54 | [Mutex] received everything.

2020-01-02 19:21:54 | [Mutex] waiting for: [tx9aqn0217:forbidden]

2020-01-02 19:21:54 | [Mutex] received everything.

2020-01-02 19:21:54 | [Mutex] isItemNotified: tx9aqn0217:forbidden :: true