Andreas Neumann created TWILL-209:
-------------------------------------
Summary: Location test should validate permissions
Key: TWILL-209
URL: https://issues.apache.org/jira/browse/TWILL-209
Project: Apache Twill
Issue Type: Improvement
Components: yarn
Affects Versions: 0.10.0
Reporter: Andreas Neumann
The HDFSLocationtest and FileContextLocationTest use MiniDFSCluster. This does
not seem to enforce permissions when creating directories. The followng test
should throw an exception due to lack of permission but it does not:
{code}
public void testPermissions() throws IOException {
// create a directory that does not permit anything
dfsCluster.getFileSystem().mkdir(new Path("/a"),
FsPermission.valueOf("----------"));
// creating a subdir should fail because even the owner has no write
permission
dfsCluster.getFileSystem().mkdir(new Path("/a/b"),
FsPermission.valueOf("----------"));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)