HADOOP-13166. Add getFileStatus("/") test to AbstractContractGetFileStatusTest. Contributed by Steve Loughran

This commit is contained in:
Mingliang Liu 2016-11-22 14:27:23 -08:00
parent af791b774b
commit 2bf9a15e8a
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ public abstract class AbstractContractGetFileStatusTest extends
}
}
@Test
public void testGetFileStatusRoot() throws Throwable {
ContractTestUtils.assertIsDirectory(
getFileSystem().getFileStatus(new Path("/")));
}
@Test
public void testListStatusEmptyDirectory() throws IOException {
describe("List status on an empty directory");