public class TestTablePermissions
extends java.lang.Object
_acl_ table.| Constructor and Description |
|---|
TestTablePermissions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
void |
checkMultimapEqual(<any> first,
<any> second) |
void |
tearDown() |
void |
testAuthManager() |
void |
testBasicWrite() |
void |
testEquals() |
void |
testGlobalPermission() |
void |
testMigration()
Test we can read permissions serialized with Writables.
|
void |
testPersistence() |
void |
testSerialization() |
static void |
writePermissions(java.io.DataOutput out,
<any> perms,
Configuration conf)
Writes a set of permissions as
org.apache.hadoop.io.Writable instances
to the given output stream. |
static byte[] |
writePermissionsAsBytes(<any> perms,
Configuration conf)
Writes a set of permissions as
org.apache.hadoop.io.Writable instances
and returns the resulting byte array. |
public static void beforeClass()
throws java.lang.Exception
java.lang.Exceptionpublic static void afterClass()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testMigration()
throws DeserializationException
DeserializationExceptionpublic static byte[] writePermissionsAsBytes(<any> perms,
Configuration conf)
org.apache.hadoop.io.Writable instances
and returns the resulting byte array. Used to verify we can read stuff written
with Writable.public static void writePermissions(java.io.DataOutput out,
<any> perms,
Configuration conf)
throws java.io.IOException
org.apache.hadoop.io.Writable instances
to the given output stream.out - perms - conf - java.io.IOExceptionpublic void testBasicWrite()
throws java.lang.Exception
java.lang.Exceptionpublic void testPersistence()
throws java.lang.Exception
java.lang.Exceptionpublic void testSerialization()
throws java.lang.Exception
java.lang.Exceptionpublic void checkMultimapEqual(<any> first,
<any> second)
public void testEquals()
throws java.lang.Exception
java.lang.Exceptionpublic void testGlobalPermission()
throws java.lang.Exception
java.lang.Exceptionpublic void testAuthManager()
throws java.lang.Exception
java.lang.Exception