public class TestImpersonationMetadata extends BaseTestImpersonation
BaseTestQuery.ClassicTestServices, BaseTestQuery.SilentListener, BaseTestQuery.TestResultSetDrillTest.MemWatcher| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
thrown |
dfsCluster, dfsConf, fs, MINI_DFS_STORAGE_PLUGIN_NAME, miniDfsStoragePath, org1Groups, org1Users, org2Groups, org2Users, processUserEXPECTED_NOT_FOUND, JSON_FORMAT, OPTIQ_FORMAT, UNEXPECTED_FOUNDallocator, bits, client, config, serviceSetc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestImpersonationMetadata() |
| Modifier and Type | Method and Description |
|---|---|
static void |
removeMiniDfsBasedStorage() |
static void |
setup() |
void |
testAnalyzeTable() |
void |
testCreateTableInDirWithGroupPermissionsForQueryUser() |
void |
testCreateTableInDirWithOtherPermissionsForQueryUser() |
void |
testCreateTableInDirWithUserPermissionsForQueryUser() |
void |
testCreateTableInWSWithNoPermissionsForQueryUser() |
void |
testCreateViewInDirWithGroupPermissionsForQueryUser() |
void |
testCreateViewInDirWithOtherPermissionsForQueryUser() |
void |
testCreateViewInDirWithUserPermissionsForQueryUser() |
void |
testCreateViewInWSWithNoPermissionsForQueryUser() |
void |
testDropTable() |
void |
testImpersonatingProcessUser() |
void |
testRefreshMetadata() |
void |
testShowFilesInWSWithNoPermissionsForQueryUser() |
void |
testShowFilesInWSWithOtherPermissionsForQueryUser() |
void |
testShowFilesInWSWithUserAndGroupPermissionsForQueryUser() |
void |
testShowSchemasAsUser1() |
void |
testShowSchemasAsUser2() |
addMiniDfsBasedStorage, createAndAddWorkspace, createView, createView, getUserHome, getWSSchema, startDrillCluster, startDrillCluster, startMiniDfsCluster, startMiniDfsCluster, stopMiniDfsClustercheckForMetadataFile, 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, initDrillTestpublic void testImpersonatingProcessUser()
throws Exception
Exceptionpublic void testShowFilesInWSWithUserAndGroupPermissionsForQueryUser()
throws Exception
Exceptionpublic void testShowFilesInWSWithOtherPermissionsForQueryUser()
throws Exception
Exceptionpublic void testShowFilesInWSWithNoPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateViewInDirWithUserPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateViewInDirWithGroupPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateViewInDirWithOtherPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateViewInWSWithNoPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateTableInDirWithUserPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateTableInDirWithGroupPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateTableInDirWithOtherPermissionsForQueryUser()
throws Exception
Exceptionpublic void testCreateTableInWSWithNoPermissionsForQueryUser()
throws Exception
Exceptionpublic static void removeMiniDfsBasedStorage()
throws StoragePluginRegistry.PluginException
Copyright © 2021 The Apache Software Foundation. All rights reserved.