[
https://issues.apache.org/jira/browse/RANGER-5565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bhavesh Amre updated RANGER-5565:
---------------------------------
Description:
Fixed a unit test failure in {{TestRangerKRBAuthenticationFilter}} caused by
RANGER-5538 affecting authentication handling.
Removed outdated unit test
{{testProtectedDoFilter_usesSessionUserNameKeyadminPath}} which relied on
unused {{suser}} parameter and path-based logic. Updated tests to align with
current cookie-based authentication flow in
{{{}RangerKRBAuthenticationFilter{}}}.
was:
Fixed a unit test failure in {{TestRangerKRBAuthenticationFilter}} caused by
Commit 3442ce1 affecting authentication handling.
The test {{testProtectedDoFilter_usesSessionUserNameKeyadminPath}} was failing
due to incorrect mocking of request/response behavior. The previous setup
relied on request parameters and path info, which no longer aligned with the
current authentication flow.
> Resolve Unit Test Failures Caused by RANGER-5538
> ------------------------------------------------
>
> Key: RANGER-5565
> URL: https://issues.apache.org/jira/browse/RANGER-5565
> Project: Ranger
> Issue Type: Test
> Components: Ranger
> Reporter: Bhavesh Amre
> Assignee: Bhavesh Amre
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Fixed a unit test failure in {{TestRangerKRBAuthenticationFilter}} caused by
> RANGER-5538 affecting authentication handling.
> Removed outdated unit test
> {{testProtectedDoFilter_usesSessionUserNameKeyadminPath}} which relied on
> unused {{suser}} parameter and path-based logic. Updated tests to align with
> current cookie-based authentication flow in
> {{{}RangerKRBAuthenticationFilter{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)