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:00:58 UTC

svn commit: r1575485 - /hbase/branches/0.98/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java

Author: tedyu
Date: Sat Mar  8 05:00:57 2014
New Revision: 1575485

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


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

Modified: hbase/branches/0.98/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java?rev=1575485&r1=1575484&r2=1575485&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java (original)
+++ hbase/branches/0.98/hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestWithCellVisibilityLoadAndVerify.java Sat Mar  8 05:00:57 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();
   }