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

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


The following commit(s) were added to refs/heads/ranger-2.9 by this push:
     new bee93bed6 RANGER-5647: Backport ISO EXPIRES_ON tag test dates to 
ranger-2.9 (#1042)
bee93bed6 is described below

commit bee93bed6c1754a5b5e28d84fa91db83ecf86c9d
Author: Ramachandran Krishnan <[email protected]>
AuthorDate: Sat Jul 4 21:19:49 2026 +0530

    RANGER-5647: Backport ISO EXPIRES_ON tag test dates to ranger-2.9 (#1042)
    
    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: ramk <[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 47d03ada7..ea52824ad 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}
     },

Reply via email to