From 3cdd3f60f60914eb92fef95884946ffa2ebcd07e Mon Sep 17 00:00:00 2001 From: Mike Thomsen Date: Thu, 8 Mar 2018 14:46:25 -0500 Subject: [PATCH] NIFI-4949 Converted nifi-mongodb-services' unit tests into integration tests so that the @Ignore annotation doesn't have to be removed to make them run. Signed-off-by: Pierre Villard This closes #2525. --- ...ControllerService.java => MongoDBControllerServiceIT.java} | 4 +--- ...tMongoDBLookupService.java => MongoDBLookupServiceIT.java} | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) rename nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/{TestMongoDBControllerService.java => MongoDBControllerServiceIT.java} (97%) rename nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/{TestMongoDBLookupService.java => MongoDBLookupServiceIT.java} (97%) diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBControllerService.java b/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java similarity index 97% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBControllerService.java rename to nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java index a4d8239536..33a173c162 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBControllerService.java +++ b/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBControllerServiceIT.java @@ -24,7 +24,6 @@ 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 java.util.ArrayList; @@ -35,8 +34,7 @@ import java.util.Map; import java.util.Random; import java.util.UUID; -@Ignore("This is an integration test and requires a copy of MongoDB running on localhost") -public class TestMongoDBControllerService { +public class MongoDBControllerServiceIT { private static final String DB_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis()); private static final String COL_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis()); diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBLookupService.java b/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java similarity index 97% rename from nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBLookupService.java rename to nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java index b2b1495a01..dcb3fb1dbe 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/TestMongoDBLookupService.java +++ b/nifi-nar-bundles/nifi-standard-services/nifi-mongodb-services-bundle/nifi-mongodb-services/src/test/java/org/apache/nifi/mongodb/MongoDBLookupServiceIT.java @@ -25,7 +25,6 @@ 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 java.util.Calendar; @@ -33,8 +32,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Optional; -@Ignore("This is an integration test and requires a copy of MongoDB running on localhost") -public class TestMongoDBLookupService { +public class MongoDBLookupServiceIT { private static final String DB_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis()); private static final String COL_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis());