You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2014/03/08 06:01:38 UTC

svn commit: r1575486 - /hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java

Author: tedyu
Date: Sat Mar  8 05:01:37 2014
New Revision: 1575486

URL: http://svn.apache.org/r1575486
Log:
HBASE-10700 IntegrationTestWithCellVisibilityLoadAndVerify should allow current user to be the admin


Modified:
    hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java

Modified: hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java?rev=1575486&r1=1575485&r2=1575486&view=diff
==============================================================================
--- hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java (original)
+++ hbase/trunk/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java Sat Mar  8 05:01:37 2014
@@ -113,9 +113,10 @@ public class IntegrationTestWithCellVisi
     conf.setInt(HFile.FORMAT_VERSION_KEY, 3);
     conf.set("hbase.coprocessor.master.classes", VisibilityController.class.getName());
     conf.set("hbase.coprocessor.region.classes", VisibilityController.class.getName());
-    conf.set("hbase.superuser", "admin," + User.getCurrent().getName());
+    String adminName = User.getCurrent().getName();
+    conf.set("hbase.superuser", adminName);
     super.setUpCluster();
-    ADMIN = User.createUserForTesting(conf, "admin", new String[] { "supergroup" });
+    ADMIN = User.createUserForTesting(conf, adminName, new String[] { "supergroup" });
     NORMAL_USER = User.createUserForTesting(conf, "user1", new String[] {});
     addLabelsAndAuths();
   }