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

Test duration: 5.774s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.403s
2020-05-25 23:06:06 |

2020-05-25 23:06:06 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-25 23:06:06 | ------------------------------------

2020-05-25 23:06:06 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-25 23:06:06 | command: <command><fields><item><var>jid</var><value>user_regular7bqh3s0217@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-25 23:06:06 | target: http://localhost:8088

2020-05-25 23:06:06 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-05-25 23:06:06 | entity: <command><fields><item><var>jid</var><value>user_regular7bqh3s0217@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-25 23:06:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:06:06 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-25 23:06:07 | 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_regular7bqh3s0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-25 23:06:07 | contains: true

2020-05-25 23:06:07 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-25 23:06:07 | command: <command><fields><item><var>jid</var><value>user_regular7bqh3s0217@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-25 23:06:07 | target: http://localhost:8088

2020-05-25 23:06:07 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-05-25 23:06:07 | entity: <command><fields><item><var>jid</var><value>user_regular7bqh3s0217@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-25 23:06:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:06:07 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-25 23:06:07 | 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_regular7bqh3s0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-25 23:06:07 | contains: true

testMessageFiltering 1.741s
2020-05-25 23:06:08 |

2020-05-25 23:06:08 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-25 23:06:08 | ------------------------------------

2020-05-25 23:06:08 | [Mutex] waiting for: [msg:ugglm00224]

2020-05-25 23:06:08 | [Mutex] received everything.

2020-05-25 23:06:08 | [Mutex] waiting for: [msg:bsxmbj0226]

2020-05-25 23:06:08 | [Mutex] received everything.

2020-05-25 23:06:08 | [Mutex] waiting for: [msg:9zvohe0228]

2020-05-25 23:06:08 | [Mutex] received everything.

2020-05-25 23:06:08 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-25 23:06:08 | command: <command><fields><item><var>jid</var><value>user_regularmt0efs0220@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-25 23:06:08 | target: http://localhost:8088

2020-05-25 23:06:08 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-05-25 23:06:08 | entity: <command><fields><item><var>jid</var><value>user_regularmt0efs0220@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-25 23:06:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:06:08 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-25 23:06:08 | 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_regularmt0efs0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-25 23:06:08 | contains: true

2020-05-25 23:06:09 | [Mutex] waiting for: [msg:fdmed40230]

2020-05-25 23:06:09 | [Mutex] received everything.

2020-05-25 23:06:09 | [Mutex] waiting for: [ss35pi0231:forbidden]

2020-05-25 23:06:09 | [Mutex] received everything.

2020-05-25 23:06:09 | [Mutex] isItemNotified: ss35pi0231:forbidden :: true

2020-05-25 23:06:09 | [Mutex] waiting for: [xx1q090233:forbidden]

2020-05-25 23:06:09 | [Mutex] received everything.

2020-05-25 23:06:09 | [Mutex] isItemNotified: xx1q090233:forbidden :: true

2020-05-25 23:06:09 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-25 23:06:09 | command: <command><fields><item><var>jid</var><value>user_regularmt0efs0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistsmomt20221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-25 23:06:09 | target: http://localhost:8088

2020-05-25 23:06:09 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-05-25 23:06:09 | entity: <command><fields><item><var>jid</var><value>user_regularmt0efs0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistsmomt20221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-25 23:06:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 May 2020 06:06:09 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-25 23:06:09 | 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_whitelistsmomt20221@localhost;4|deny|all) for user: user_regularmt0efs0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-25 23:06:09 | contains: true

2020-05-25 23:06:10 | [Mutex] waiting for: [msg:dllxox0236]

2020-05-25 23:06:10 | [Mutex] received everything.

2020-05-25 23:06:10 | [Mutex] waiting for: [msg:at7yii0238]

2020-05-25 23:06:10 | [Mutex] received everything.

2020-05-25 23:06:10 | [Mutex] waiting for: [ebqfeo0239:forbidden]

2020-05-25 23:06:10 | [Mutex] received everything.

2020-05-25 23:06:10 | [Mutex] isItemNotified: ebqfeo0239:forbidden :: true