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

Test duration: 6.476s

Passed Tests
tigase.tests.http.TestModificationOfPrivacyRulesUsingREST
testConfigurationUpdating 0.253s
2020-07-15 23:13:39 |

2020-07-15 23:13:39 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-07-15 23:13:39 | ------------------------------------

2020-07-15 23:13:39 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-15 23:13:39 | command: <command><fields><item><var>jid</var><value>user_regularafdv0a0210@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-15 23:13:39 | target: http://localhost:8088

2020-07-15 23:13:39 | entity: [Content-Type: application/xml,Content-Length: 313,Chunked: false]

2020-07-15 23:13:39 | entity: <command><fields><item><var>jid</var><value>user_regularafdv0a0210@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|admin@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-15 23:13:40 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jul 2020 06:13:40 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-15 23:13:40 | response entity: <command>
  <jid>sess-man@test-domain.com</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@test-domain.com;4|deny|all) for user: user_regularafdv0a0210@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-15 23:13:40 | contains: true

2020-07-15 23:13:40 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-15 23:13:40 | command: <command><fields><item><var>jid</var><value>user_regularafdv0a0210@test-domain.com</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-07-15 23:13:40 | target: http://localhost:8088

2020-07-15 23:13:40 | entity: [Content-Type: application/xml,Content-Length: 267,Chunked: false]

2020-07-15 23:13:40 | entity: <command><fields><item><var>jid</var><value>user_regularafdv0a0210@test-domain.com</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-07-15 23:13:40 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jul 2020 06:13:40 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-15 23:13:40 | response entity: <command>
  <jid>sess-man@test-domain.com</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@test-domain.com;4|deny|all) to a new value: CUSTOM (domains list: 1|allow|all) for user: user_regularafdv0a0210@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-15 23:13:40 | contains: true

testMessageFiltering 2.640s
2020-07-15 23:13:41 |

2020-07-15 23:13:41 | null / [TestClass name=class tigase.tests.http.TestModificationOfPrivacyRulesUsingREST]

2020-07-15 23:13:41 | ------------------------------------

2020-07-15 23:13:41 | [Mutex] waiting for: [msg:axm2uo0217]

2020-07-15 23:13:41 | [Mutex] received everything.

2020-07-15 23:13:41 | [Mutex] isItemNotified: msg:axm2uo0217 :: true

2020-07-15 23:13:41 | [Mutex] waiting for: [msg:k51xtu0219]

2020-07-15 23:13:41 | [Mutex] received everything.

2020-07-15 23:13:41 | [Mutex] isItemNotified: msg:k51xtu0219 :: true

2020-07-15 23:13:41 | [Mutex] waiting for: [msg:wnthl60221]

2020-07-15 23:13:41 | [Mutex] received everything.

2020-07-15 23:13:41 | [Mutex] isItemNotified: msg:wnthl60221 :: true

2020-07-15 23:13:41 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-15 23:13:41 | command: <command><fields><item><var>jid</var><value>user_regularr3ep9a0213@test-domain.com</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-07-15 23:13:41 | target: http://localhost:8088

2020-07-15 23:13:41 | entity: [Content-Type: application/xml,Content-Length: 279,Chunked: false]

2020-07-15 23:13:41 | entity: <command><fields><item><var>jid</var><value>user_regularr3ep9a0213@test-domain.com</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-07-15 23:13:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jul 2020 06:13:41 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-15 23:13:41 | response entity: <command>
  <jid>sess-man@test-domain.com</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_regularr3ep9a0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-15 23:13:41 | contains: true

2020-07-15 23:13:43 | [Mutex] waiting for: [msg:5l43u40223]

2020-07-15 23:13:43 | [Mutex] received everything.

2020-07-15 23:13:43 | [Mutex] isItemNotified: msg:5l43u40223 :: true

2020-07-15 23:13:43 | [Mutex] waiting for: [dfcdcw0224:forbidden]

2020-07-15 23:13:43 | [Mutex] received everything.

2020-07-15 23:13:43 | [Mutex] isItemNotified: dfcdcw0224:forbidden :: true

2020-07-15 23:13:43 | [Mutex] waiting for: [q5msuu0226:forbidden]

2020-07-15 23:13:43 | [Mutex] received everything.

2020-07-15 23:13:43 | [Mutex] isItemNotified: q5msuu0226:forbidden :: true

2020-07-15 23:13:43 | postRequest: POST /rest/adhoc/sess-man@test-domain.com HTTP/1.1

2020-07-15 23:13:43 | command: <command><fields><item><var>jid</var><value>user_regularr3ep9a0213@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist32a2j10214@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-15 23:13:43 | target: http://localhost:8088

2020-07-15 23:13:43 | entity: [Content-Type: application/xml,Content-Length: 341,Chunked: false]

2020-07-15 23:13:43 | entity: <command><fields><item><var>jid</var><value>user_regularr3ep9a0213@test-domain.com</value></item><item><var>fiteringPolicy</var><value>CUSTOM</value></item><item><var>filteringList</var><value>1|allow|self;2|allow|jid|user_regular1_whitelist32a2j10214@test-domain.com;4|deny|all</value></item></fields><node>user-domain-perm</node></command>

2020-07-15 23:13:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jul 2020 06:13:43 GMT, Transfer-encoding: chunked, Content-type: application/xml] ResponseEntityProxy{[Content-Type: application/xml,Chunked: true]}}

2020-07-15 23:13:43 | response entity: <command>
  <jid>sess-man@test-domain.com</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_whitelist32a2j10214@test-domain.com;4|deny|all) for user: user_regularr3ep9a0213@test-domain.com</value>
    </item>
  </fields>
</command>

2020-07-15 23:13:43 | contains: true

2020-07-15 23:13:44 | [Mutex] waiting for: [msg:c86agp0229]

2020-07-15 23:13:44 | [Mutex] received everything.

2020-07-15 23:13:44 | [Mutex] isItemNotified: msg:c86agp0229 :: true

2020-07-15 23:13:44 | [Mutex] waiting for: [msg:rs93mj0231]

2020-07-15 23:13:44 | [Mutex] received everything.

2020-07-15 23:13:44 | [Mutex] isItemNotified: msg:rs93mj0231 :: true

2020-07-15 23:13:44 | [Mutex] waiting for: [v9sgsm0232:forbidden]

2020-07-15 23:13:44 | [Mutex] received everything.

2020-07-15 23:13:44 | [Mutex] isItemNotified: v9sgsm0232:forbidden :: true