You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ra...@apache.org on 2026/07/04 15:48:42 UTC
(ranger) branch RANGER-5647-iso-dates-backport-ranger-2.9 created (now 9dd0048c5)
This is an automated email from the ASF dual-hosted git repository.
ramackri pushed a change to branch RANGER-5647-iso-dates-backport-ranger-2.9
in repository https://gitbox.apache.org/repos/asf/ranger.git
at 9dd0048c5 RANGER-5647: Backport ISO EXPIRES_ON tag test dates to ranger-2.9
This branch includes the following new commits:
new 9dd0048c5 RANGER-5647: Backport ISO EXPIRES_ON tag test dates to ranger-2.9
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(ranger) 01/01: RANGER-5647: Backport ISO EXPIRES_ON tag test dates to ranger-2.9
Posted by ra...@apache.org.
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 <ra...@cloudera.com>
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 <cu...@cursor.com>
---
.../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}
},