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

Test duration: 5.080s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.317s
2019-11-22 18:45:02 |

2019-11-22 18:45:02 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-22 18:45:02 | ------------------------------------

2019-11-22 18:45:02 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-22 18:45:02 | command: <command><fields><item><var>jid</var><value>user_regularqjm5410195@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-11-22 18:45:02 | target: http://localhost:8088

2019-11-22 18:45:02 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2019-11-22 18:45:02 | entity: <command><fields><item><var>jid</var><value>user_regularqjm5410195@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-11-22 18:45:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:45:03 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-22 18:45:03 | 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_regularqjm5410195@localhost</value>
    </item>
  </fields>
</command>

2019-11-22 18:45:03 | contains: true

2019-11-22 18:45:03 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-22 18:45:03 | command: <command><fields><item><var>jid</var><value>user_regularqjm5410195@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-11-22 18:45:03 | target: http://localhost:8088

2019-11-22 18:45:03 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2019-11-22 18:45:03 | entity: <command><fields><item><var>jid</var><value>user_regularqjm5410195@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-11-22 18:45:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:45:03 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-22 18:45:03 | 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_regularqjm5410195@localhost</value>
    </item>
  </fields>
</command>

2019-11-22 18:45:03 | contains: true

testMessageFiltering 1.693s
2019-11-22 18:45:04 |

2019-11-22 18:45:04 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2019-11-22 18:45:04 | ------------------------------------

2019-11-22 18:45:04 | [Mutex] waiting for: [msg:hexzyo0202]

2019-11-22 18:45:04 | [Mutex] received everything.

2019-11-22 18:45:04 | [Mutex] waiting for: [msg:wn1f2y0204]

2019-11-22 18:45:04 | [Mutex] received everything.

2019-11-22 18:45:04 | [Mutex] waiting for: [msg:n1krfb0206]

2019-11-22 18:45:04 | [Mutex] received everything.

2019-11-22 18:45:04 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-22 18:45:04 | command: <command><fields><item><var>jid</var><value>user_regularhrzbf70198@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-11-22 18:45:04 | target: http://localhost:8088

2019-11-22 18:45:04 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2019-11-22 18:45:04 | entity: <command><fields><item><var>jid</var><value>user_regularhrzbf70198@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-11-22 18:45:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:45:04 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-22 18:45:04 | 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_regularhrzbf70198@localhost</value>
    </item>
  </fields>
</command>

2019-11-22 18:45:04 | contains: true

2019-11-22 18:45:05 | [Mutex] waiting for: [msg:m83imi0208]

2019-11-22 18:45:05 | [Mutex] received everything.

2019-11-22 18:45:05 | [Mutex] waiting for: [uim4i70209:forbidden]

2019-11-22 18:45:05 | [Mutex] received everything.

2019-11-22 18:45:05 | [Mutex] isItemNotified: uim4i70209:forbidden :: true

2019-11-22 18:45:05 | [Mutex] waiting for: [k6a2oz0211:forbidden]

2019-11-22 18:45:05 | [Mutex] received everything.

2019-11-22 18:45:05 | [Mutex] isItemNotified: k6a2oz0211:forbidden :: true

2019-11-22 18:45:05 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2019-11-22 18:45:05 | command: <command><fields><item><var>jid</var><value>user_regularhrzbf70198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistul1gw70199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-22 18:45:05 | target: http://localhost:8088

2019-11-22 18:45:05 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2019-11-22 18:45:05 | entity: <command><fields><item><var>jid</var><value>user_regularhrzbf70198@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistul1gw70199@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2019-11-22 18:45:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:45:05 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2019-11-22 18:45:05 | 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_whitelistul1gw70199@localhost;4|deny|all) for user: user_regularhrzbf70198@localhost</value>
    </item>
  </fields>
</command>

2019-11-22 18:45:05 | contains: true

2019-11-22 18:45:06 | [Mutex] waiting for: [msg:6dgl5f0214]

2019-11-22 18:45:06 | [Mutex] received everything.

2019-11-22 18:45:06 | [Mutex] waiting for: [msg:1jvtq00216]

2019-11-22 18:45:06 | [Mutex] received everything.

2019-11-22 18:45:06 | [Mutex] waiting for: [ascn6t0217:forbidden]

2019-11-22 18:45:06 | [Mutex] received everything.

2019-11-22 18:45:06 | [Mutex] isItemNotified: ascn6t0217:forbidden :: true