HDDS-1852. Fix typo in TestOmAcls

Closes #1173
This commit is contained in:
Doroszlai, Attila 2019-07-29 10:46:11 +02:00 committed by Márton Elek
parent 902ff4a2f6
commit 61ec03c966
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -24,7 +24,6 @@
import org.apache.hadoop.hdfs.server.datanode.ObjectStoreHandler;
import org.apache.hadoop.ozone.MiniOzoneCluster;
import org.apache.hadoop.ozone.OzoneTestUtils;
import org.apache.hadoop.ozone.om.exceptions.OMException;
import org.apache.hadoop.ozone.om.exceptions.OMException.ResultCodes;
import org.apache.hadoop.ozone.security.acl.IAccessAuthorizer;
import org.apache.hadoop.ozone.security.acl.IOzoneObj;
@ -80,7 +79,7 @@ public static void init() throws Exception {
omId = UUID.randomUUID().toString();
conf.setBoolean(OZONE_ACL_ENABLED, true);
conf.setInt(OZONE_OPEN_KEY_EXPIRE_THRESHOLD_SECONDS, 2);
conf.setClass(OZONE_ACL_AUTHORIZER_CLASS, OzoneAccessAuthrizerTest.class,
conf.setClass(OZONE_ACL_AUTHORIZER_CLASS, OzoneAccessAuthorizerTest.class,
IAccessAuthorizer.class);
cluster = MiniOzoneCluster.newBuilder(conf)
.setClusterId(clusterId)
@ -165,11 +164,10 @@ public void testFailureInKeyOp() throws Exception {
/**
* Test implementation to negative case.
*/
class OzoneAccessAuthrizerTest implements IAccessAuthorizer {
class OzoneAccessAuthorizerTest implements IAccessAuthorizer {
@Override
public boolean checkAccess(IOzoneObj ozoneObject, RequestContext context)
throws OMException {
public boolean checkAccess(IOzoneObj ozoneObject, RequestContext context) {
return false;
}
}