From 8ef4e516feb5abc303c103fbf93f6adb8e342fc1 Mon Sep 17 00:00:00 2001 From: Dineshkumar Yadav Date: Thu, 4 Jan 2024 15:37:54 +0530 Subject: [PATCH] RANGER-4613: GDS : Need filter of objectId in /assets/report api to filter out history specific to a dataset/datashare fixed testcase failure Signed-off-by: Dineshkumar Yadav --- .../src/test/java/org/apache/ranger/rest/TestAssetREST.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security-admin/src/test/java/org/apache/ranger/rest/TestAssetREST.java b/security-admin/src/test/java/org/apache/ranger/rest/TestAssetREST.java index cc0d758722..180742bcd9 100644 --- a/security-admin/src/test/java/org/apache/ranger/rest/TestAssetREST.java +++ b/security-admin/src/test/java/org/apache/ranger/rest/TestAssetREST.java @@ -755,7 +755,7 @@ public void testGetReportLogs() { Assert.assertEquals(vXTrxLogList, expectedVXTrxLogListt); Mockito.verify(searchUtil, Mockito.times(4)).extractString((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); - Mockito.verify(searchUtil).extractInt((HttpServletRequest) Mockito.any(), + Mockito.verify(searchUtil, Mockito.times(2)).extractInt((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString()); Mockito.verify(searchUtil, Mockito.times(2)).extractDate((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); @@ -1031,7 +1031,7 @@ public void testGetReportLogsForAuditAdmin() { Assert.assertEquals(vXTrxLogList, expectedVXTrxLogListt); Mockito.verify(searchUtil, Mockito.times(4)).extractString((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); - Mockito.verify(searchUtil).extractInt((HttpServletRequest) Mockito.any(), + Mockito.verify(searchUtil, Mockito.times(2)).extractInt((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString()); Mockito.verify(searchUtil, Mockito.times(2)).extractDate((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); @@ -1061,7 +1061,7 @@ public void testGetReportLogsForAuditKeyAdmin() { Assert.assertEquals(vXTrxLogList, expectedVXTrxLogListt); Mockito.verify(searchUtil, Mockito.times(4)).extractString((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString()); - Mockito.verify(searchUtil).extractInt((HttpServletRequest) Mockito.any(), + Mockito.verify(searchUtil, Mockito.times(2)).extractInt((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString()); Mockito.verify(searchUtil, Mockito.times(2)).extractDate((HttpServletRequest) Mockito.any(), (SearchCriteria) Mockito.any(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString());