This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.4 by this push:
     new c1cd78dd4 RANGER-4000: fix unit tests for JDK17
c1cd78dd4 is described below

commit c1cd78dd4cac582e8cbc13be9f628eb19f267e72
Author: Madhan Neethiraj <[email protected]>
AuthorDate: Fri Dec 2 09:47:02 2022 -0800

    RANGER-4000: fix unit tests for JDK17
    
    (cherry picked from commit 6a95eea00d85ac72cd59878c611b797f3f6f3be2)
---
 .../src/test/resources/policyengine/test_policyengine_geo.json          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/agents-common/src/test/resources/policyengine/test_policyengine_geo.json 
b/agents-common/src/test/resources/policyengine/test_policyengine_geo.json
index 4249996b8..3a038761d 100644
--- a/agents-common/src/test/resources/policyengine/test_policyengine_geo.json
+++ b/agents-common/src/test/resources/policyengine/test_policyengine_geo.json
@@ -66,7 +66,7 @@
        
{"accesses":[{"type":"read","isAllowed":true}],"users":[],"groups":["finance"],"delegateAdmin":false,
          "conditions":[{
            "type":"ScriptConditionEvaluator",
-           "values":["var country_code_format_long = 
ctx.getRequestContextAttribute('LOCATION_FORMAT_LONG_COUNTRY_CODE'); var 
country_code_format_dot = 
ctx.getRequestContextAttribute('LOCATION_FORMAT_DOT_COUNTRY_CODE');ctx.result = 
(!!country_code_format_long && !!country_code_format_dot && 
(country_code_format_long == country_code_format_dot));"]
+           "values":["var country_code_format_long = 
ctx.getRequestContextAttribute('LOCATION_FORMAT_LONG_COUNTRY_CODE'); var 
country_code_format_dot = 
ctx.getRequestContextAttribute('LOCATION_FORMAT_DOT_COUNTRY_CODE');ctx.result = 
(country_code_format_long != null && country_code_format_dot != null && 
(country_code_format_long == country_code_format_dot));"]
          }]}
      ]
     }

Reply via email to