mirror of https://github.com/apache/nifi.git
NIFI-657: Ignored Unit tests and removed maven plugin for embedding mongodb, as they fail in certain environments
This commit is contained in:
parent
9fbd88f034
commit
fcadaa894b
|
@ -64,35 +64,4 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.joelittlejohn.embedmongo</groupId>
|
|
||||||
<artifactId>embedmongo-maven-plugin</artifactId>
|
|
||||||
<version>0.1.12</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>start</id>
|
|
||||||
<goals>
|
|
||||||
<goal>start</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>test-compile</phase>
|
|
||||||
<configuration>
|
|
||||||
<databaseDirectory>${project.build.directory}/embedmongo/db</databaseDirectory>
|
|
||||||
<logging>file</logging>
|
|
||||||
<logFile>${project.build.directory}/embedmongo.log</logFile>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>stop</id>
|
|
||||||
<goals>
|
|
||||||
<goal>stop</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>prepare-package</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -33,6 +33,7 @@ import org.bson.Document;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
@ -40,6 +41,7 @@ import com.mongodb.MongoClient;
|
||||||
import com.mongodb.MongoClientURI;
|
import com.mongodb.MongoClientURI;
|
||||||
import com.mongodb.client.MongoCollection;
|
import com.mongodb.client.MongoCollection;
|
||||||
|
|
||||||
|
@Ignore("Integration tests that cause failures in some environments. Require that they be run from Maven to run the embedded mongo maven plugin. Maven Plugin also fails in my CentOS 7 environment.")
|
||||||
public class GetMongoTest {
|
public class GetMongoTest {
|
||||||
private static final String MONGO_URI = "mongodb://localhost";
|
private static final String MONGO_URI = "mongodb://localhost";
|
||||||
private static final String DB_NAME = GetMongoTest.class.getSimpleName().toLowerCase();
|
private static final String DB_NAME = GetMongoTest.class.getSimpleName().toLowerCase();
|
||||||
|
|
|
@ -34,6 +34,7 @@ import org.bson.Document;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
@ -41,6 +42,7 @@ import com.mongodb.MongoClient;
|
||||||
import com.mongodb.MongoClientURI;
|
import com.mongodb.MongoClientURI;
|
||||||
import com.mongodb.client.MongoCollection;
|
import com.mongodb.client.MongoCollection;
|
||||||
|
|
||||||
|
@Ignore("Integration tests that cause failures in some environments. Require that they be run from Maven to run the embedded mongo maven plugin. Maven Plugin also fails in my CentOS 7 environment.")
|
||||||
public class PutMongoTest {
|
public class PutMongoTest {
|
||||||
private static final String MONGO_URI = "mongodb://localhost";
|
private static final String MONGO_URI = "mongodb://localhost";
|
||||||
private static final String DATABASE_NAME = PutMongoTest.class.getSimpleName().toLowerCase();
|
private static final String DATABASE_NAME = PutMongoTest.class.getSimpleName().toLowerCase();
|
||||||
|
|
Loading…
Reference in New Issue