HADOOP-13166. Add getFileStatus("/") test to AbstractContractGetFileStatusTest. Contributed by Steve Loughran
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2bf9a15e Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2bf9a15e Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2bf9a15e Branch: refs/heads/HADOOP-13345 Commit: 2bf9a15e8a1ac92923b45130c3369720d4a76fe1 Parents: af791b7 Author: Mingliang Liu <lium...@apache.org> Authored: Tue Nov 22 14:27:23 2016 -0800 Committer: Mingliang Liu <lium...@apache.org> Committed: Tue Nov 22 14:27:23 2016 -0800 ---------------------------------------------------------------------- .../hadoop/fs/contract/AbstractContractGetFileStatusTest.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/2bf9a15e/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java index c68c193..269e35e 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java @@ -73,6 +73,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"); Path subfolder = createDirWithEmptySubFolder(); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org