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

View File

@ -72,6 +72,12 @@ public void testGetFileStatusNonexistentFile() throws Throwable {
}
}
@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");