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

Test duration: 5.740s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.249s
2020-06-18 22:42:02 |

2020-06-18 22:42:02 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-18 22:42:02 | ------------------------------------

2020-06-18 22:42:02 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-18 22:42:02 | command: <command><fields><item><var>jid</var><value>user_regularv9pkhc0214@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-06-18 22:42:02 | target: http://localhost:8088

2020-06-18 22:42:02 | entity: [Content-Type: application/xml,Content-Length: 301,Chunked: false]

2020-06-18 22:42:02 | entity: <command><fields><item><var>jid</var><value>user_regularv9pkhc0214@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-06-18 22:42:02 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:42:02 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-18 22:42:02 | 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_regularv9pkhc0214@localhost</value>
    </item>
  </fields>
</command>

2020-06-18 22:42:02 | contains: true

2020-06-18 22:42:02 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-18 22:42:02 | command: <command><fields><item><var>jid</var><value>user_regularv9pkhc0214@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-06-18 22:42:02 | target: http://localhost:8088

2020-06-18 22:42:02 | entity: [Content-Type: application/xml,Content-Length: 261,Chunked: false]

2020-06-18 22:42:02 | entity: <command><fields><item><var>jid</var><value>user_regularv9pkhc0214@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-06-18 22:42:02 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:42:02 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-18 22:42:02 | 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_regularv9pkhc0214@localhost</value>
    </item>
  </fields>
</command>

2020-06-18 22:42:02 | contains: true

testMessageFiltering 1.701s
2020-06-18 22:42:04 |

2020-06-18 22:42:04 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-06-18 22:42:04 | ------------------------------------

2020-06-18 22:42:04 | [Mutex] waiting for: [msg:i6n0x80221]

2020-06-18 22:42:04 | [Mutex] received everything.

2020-06-18 22:42:04 | [Mutex] waiting for: [msg:849nzs0223]

2020-06-18 22:42:04 | [Mutex] received everything.

2020-06-18 22:42:04 | [Mutex] waiting for: [msg:8hvnfv0225]

2020-06-18 22:42:04 | [Mutex] received everything.

2020-06-18 22:42:04 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-18 22:42:04 | command: <command><fields><item><var>jid</var><value>user_regular3lzcuz0217@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-06-18 22:42:04 | target: http://localhost:8088

2020-06-18 22:42:04 | entity: [Content-Type: application/xml,Content-Length: 273,Chunked: false]

2020-06-18 22:42:04 | entity: <command><fields><item><var>jid</var><value>user_regular3lzcuz0217@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-06-18 22:42:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:42:04 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-18 22:42: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_regular3lzcuz0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-18 22:42:04 | contains: true

2020-06-18 22:42:05 | [Mutex] waiting for: [msg:bas2ti0227]

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] waiting for: [73xf0g0228:forbidden]

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] isItemNotified: 73xf0g0228:forbidden :: true

2020-06-18 22:42:05 | [Mutex] waiting for: [xbid9x0230:forbidden]

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] isItemNotified: xbid9x0230:forbidden :: true

2020-06-18 22:42:05 | postRequest: POST /rest/adhoc/sess-man@localhost HTTP/1.1

2020-06-18 22:42:05 | command: <command><fields><item><var>jid</var><value>user_regular3lzcuz0217@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistar6gh00218@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-18 22:42:05 | target: http://localhost:8088

2020-06-18 22:42:05 | entity: [Content-Type: application/xml,Content-Length: 329,Chunked: false]

2020-06-18 22:42:05 | entity: <command><fields><item><var>jid</var><value>user_regular3lzcuz0217@localhost</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelistar6gh00218@localhost;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-06-18 22:42:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:42:05 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-06-18 22:42: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_whitelistar6gh00218@localhost;4|deny|all) for user: user_regular3lzcuz0217@localhost</value>
    </item>
  </fields>
</command>

2020-06-18 22:42:05 | contains: true

2020-06-18 22:42:05 | [Mutex] waiting for: [msg:gq3yeb0233]

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] waiting for: [msg:di4t8o0235]

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] received everything.

2020-06-18 22:42:05 | [Mutex] isItemNotified: 57namf0236:forbidden :: true