|
24 | 24 | import org.apache.hadoop.hdfs.server.datanode.ObjectStoreHandler; |
25 | 25 | import org.apache.hadoop.ozone.MiniOzoneCluster; |
26 | 26 | import org.apache.hadoop.ozone.OzoneTestUtils; |
27 | | -import org.apache.hadoop.ozone.om.exceptions.OMException; |
28 | 27 | import org.apache.hadoop.ozone.om.exceptions.OMException.ResultCodes; |
29 | 28 | import org.apache.hadoop.ozone.security.acl.IAccessAuthorizer; |
30 | 29 | import org.apache.hadoop.ozone.security.acl.IOzoneObj; |
@@ -80,7 +79,7 @@ public static void init() throws Exception { |
80 | 79 | omId = UUID.randomUUID().toString(); |
81 | 80 | conf.setBoolean(OZONE_ACL_ENABLED, true); |
82 | 81 | conf.setInt(OZONE_OPEN_KEY_EXPIRE_THRESHOLD_SECONDS, 2); |
83 | | - conf.setClass(OZONE_ACL_AUTHORIZER_CLASS, OzoneAccessAuthrizerTest.class, |
| 82 | + conf.setClass(OZONE_ACL_AUTHORIZER_CLASS, OzoneAccessAuthorizerTest.class, |
84 | 83 | IAccessAuthorizer.class); |
85 | 84 | cluster = MiniOzoneCluster.newBuilder(conf) |
86 | 85 | .setClusterId(clusterId) |
@@ -165,11 +164,10 @@ public void testFailureInKeyOp() throws Exception { |
165 | 164 | /** |
166 | 165 | * Test implementation to negative case. |
167 | 166 | */ |
168 | | -class OzoneAccessAuthrizerTest implements IAccessAuthorizer { |
| 167 | +class OzoneAccessAuthorizerTest implements IAccessAuthorizer { |
169 | 168 |
|
170 | 169 | @Override |
171 | | - public boolean checkAccess(IOzoneObj ozoneObject, RequestContext context) |
172 | | - throws OMException { |
| 170 | + public boolean checkAccess(IOzoneObj ozoneObject, RequestContext context) { |
173 | 171 | return false; |
174 | 172 | } |
175 | 173 | } |
0 commit comments