You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by pr...@apache.org on 2023/05/05 10:46:12 UTC

[ranger] branch master updated: RANGER-4218: Fix for test failure in TestServiceDBStore

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

pradeep pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new aea071ca7 RANGER-4218: Fix for test failure in TestServiceDBStore
aea071ca7 is described below

commit aea071ca7c029e45e08beb7392d50c582f0e0c68
Author: Pradeep Agrawal <pr...@apache.org>
AuthorDate: Fri May 5 16:15:37 2023 +0530

    RANGER-4218: Fix for test failure in TestServiceDBStore
---
 .../src/test/java/org/apache/ranger/biz/TestServiceDBStore.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security-admin/src/test/java/org/apache/ranger/biz/TestServiceDBStore.java b/security-admin/src/test/java/org/apache/ranger/biz/TestServiceDBStore.java
index a468ed6f8..eadd64ab7 100644
--- a/security-admin/src/test/java/org/apache/ranger/biz/TestServiceDBStore.java
+++ b/security-admin/src/test/java/org/apache/ranger/biz/TestServiceDBStore.java
@@ -2431,7 +2431,7 @@ public void test47getMetricByTypeDenyconditions() throws Exception {
 
 		Mockito.when(serviceDBStore.xUserMgr.getGroupsForUser("testUser2")).thenReturn(new HashSet<String>() {{ add("testServiceAdminGroup2"); }});
 
-		result = serviceDBStore.isServiceAdminUser(rService.getName(), "testUser1");
+		result = serviceDBStore.isServiceAdminUser(rService.getName(), "testUser2");
 
 		Assert.assertTrue(result);
 		Mockito.verify(daoManager).getXXServiceConfigMap();