From d2953c6cad54ae01c32aba1d19327a9f585fffb3 Mon Sep 17 00:00:00 2001 From: Mark Payne Date: Fri, 6 Mar 2015 13:43:01 -0500 Subject: [PATCH] NIFI-238: Ignored unit tests that don't work on Windows --- .../java/org/apache/nifi/processors/kite/TestGetSchema.java | 6 +++++- .../nifi/processors/kite/TestKiteProcessorsCluster.java | 4 ++++ .../nifi/processors/kite/TestKiteStorageProcessor.java | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestGetSchema.java b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestGetSchema.java index c35e87c465..2dd51d32a7 100644 --- a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestGetSchema.java +++ b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestGetSchema.java @@ -23,9 +23,11 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.charset.Charset; + import org.apache.avro.Schema; import org.apache.avro.SchemaBuilder; import org.junit.Assert; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -47,6 +49,7 @@ public class TestGetSchema { public TemporaryFolder temp = new TemporaryFolder(); @Test + @Ignore("Does not work on windows") public void testSchemaFromFileSystem() throws IOException { File schemaFile = temp.newFile("schema.avsc"); FileOutputStream out = new FileOutputStream(schemaFile); @@ -60,8 +63,9 @@ public class TestGetSchema { } @Test + @Ignore("Does not work on windows") public void testSchemaFromKiteURIs() throws IOException { - String location = temp.newFolder("ns", "temp").toURI().toString(); + String location = temp.newFolder("ns", "temp").toString(); String datasetUri = "dataset:" + location; DatasetDescriptor descriptor = new DatasetDescriptor.Builder() .schema(SCHEMA) diff --git a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteProcessorsCluster.java b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteProcessorsCluster.java index a191e5d134..00a98dbb44 100644 --- a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteProcessorsCluster.java +++ b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteProcessorsCluster.java @@ -20,10 +20,12 @@ package org.apache.nifi.processors.kite; import com.google.common.collect.Lists; + import java.io.IOException; import java.io.OutputStream; import java.nio.charset.Charset; import java.util.List; + import org.apache.avro.Schema; import org.apache.avro.SchemaBuilder; import org.apache.avro.generic.GenericData.Record; @@ -34,6 +36,7 @@ import org.apache.nifi.util.TestRunners; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import org.kitesdk.data.Dataset; import org.kitesdk.data.DatasetDescriptor; @@ -48,6 +51,7 @@ import static org.apache.nifi.processors.kite.TestUtil.bytesFor; import static org.apache.nifi.processors.kite.TestUtil.streamFor; import static org.apache.nifi.processors.kite.TestUtil.user; +@Ignore("Does not work on windows") public class TestKiteProcessorsCluster { public static MiniCluster cluster = null; diff --git a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteStorageProcessor.java b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteStorageProcessor.java index 714c3d2131..5063f5d81c 100644 --- a/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteStorageProcessor.java +++ b/nifi/nifi-nar-bundles/nifi-kite-bundle/nifi-kite-processors/src/test/java/org/apache/nifi/processors/kite/TestKiteStorageProcessor.java @@ -20,8 +20,10 @@ package org.apache.nifi.processors.kite; import com.google.common.collect.Lists; + import java.io.IOException; import java.util.List; + import org.apache.avro.Schema; import org.apache.avro.SchemaBuilder; import org.apache.avro.generic.GenericData.Record; @@ -30,6 +32,7 @@ import org.apache.nifi.util.TestRunners; import org.junit.After; import org.junit.Assert; import org.junit.Before; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -41,6 +44,7 @@ import static org.apache.nifi.processors.kite.TestUtil.invalidStreamFor; import static org.apache.nifi.processors.kite.TestUtil.streamFor; import static org.apache.nifi.processors.kite.TestUtil.user; +@Ignore("Does not work on windows") public class TestKiteStorageProcessor { @Rule