Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 521cff95c -> d73b57d7c


HBASE-13563 Add missing table owner to AC tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d73b57d7
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d73b57d7
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d73b57d7

Branch: refs/heads/branch-1.0
Commit: d73b57d7c6a85d563f6373b06e18098d4e864979
Parents: 521cff9
Author: Srikanth Srungarapu <ssrungar...@cloudera.com>
Authored: Sun Apr 26 16:40:40 2015 -0700
Committer: Srikanth Srungarapu <ssrungar...@cloudera.com>
Committed: Sun Apr 26 16:45:59 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/security/access/TestAccessController.java    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d73b57d7/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
index 354afd9..4986d97 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
@@ -1913,10 +1913,10 @@ public class TestAccessController extends 
SecureTestUtil {
       }
     };
 
-    verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
TABLE_ADMIN);
+    verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
USER_OWNER, TABLE_ADMIN);
     verifyIfEmptyList(listTablesAction, USER_RW, USER_RO, USER_NONE);
 
-    verifyAllowed(getTableDescAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
TABLE_ADMIN);
+    verifyAllowed(getTableDescAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
USER_OWNER, TABLE_ADMIN);
     verifyDenied(getTableDescAction, USER_RW, USER_RO, USER_NONE);
   }
 
@@ -1937,7 +1937,8 @@ public class TestAccessController extends SecureTestUtil {
       }
     };
 
-    verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
USER_RW, USER_RO);
+    verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, 
USER_OWNER,
+        USER_RW, USER_RO);
     verifyIfEmptyList(listTablesAction, USER_NONE);
   }
 

Reply via email to