This is an automated email from the ASF dual-hosted git repository. ramackri pushed a commit to branch RANGER-5647-iso-dates-backport-ranger-2.9 in repository https://gitbox.apache.org/repos/asf/ranger.git
commit 9dd0048c54f6f681c0853b9d922db142862afe9e Author: ramk <[email protected]> AuthorDate: Sat Jul 4 21:18:30 2026 +0530 RANGER-5647: Backport ISO EXPIRES_ON tag test dates to ranger-2.9 Backport of #1021 to ranger-2.9. PR #1018 updated slash-format tag fixture dates to 2099/12/31 but left 2026-06-15 ISO expiry_date values in test_policyengine_tag_hive.json. After 2026-06-15, TestPolicyEngine.testPolicyEngine_hiveForTag fails CI with isAllowed expected true but was false for EXPIRES_ON SELF match. Co-authored-by: Cursor <[email protected]> --- .../src/test/resources/policyengine/test_policyengine_tag_hive.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents-common/src/test/resources/policyengine/test_policyengine_tag_hive.json b/agents-common/src/test/resources/policyengine/test_policyengine_tag_hive.json index 0c8ae5d65..500f31666 100644 --- a/agents-common/src/test/resources/policyengine/test_policyengine_tag_hive.json +++ b/agents-common/src/test/resources/policyengine/test_policyengine_tag_hive.json @@ -250,7 +250,7 @@ "resource":{"elements":{"database":"employee", "table":"personal", "column":"ssn"}}, "accessType":"select","user":"testuser","userGroups":[],"requestData":"select ssn from employee.personal;' for testuser", - "context": {"TAGS":"[{\"type\":\"EXPIRES_ON\", \"attributes\":{\"expiry_date\":\"2026-06-15T15:05:15.000Z\"}, \"matchType\":\"DESCENDANT\"}]"} + "context": {"TAGS":"[{\"type\":\"EXPIRES_ON\", \"attributes\":{\"expiry_date\":\"2099-12-31T15:05:15.000Z\"}, \"matchType\":\"DESCENDANT\"}]"} }, "result":{"isAudited":true,"isAllowed":false,"policyId":-1} }, @@ -259,7 +259,7 @@ "resource":{"elements":{"database":"employee", "table":"personal", "column":"ssn"}}, "accessType":"select","user":"user1","userGroups":[],"requestData":"select ssn from employee.personal;' for user1", - "context": {"TAGS":"[{\"type\":\"EXPIRES_ON\", \"attributes\":{\"expiry_date\":\"2026-06-15T15:05:15.000Z\"}, \"matchType\":\"SELF\"}]"} + "context": {"TAGS":"[{\"type\":\"EXPIRES_ON\", \"attributes\":{\"expiry_date\":\"2099-12-31T15:05:15.000Z\"}, \"matchType\":\"SELF\"}]"} }, "result":{"isAudited":true,"isAllowed":true,"policyId":101} },
