This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 6a95eea00 RANGER-4000: fix unit tests for JDK17
6a95eea00 is described below
commit 6a95eea00d85ac72cd59878c611b797f3f6f3be2
Author: Madhan Neethiraj <[email protected]>
AuthorDate: Fri Dec 2 09:47:02 2022 -0800
RANGER-4000: fix unit tests for JDK17
---
.../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));"]
}]}
]
}