Package org.apache.hadoop.hbase.security
Class TestUser
java.lang.Object
org.apache.hadoop.hbase.security.TestUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertUserGroup(org.apache.hadoop.hbase.security.User user, org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> groups) voidvoidvoidvoidvoidMake sure that we're returning a result for the current user.voidvoidvoid
-
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
-