|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.hadoop.hive.ql.security.TestMetastoreAuthorizationProvider
org.apache.hadoop.hive.ql.security.TestStorageBasedMetastoreAuthorizationProvider
public class TestStorageBasedMetastoreAuthorizationProvider
TestStorageBasedMetastoreAuthorizationProvider. Test case for StorageBasedAuthorizationProvider, by overriding methods defined in TestMetastoreAuthorizationProvider Note that while we do use the hive driver to test, that is mostly for test writing ease, and it has the same effect as using a metastore client directly because we disable hive client-side authorization for this test, and only turn on server-side auth.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hive.ql.security.TestMetastoreAuthorizationProvider |
---|
clientHiveConf, driver, msc, ugi |
Constructor Summary | |
---|---|
TestStorageBasedMetastoreAuthorizationProvider()
|
Method Summary | |
---|---|
protected void |
allowCreateInDb(String dbName,
String userName,
String location)
|
protected void |
allowCreateInTbl(String tableName,
String userName,
String location)
|
protected void |
allowDropOnDb(String dbName,
String userName,
String location)
|
protected void |
allowDropOnTable(String tblName,
String userName,
String location)
|
protected void |
assertNoPrivileges(MetaException me)
|
protected void |
disallowCreateInDb(String dbName,
String userName,
String location)
|
protected void |
disallowCreateInTbl(String tableName,
String userName,
String location)
|
protected String |
getAuthorizationProvider()
|
protected String |
getTestDbName()
|
protected String |
getTestTableName()
|
Methods inherited from class org.apache.hadoop.hive.ql.security.TestMetastoreAuthorizationProvider |
---|
setUp, tearDown, testSimplePrivileges |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestStorageBasedMetastoreAuthorizationProvider()
Method Detail |
---|
protected String getAuthorizationProvider()
getAuthorizationProvider
in class TestMetastoreAuthorizationProvider
protected void allowCreateInDb(String dbName, String userName, String location) throws Exception
allowCreateInDb
in class TestMetastoreAuthorizationProvider
Exception
protected void disallowCreateInDb(String dbName, String userName, String location) throws Exception
disallowCreateInDb
in class TestMetastoreAuthorizationProvider
Exception
protected void allowCreateInTbl(String tableName, String userName, String location) throws Exception
allowCreateInTbl
in class TestMetastoreAuthorizationProvider
Exception
protected void disallowCreateInTbl(String tableName, String userName, String location) throws Exception
disallowCreateInTbl
in class TestMetastoreAuthorizationProvider
Exception
protected void allowDropOnTable(String tblName, String userName, String location) throws Exception
allowDropOnTable
in class TestMetastoreAuthorizationProvider
Exception
protected void allowDropOnDb(String dbName, String userName, String location) throws Exception
allowDropOnDb
in class TestMetastoreAuthorizationProvider
Exception
protected void assertNoPrivileges(MetaException me)
assertNoPrivileges
in class TestMetastoreAuthorizationProvider
protected String getTestDbName()
getTestDbName
in class TestMetastoreAuthorizationProvider
protected String getTestTableName()
getTestTableName
in class TestMetastoreAuthorizationProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |