This is an automated email from the ASF dual-hosted git repository. elek pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new 61ec03c HDDS-1852. Fix typo in TestOmAcls 61ec03c is described below commit 61ec03c966d2d1b082851c737521a1df16faa2d8 Author: Doroszlai, Attila <adorosz...@apache.org> AuthorDate: Mon Jul 29 10:46:11 2019 +0200 HDDS-1852. Fix typo in TestOmAcls Closes #1173 --- .../src/test/java/org/apache/hadoop/ozone/om/TestOmAcls.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmAcls.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmAcls.java index 138e23d..c437564 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmAcls.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmAcls.java @@ -24,7 +24,6 @@ import org.apache.hadoop.hdds.protocol.StorageType; 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 class TestOmAcls { 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 class TestOmAcls { /** * 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; } } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org