1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.hadoop.hbase.security.visibility;
19
20 import static org.apache.hadoop.hbase.security.visibility.VisibilityConstants.LABELS_TABLE_NAME;
21
22 import org.apache.hadoop.hbase.HConstants;
23 import org.apache.hadoop.hbase.testclassification.MediumTests;
24 import org.apache.hadoop.hbase.security.User;
25 import org.junit.BeforeClass;
26 import org.junit.Ignore;
27 import org.junit.experimental.categories.Category;
28
29
30
31
32 @Category(MediumTests.class)
33 @Ignore
34 public class TestVisibilityLabelsWithDistributedLogReplay extends
35 TestVisibilityLabelsWithDefaultVisLabelService {
36
37 @BeforeClass
38 public static void setupBeforeClass() throws Exception {
39
40 conf = TEST_UTIL.getConfiguration();
41 conf.setBoolean(HConstants.DISTRIBUTED_LOG_REPLAY_KEY, true);
42 VisibilityTestUtil.enableVisiblityLabels(conf);
43
44 conf.setClass(VisibilityUtils.VISIBILITY_LABEL_GENERATOR_CLASS, SimpleScanLabelGenerator.class,
45 ScanLabelGenerator.class);
46 conf.set("hbase.superuser", "admin");
47
48 conf.set("hbase.balancer.tablesOnMaster", "hbase:meta");
49 TEST_UTIL.startMiniCluster(2);
50 SUPERUSER = User.createUserForTesting(conf, "admin", new String[] { "supergroup" });
51 USER1 = User.createUserForTesting(conf, "user1", new String[] {});
52
53
54 TEST_UTIL.waitTableEnabled(LABELS_TABLE_NAME.getName(), 50000);
55 addLabels();
56 }
57 }