You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/09/24 13:19:20 UTC
[commons-vfs] 02/02: Disable HDFS tests on Windows
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 1165a1db980b32919270c3b8113f0f19ca1faddb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Sep 24 09:19:14 2023 -0400
Disable HDFS tests on Windows
---
.../org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java | 3 +++
.../apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java | 3 +++
2 files changed, 6 insertions(+)
diff --git a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
index 7edf5b21..ab49dd95 100644
--- a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
+++ b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTest.java
@@ -47,6 +47,8 @@ import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledOnOs;
+import org.junit.jupiter.api.condition.OS;
/**
* This test class uses the Hadoop MiniDFSCluster class to create an embedded Hadoop cluster.
@@ -54,6 +56,7 @@ import org.junit.jupiter.api.Test;
* This will only work on systems that Hadoop supports.
*/
@SuppressWarnings("resource")
+@DisabledOnOs(value = OS.WINDOWS)
public class HdfsFileProviderTest {
// Turn off the MiniDFSCluster logging
diff --git a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
index 3468d234..fb68c411 100644
--- a/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
+++ b/commons-vfs2-hdfs/src/test/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileProviderTestCase.java
@@ -38,6 +38,8 @@ import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.condition.DisabledOnOs;
+import org.junit.jupiter.api.condition.OS;
import junit.framework.Test;
@@ -46,6 +48,7 @@ import junit.framework.Test;
* <P>
* This will only work on systems that Hadoop supports.
*/
+@DisabledOnOs(value = OS.WINDOWS)
public class HdfsFileProviderTestCase extends AbstractProviderTestConfig {
public static class HdfsProviderTestSuite extends ProviderTestSuite {