Package org.apache.hadoop.hbase.security
Class TestUser
java.lang.Object
org.apache.hadoop.hbase.security.TestUser
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertUserGroup
(org.apache.hadoop.hbase.security.User user, org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> groups) void
void
void
void
void
Make sure that we're returning a result for the current user.void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestUser
public TestUser()
-
-
Method Details
-
testCreateUserForTestingGroupCache
- Throws:
Exception
-
testCacheGetGroups
- Throws:
Exception
-
testCacheGetGroupsRoot
- Throws:
Exception
-
testBasicAttributes
- Throws:
Exception
-
testRunAs
- Throws:
Exception
-
testGetCurrent
Make sure that we're returning a result for the current user. Previously getCurrent() was returning null if not initialized on non-secure Hadoop variants.- Throws:
Exception
-
testUserGroupNames
- Throws:
Exception
-
assertUserGroup
private void assertUserGroup(org.apache.hadoop.hbase.security.User user, org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> groups) -
testSecurityForNonSecureHadoop
-