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

Test duration: 5.445s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.233s
2020-05-26 22:47:32 |

2020-05-26 22:47:32 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-26 22:47:32 | ------------------------------------

2020-05-26 22:47:32 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 22:47:32 | command: <command><fields><item><var>jid</var><value>user_regulareub59p0217@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-26 22:47:32 | target: http://localhost:8088

2020-05-26 22:47:32 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-05-26 22:47:32 | entity: <command><fields><item><var>jid</var><value>user_regulareub59p0217@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-26 22:47:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 05:47:32 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 22:47:32 | 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_regulareub59p0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 22:47:32 | contains: true

2020-05-26 22:47:32 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 22:47:32 | command: <command><fields><item><var>jid</var><value>user_regulareub59p0217@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-26 22:47:32 | target: http://localhost:8088

2020-05-26 22:47:32 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-05-26 22:47:32 | entity: <command><fields><item><var>jid</var><value>user_regulareub59p0217@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-26 22:47:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 05:47:32 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 22:47:32 | 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_regulareub59p0217@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 22:47:32 | contains: true

testMessageFiltering 1.798s
2020-05-26 22:47:34 |

2020-05-26 22:47:34 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-05-26 22:47:34 | ------------------------------------

2020-05-26 22:47:34 | [Mutex] waiting for: [msg:e8revs0224]

2020-05-26 22:47:34 | [Mutex] received everything.

2020-05-26 22:47:34 | [Mutex] waiting for: [msg:dwv2dl0226]

2020-05-26 22:47:34 | [Mutex] received everything.

2020-05-26 22:47:34 | [Mutex] waiting for: [msg:kifzzu0228]

2020-05-26 22:47:34 | [Mutex] received everything.

2020-05-26 22:47:34 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 22:47:34 | command: <command><fields><item><var>jid</var><value>user_regular5ryn0q0220@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-26 22:47:34 | target: http://localhost:8088

2020-05-26 22:47:34 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-05-26 22:47:34 | entity: <command><fields><item><var>jid</var><value>user_regular5ryn0q0220@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-26 22:47:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 05:47:34 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 22:47:34 | 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_regular5ryn0q0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 22:47:34 | contains: true

2020-05-26 22:47:35 | [Mutex] waiting for: [msg:7fqih40230]

2020-05-26 22:47:35 | [Mutex] received everything.

2020-05-26 22:47:35 | [Mutex] waiting for: [mxijyw0231:forbidden]

2020-05-26 22:47:35 | [Mutex] received everything.

2020-05-26 22:47:35 | [Mutex] isItemNotified: mxijyw0231:forbidden :: true

2020-05-26 22:47:35 | [Mutex] waiting for: [ap1qnq0233:forbidden]

2020-05-26 22:47:35 | [Mutex] received everything.

2020-05-26 22:47:35 | [Mutex] isItemNotified: ap1qnq0233:forbidden :: true

2020-05-26 22:47:35 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-05-26 22:47:35 | command: <command><fields><item><var>jid</var><value>user_regular5ryn0q0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistm0xaow0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-26 22:47:35 | target: http://localhost:8088

2020-05-26 22:47:35 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-05-26 22:47:35 | entity: <command><fields><item><var>jid</var><value>user_regular5ryn0q0220@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistm0xaow0221@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-05-26 22:47:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 05:47:35 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-05-26 22:47:35 | 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_whitelistm0xaow0221@localhost;4|deny|all) for user: user_regular5ryn0q0220@localhost</value>
    </item>
  </fields>
</command>

2020-05-26 22:47:35 | contains: true

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:frvop60236]

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:frvop60236]

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:frvop60236]

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:frvop60236]

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:frvop60236]

2020-05-26 22:47:36 | [Mutex] received everything.

2020-05-26 22:47:36 | [Mutex] waiting for: [msg:a4lurq0238]

2020-05-26 22:47:36 | [Mutex] received everything.

2020-05-26 22:47:36 | [Mutex] waiting for: [m7h67u0239:forbidden]

2020-05-26 22:47:36 | [Mutex] received everything.

2020-05-26 22:47:36 | [Mutex] isItemNotified: m7h67u0239:forbidden :: true