NIFI-238: Ignored unit tests that don't work on Windows

This commit is contained in:
Mark Payne 2015-03-06 13:43:01 -05:00
parent 6488f3ca3d
commit d2953c6cad
3 changed files with 13 additions and 1 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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