hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject hadoop git commit: HADOOP-13166. Add getFileStatus("/") test to AbstractContractGetFileStatusTest. Contributed by Steve Loughran
Date Tue, 22 Nov 2016 22:36:58 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 ed9dcdae5 -> 834e2ddba


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

(cherry picked from commit 2bf9a15e8a1ac92923b45130c3369720d4a76fe1)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/834e2ddb
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/834e2ddb
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/834e2ddb

Branch: refs/heads/branch-2.8
Commit: 834e2ddbab095247372c3e566abdef1713234b1f
Parents: ed9dcda
Author: Mingliang Liu <liuml07@apache.org>
Authored: Tue Nov 22 14:27:23 2016 -0800
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Tue Nov 22 14:35:32 2016 -0800

----------------------------------------------------------------------
 .../hadoop/fs/contract/AbstractContractGetFileStatusTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/834e2ddb/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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message