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

Test duration: 5.140s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.354s
2019-12-03 19:43:08 |

2019-12-03 19:43:08 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-12-03 19:43:08 | ------------------------------------

2019-12-03 19:43:08 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-03 19:43:08 | command: <command><fields><item><var>jid</var><value>user_regularqm2gw00195@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-12-03 19:43:08 | target: http://localhost:8088

2019-12-03 19:43:08 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-12-03 19:43:08 | entity: <command><fields><item><var>jid</var><value>user_regularqm2gw00195@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-12-03 19:43:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:43:08 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-03 19:43: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;2|allow|jid|admin@localhost;4|deny|all) for user: user_regularqm2gw00195@localhost</value>
    </item>
  </fields>
</command>

2019-12-03 19:43:08 | contains: true

2019-12-03 19:43:08 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-03 19:43:08 | command: <command><fields><item><var>jid</var><value>user_regularqm2gw00195@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-12-03 19:43:08 | target: http://localhost:8088

2019-12-03 19:43:08 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-12-03 19:43:08 | entity: <command><fields><item><var>jid</var><value>user_regularqm2gw00195@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-12-03 19:43:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:43:08 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-03 19:43: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: 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_regularqm2gw00195@localhost</value>
    </item>
  </fields>
</command>

2019-12-03 19:43:08 | contains: true

testMessageFiltering 1.761s
2019-12-03 19:43:09 |

2019-12-03 19:43:09 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-12-03 19:43:09 | ------------------------------------

2019-12-03 19:43:09 | [Mutex] waiting for: [msg:epozu0202]

2019-12-03 19:43:09 | [Mutex] received everything.

2019-12-03 19:43:09 | [Mutex] waiting for: [msg:u9f72t0204]

2019-12-03 19:43:09 | [Mutex] received everything.

2019-12-03 19:43:09 | [Mutex] waiting for: [msg:e57joj0206]

2019-12-03 19:43:09 | [Mutex] received everything.

2019-12-03 19:43:09 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-03 19:43:09 | command: <command><fields><item><var>jid</var><value>user_regularffsyh10198@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-12-03 19:43:09 | target: http://localhost:8088

2019-12-03 19:43:09 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-12-03 19:43:09 | entity: <command><fields><item><var>jid</var><value>user_regularffsyh10198@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-12-03 19:43:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:43:09 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-03 19:43: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: null (domains list: ) to a new value: CUSTOM (domains list: 1|allow|self;4|deny|all) for user: user_regularffsyh10198@localhost</value>
    </item>
  </fields>
</command>

2019-12-03 19:43:09 | contains: true

2019-12-03 19:43:10 | [Mutex] waiting for: [msg:n86h6a0208]

2019-12-03 19:43:10 | [Mutex] received everything.

2019-12-03 19:43:10 | [Mutex] waiting for: [4r1gim0209:forbidden]

2019-12-03 19:43:10 | [Mutex] received everything.

2019-12-03 19:43:10 | [Mutex] isItemNotified: 4r1gim0209:forbidden :: true

2019-12-03 19:43:10 | [Mutex] waiting for: [uxa3k60211:forbidden]

2019-12-03 19:43:10 | [Mutex] received everything.

2019-12-03 19:43:10 | [Mutex] isItemNotified: uxa3k60211:forbidden :: true

2019-12-03 19:43:10 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-12-03 19:43:10 | command: <command><fields><item><var>jid</var><value>user_regularffsyh10198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist8c0rii0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-12-03 19:43:10 | target: http://localhost:8088

2019-12-03 19:43:10 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-12-03 19:43:10 | entity: <command><fields><item><var>jid</var><value>user_regularffsyh10198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist8c0rii0199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-12-03 19:43:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:43:10 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-12-03 19:43:10 | 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_whitelist8c0rii0199@localhost;4|deny|all) for user: user_regularffsyh10198@localhost</value>
    </item>
  </fields>
</command>

2019-12-03 19:43:10 | contains: true

2019-12-03 19:43:11 | [Mutex] waiting for: [msg:kkamfj0214]

2019-12-03 19:43:11 | [Mutex] received everything.

2019-12-03 19:43:11 | [Mutex] waiting for: [msg:l9fdp60216]

2019-12-03 19:43:11 | [Mutex] received everything.

2019-12-03 19:43:11 | [Mutex] waiting for: [3d94130217:forbidden]

2019-12-03 19:43:11 | [Mutex] received everything.

2019-12-03 19:43:11 | [Mutex] isItemNotified: 3d94130217:forbidden :: true