nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marka...@apache.org
Subject [2/3] incubator-nifi git commit: NIFI-657: Ignored Unit tests and removed maven plugin for embedding mongodb, as they fail in certain environments
Date Thu, 04 Jun 2015 17:09:32 GMT
NIFI-657: Ignored Unit tests and removed maven plugin for embedding mongodb, as they fail in
certain environments


Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/fcadaa89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/fcadaa89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/fcadaa89

Branch: refs/heads/develop
Commit: fcadaa894b39318d11fa6dffa7846d87c9a50d8c
Parents: 9fbd88f
Author: Mark Payne <markap14@hotmail.com>
Authored: Thu Jun 4 13:01:23 2015 -0400
Committer: Mark Payne <markap14@hotmail.com>
Committed: Thu Jun 4 13:01:23 2015 -0400

----------------------------------------------------------------------
 .../nifi-mongodb-processors/pom.xml             | 31 --------------------
 .../nifi/processors/mongodb/GetMongoTest.java   |  4 ++-
 .../nifi/processors/mongodb/PutMongoTest.java   |  8 +++--
 3 files changed, 8 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fcadaa89/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml
index db1c498..020f4dc 100644
--- a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml
+++ b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/pom.xml
@@ -64,35 +64,4 @@
             <scope>test</scope>
         </dependency>
     </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>

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fcadaa89/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoTest.java
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoTest.java
b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoTest.java
index 53f47f2..810fc4d 100644
--- a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoTest.java
+++ b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/GetMongoTest.java
@@ -33,6 +33,7 @@ import org.bson.Document;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import com.google.common.collect.Lists;
@@ -40,6 +41,7 @@ import com.mongodb.MongoClient;
 import com.mongodb.MongoClientURI;
 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 {
     private static final String MONGO_URI = "mongodb://localhost";
     private static final String DB_NAME = GetMongoTest.class.getSimpleName().toLowerCase();
@@ -49,7 +51,7 @@ public class GetMongoTest {
         new Document("_id", "doc_1").append("a", 1).append("b", 2).append("c", 3),
         new Document("_id", "doc_2").append("a", 1).append("b", 2).append("c", 4),
         new Document("_id", "doc_3").append("a", 1).append("b", 3)
-    );
+        );
 
     private TestRunner runner;
     private MongoClient mongoClient;

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fcadaa89/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoTest.java
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoTest.java
b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoTest.java
index d1ba027..6f22976 100644
--- a/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoTest.java
+++ b/nifi/nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoTest.java
@@ -34,6 +34,7 @@ import org.bson.Document;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import com.google.common.collect.Lists;
@@ -41,15 +42,16 @@ import com.mongodb.MongoClient;
 import com.mongodb.MongoClientURI;
 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 {
     private static final String MONGO_URI = "mongodb://localhost";
     private static final String DATABASE_NAME = PutMongoTest.class.getSimpleName().toLowerCase();
     private static final String COLLECTION_NAME = "test";
 
     private static final List<Document> DOCUMENTS = Lists.newArrayList(
-            new Document("_id", "doc_1").append("a", 1).append("b", 2).append("c", 3),
-            new Document("_id", "doc_2").append("a", 1).append("b", 2).append("c", 4),
-            new Document("_id", "doc_3").append("a", 1).append("b", 3)
+        new Document("_id", "doc_1").append("a", 1).append("b", 2).append("c", 3),
+        new Document("_id", "doc_2").append("a", 1).append("b", 2).append("c", 4),
+        new Document("_id", "doc_3").append("a", 1).append("b", 3)
         );
 
     private TestRunner runner;


Mime
View raw message