public class BaseTestImpersonation extends PlanTestBase
BaseTestQuery.ClassicTestServices, BaseTestQuery.SilentListener, BaseTestQuery.TestResultSetDrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.hdfs.MiniDFSCluster |
dfsCluster |
protected static org.apache.hadoop.conf.Configuration |
dfsConf |
protected static org.apache.hadoop.fs.FileSystem |
fs |
protected static String |
MINI_DFS_STORAGE_PLUGIN_NAME |
protected static File |
miniDfsStoragePath |
protected static String[] |
org1Groups |
protected static String[] |
org1Users |
protected static String[] |
org2Groups |
protected static String[] |
org2Users |
protected static String |
processUser |
EXPECTED_NOT_FOUND, JSON_FORMAT, OPTIQ_FORMAT, UNEXPECTED_FOUNDallocator, bits, client, config, serviceSetc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
BaseTestImpersonation() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addMiniDfsBasedStorage(Map<String,WorkspaceConfig> workspaces) |
protected static void |
createAndAddWorkspace(String name,
String path,
short permissions,
String owner,
String group,
Map<String,WorkspaceConfig> workspaces) |
protected static void |
createView(String viewOwner,
String viewGroup,
short viewPerms,
String newViewName,
String fromSourceSchema,
String fromSourceTableName) |
protected static void |
createView(String viewOwner,
String viewGroup,
String viewName,
String viewDef) |
protected static String |
getUserHome(String user) |
protected static String |
getWSSchema(String user) |
protected static void |
startDrillCluster(boolean isImpersonationEnabled) |
protected static void |
startDrillCluster(Properties props) |
protected static void |
startMiniDfsCluster(String testClass)
Start a MiniDFS cluster backed Drillbit cluster with impersonation enabled.
|
protected static void |
startMiniDfsCluster(String testClass,
boolean isImpersonationEnabled)
Start a MiniDFS cluster backed Drillbit cluster
|
protected static void |
stopMiniDfsCluster() |
checkForMetadataFile, createMetadataDir, getPhysicalJsonPlan, getPlanInString, testPhysicalPlan, testPhysicalPlanExecutionBasedOnQuery, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanMatchingPatterns, testPlanOneExcludedPattern, testPlanOneExpectedPattern, testPlanOneExpectedPatternOneExcluded, testPlanSubstrPatterns, testPlanWithAttributesMatchingPatterns, testRelLogicalJoinOrder, testRelLogicalPlanLevDigest, testRelLogicalPlanLevExplain, testRelPhysicalJoinOrder, testRelPhysicalPlanLevDigest, testRelPhysicalPlanLevExplainalterSession, cloneDefaultTestConfigProperties, closeClient, errorMsgTestHelper, getAllocator, getDrillbitContext, getFile, getPhysicalFileFromResource, getResultString, getUserPort, logResult, newTest, parseErrorHelper, printResult, resetAllSessionOptions, resetDrillbitCount, resetSessionOption, runSQL, setColumnWidth, setColumnWidths, setSessionOption, setSessionOption, setSessionOption, setSessionOption, setupDefaultTestCluster, test, test, testBuilder, testLogicalWithResults, testNoResult, testNoResult, testPhysical, testPhysicalFromFile, testPhysicalWithResults, testPreparedStatement, testRunAndPrint, testRunAndReturn, testSql, testSqlWithResults, testWithListener, updateClient, updateClient, updateClient, updateTestCluster, updateTestClusterclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestprotected static final String MINI_DFS_STORAGE_PLUGIN_NAME
protected static final String processUser
protected static org.apache.hadoop.hdfs.MiniDFSCluster dfsCluster
protected static org.apache.hadoop.conf.Configuration dfsConf
protected static org.apache.hadoop.fs.FileSystem fs
protected static File miniDfsStoragePath
protected static final String[] org1Users
protected static final String[] org1Groups
protected static final String[] org2Users
protected static final String[] org2Groups
protected static void startMiniDfsCluster(String testClass) throws Exception
testClass - test classException - in case of errors during start upprotected static void startMiniDfsCluster(String testClass, boolean isImpersonationEnabled) throws Exception
testClass - test classisImpersonationEnabled - Enable impersonation in the cluster?Exception - in case of errors during start upprotected static void startDrillCluster(boolean isImpersonationEnabled)
throws Exception
Exceptionprotected static void startDrillCluster(Properties props) throws Exception
Exceptionprotected static void addMiniDfsBasedStorage(Map<String,WorkspaceConfig> workspaces) throws Exception
Exceptionprotected static void createAndAddWorkspace(String name, String path, short permissions, String owner, String group, Map<String,WorkspaceConfig> workspaces) throws Exception
Exceptionprotected static void stopMiniDfsCluster()
protected static void createView(String viewOwner, String viewGroup, short viewPerms, String newViewName, String fromSourceSchema, String fromSourceTableName) throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.