This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 32b89e0a5f NIFI-15281 Replaced Disabled with EnabledIfSystemProperty
for long-running tests (#10588)
32b89e0a5f is described below
commit 32b89e0a5f22bb8514bbb02ea05d2ea2d059edf5
Author: dan-s1 <[email protected]>
AuthorDate: Mon Dec 1 21:56:28 2025 -0500
NIFI-15281 Replaced Disabled with EnabledIfSystemProperty for long-running
tests (#10588)
Signed-off-by: David Handermann <[email protected]>
---
.../language/TestStandardPreparedQuery.java | 19 +++----------------
.../nifi/stream/io/util/TestLineDemarcator.java | 9 +++++----
.../nifi/wali/TestSequentialAccessWriteAheadLog.java | 4 ++--
.../nifi/jms/processors/ConsumeJMSManualTest.java | 4 ++--
.../PythonControllerInteractionIT.java | 3 ++-
.../nifi/json/TestInferJsonSchemaAccessStrategy.java | 8 +++++---
.../apache/nifi/json/TestJsonTreeRowRecordReader.java | 8 +++++---
.../repository/StandardProcessSessionIT.java | 7 +++++--
.../repository/TestFileSystemRepository.java | 5 +++--
.../repository/TestWriteAheadFlowFileRepository.java | 5 +++--
.../swap/TestSchemaSwapSerializerDeserializer.java | 5 +++--
.../CollisionAwareResourceProviderWorkerTest.java | 8 +++++---
12 files changed, 43 insertions(+), 42 deletions(-)
diff --git
a/nifi-commons/nifi-expression-language/src/test/java/org/apache/nifi/attribute/expression/language/TestStandardPreparedQuery.java
b/nifi-commons/nifi-expression-language/src/test/java/org/apache/nifi/attribute/expression/language/TestStandardPreparedQuery.java
index 607e3bd4b3..02a71a0f3c 100644
---
a/nifi-commons/nifi-expression-language/src/test/java/org/apache/nifi/attribute/expression/language/TestStandardPreparedQuery.java
+++
b/nifi-commons/nifi-expression-language/src/test/java/org/apache/nifi/attribute/expression/language/TestStandardPreparedQuery.java
@@ -19,8 +19,8 @@ package org.apache.nifi.attribute.expression.language;
import org.apache.nifi.parameter.Parameter;
import org.apache.nifi.parameter.ParameterDescriptor;
import org.apache.nifi.parameter.ParameterLookup;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -62,7 +62,8 @@ public class TestStandardPreparedQuery {
}
@Test
- @Disabled("Intended for manual performance testing; should not be run in
an automated environment")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended for manual performance testing; should
not be run in an automated environment")
public void test10MIterations() {
final Map<String, String> attrs = new HashMap<>();
attrs.put("xx", "world");
@@ -76,20 +77,6 @@ public class TestStandardPreparedQuery {
logger.info("{}", TimeUnit.NANOSECONDS.toMillis(nanos));
}
- @Test
- @Disabled("Takes too long")
- public void test10MIterationsWithQuery() {
- final Map<String, String> attrs = new HashMap<>();
- attrs.put("xx", "world");
-
- final long start = System.nanoTime();
- for (int i = 0; i < 10000000; i++) {
- assertEquals("world", Query.evaluateExpressions("${xx}", attrs,
ParameterLookup.EMPTY));
- }
- final long nanos = System.nanoTime() - start;
- logger.info("{}", TimeUnit.NANOSECONDS.toMillis(nanos));
- }
-
@Test
public void testSeveralSequentialExpressions() {
final Map<String, String> attributes = new HashMap<>();
diff --git
a/nifi-commons/nifi-utils/src/test/java/org/apache/nifi/stream/io/util/TestLineDemarcator.java
b/nifi-commons/nifi-utils/src/test/java/org/apache/nifi/stream/io/util/TestLineDemarcator.java
index a28d2b1e6d..adec33082a 100644
---
a/nifi-commons/nifi-utils/src/test/java/org/apache/nifi/stream/io/util/TestLineDemarcator.java
+++
b/nifi-commons/nifi-utils/src/test/java/org/apache/nifi/stream/io/util/TestLineDemarcator.java
@@ -17,8 +17,8 @@
package org.apache.nifi.stream.io.util;
import org.apache.nifi.stream.io.RepeatingInputStream;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -104,9 +104,10 @@ public class TestLineDemarcator {
}
@Test
- @Disabled("Intended only for manual testing. While this can take a while
to run, it can be very helpful for manual testing before " +
- "and after a change to the class. However, we don't want this to
run in automated tests because we have no way to compare " +
- "from one run to another, so it will only slow down automated
tests.")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for manual testing. While this can
take a while to run, it can be very helpful for manual testing before " +
+ "and after a change to the class. However, we don't want
this to run in automated tests because we have no way to compare " +
+ "from one run to another, so it will only slow down
automated tests.")
public void testPerformance() throws IOException {
final String lines =
"The\nquick\nbrown\nfox\njumped\nover\nthe\nlazy\ndog.\r\n\n";
final byte[] bytes = lines.getBytes(StandardCharsets.UTF_8);
diff --git
a/nifi-commons/nifi-write-ahead-log/src/test/java/org/apache/nifi/wali/TestSequentialAccessWriteAheadLog.java
b/nifi-commons/nifi-write-ahead-log/src/test/java/org/apache/nifi/wali/TestSequentialAccessWriteAheadLog.java
index d37677cdd3..bdfcb612d2 100644
---
a/nifi-commons/nifi-write-ahead-log/src/test/java/org/apache/nifi/wali/TestSequentialAccessWriteAheadLog.java
+++
b/nifi-commons/nifi-write-ahead-log/src/test/java/org/apache/nifi/wali/TestSequentialAccessWriteAheadLog.java
@@ -17,9 +17,9 @@
package org.apache.nifi.wali;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wali.DummyRecord;
@@ -309,7 +309,7 @@ public class TestSequentialAccessWriteAheadLog {
@Test
- @Disabled("For manual performance testing")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches =
"true", disabledReason = "For manual performance testing")
public void testUpdatePerformance() throws IOException,
InterruptedException {
final Path path = Paths.get("target/sequential-access-repo");
deleteRecursively(path.toFile());
diff --git
a/nifi-extension-bundles/nifi-jms-bundle/nifi-jms-processors/src/test/java/org/apache/nifi/jms/processors/ConsumeJMSManualTest.java
b/nifi-extension-bundles/nifi-jms-bundle/nifi-jms-processors/src/test/java/org/apache/nifi/jms/processors/ConsumeJMSManualTest.java
index c5da3b0d4d..3ed440badb 100644
---
a/nifi-extension-bundles/nifi-jms-bundle/nifi-jms-processors/src/test/java/org/apache/nifi/jms/processors/ConsumeJMSManualTest.java
+++
b/nifi-extension-bundles/nifi-jms-bundle/nifi-jms-processors/src/test/java/org/apache/nifi/jms/processors/ConsumeJMSManualTest.java
@@ -18,8 +18,8 @@ package org.apache.nifi.jms.processors;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQMessage;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.springframework.jms.connection.CachingConnectionFactory;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.core.MessageCreator;
@@ -32,7 +32,7 @@ import jakarta.jms.Session;
import jakarta.jms.StreamMessage;
import jakarta.jms.TextMessage;
-@Disabled("Used for manual testing.")
+@EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
disabledReason = "Used for manual testing.")
public class ConsumeJMSManualTest {
@Test
public void testTextMessage() {
diff --git
a/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-integration-tests/src/test/java/org.apache.nifi.py4j/PythonControllerInteractionIT.java
b/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-integration-tests/src/test/java/org.apache.nifi.py4j/PythonControllerInteractionIT.java
index 0a486450a4..10680de5e8 100644
---
a/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-integration-tests/src/test/java/org.apache.nifi.py4j/PythonControllerInteractionIT.java
+++
b/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-integration-tests/src/test/java/org.apache.nifi.py4j/PythonControllerInteractionIT.java
@@ -45,6 +45,7 @@ import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.condition.DisabledOnOs;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import java.io.File;
import java.io.FileOutputStream;
@@ -182,7 +183,7 @@ public class PythonControllerInteractionIT {
}
@Test
- @Disabled("Just for manual testing...")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches =
"true", disabledReason = "Just for manual testing...")
public void runPrettyPrintJsonManyThreads() throws IOException {
// Create a PrettyPrintJson Processor
final TestRunner runner = createFlowFileTransform(PRETTY_PRINT_JSON);
diff --git
a/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestInferJsonSchemaAccessStrategy.java
b/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestInferJsonSchemaAccessStrategy.java
index 3d9bbe15d0..ca1900fae6 100644
---
a/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestInferJsonSchemaAccessStrategy.java
+++
b/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestInferJsonSchemaAccessStrategy.java
@@ -27,8 +27,8 @@ import org.apache.nifi.serialization.record.RecordFieldType;
import org.apache.nifi.serialization.record.RecordSchema;
import org.apache.nifi.serialization.record.type.ChoiceDataType;
import org.apache.nifi.serialization.record.type.RecordDataType;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
@@ -59,7 +59,8 @@ class TestInferJsonSchemaAccessStrategy {
private final SchemaInferenceEngine<JsonNode> noTimestampInference = new
JsonSchemaInference(new TimeValueInference("yyyy-MM-dd", "HH:mm:ss",
"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"));
@Test
- @Disabled("Intended only for manual testing to determine performance
before/after modifications")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for manual testing to determine
performance before/after modifications")
void testPerformanceOfSchemaInferenceWithTimestamp() throws IOException {
final File file = new File("src/test/resources/json/prov-events.json");
final byte[] data = Files.readAllBytes(file.toPath());
@@ -88,7 +89,8 @@ class TestInferJsonSchemaAccessStrategy {
}
@Test
- @Disabled("Intended only for manual testing to determine performance
before/after modifications")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for manual testing to determine
performance before/after modifications")
void testPerformanceOfSchemaInferenceWithoutTimestamp() throws IOException
{
final File file = new File("src/test/resources/json/prov-events.json");
final byte[] data = Files.readAllBytes(file.toPath());
diff --git
a/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestJsonTreeRowRecordReader.java
b/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestJsonTreeRowRecordReader.java
index 080c226f4b..6dc012f0c7 100644
---
a/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestJsonTreeRowRecordReader.java
+++
b/nifi-extension-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/test/java/org/apache/nifi/json/TestJsonTreeRowRecordReader.java
@@ -35,8 +35,8 @@ import org.apache.nifi.serialization.record.RecordFieldType;
import org.apache.nifi.serialization.record.RecordSchema;
import org.apache.nifi.serialization.record.type.ChoiceDataType;
import org.apache.nifi.util.EqualsWrapper;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
@@ -142,7 +142,8 @@ class TestJsonTreeRowRecordReader {
}
@Test
- @Disabled("Intended only for manual testing to determine performance
before/after modifications")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for manual testing to determine
performance before/after modifications")
void testPerformanceOnLocalFile() throws Exception {
final RecordSchema schema = new
SimpleRecordSchema(Collections.emptyList());
@@ -169,7 +170,8 @@ class TestJsonTreeRowRecordReader {
}
@Test
- @Disabled("Intended only for manual testing to determine performance
before/after modifications")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for manual testing to determine
performance before/after modifications")
void testPerformanceOnIndividualMessages() throws Exception {
final RecordSchema schema = new
SimpleRecordSchema(Collections.emptyList());
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/StandardProcessSessionIT.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/StandardProcessSessionIT.java
index 8510da238a..2ed9e0be14 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/StandardProcessSessionIT.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/StandardProcessSessionIT.java
@@ -63,6 +63,7 @@ import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
@@ -705,7 +706,8 @@ public class StandardProcessSessionIT {
@Test
- @Disabled("Test should be run manually only - not for automated builds/CI
env")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Test should be run manually only - not for
automated builds/CI env")
public void testUpdateFlowFileRepoFailsOnSessionCommit() throws
IOException {
final ContentClaim contentClaim =
contentRepo.create("original".getBytes());
@@ -2572,7 +2574,8 @@ public class StandardProcessSessionIT {
}
@Test
- @Disabled("Intended for manual performance testing; should not be run in
an automated environment")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended for manual performance testing; should
not be run in an automated environment")
public void testCloneThenWriteCountsClaimReferencesProperly() throws
IOException {
final ContentClaim originalClaim = contentRepo.create(false);
try (final OutputStream out = contentRepo.write(originalClaim)) {
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
index 66396f8f1d..41b0a33a80 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java
@@ -28,10 +28,10 @@ import org.apache.nifi.stream.io.StreamUtils;
import org.apache.nifi.util.NiFiProperties;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.condition.DisabledOnOs;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.condition.OS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -97,7 +97,8 @@ public class TestFileSystemRepository {
}
@Test
- @Disabled("Intended for manual testing only, in order to judge changes to
performance")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended for manual testing only, in order to
judge changes to performance")
public void testWritePerformance() throws IOException {
final long bytesToWrite = 1_000_000_000L;
final int contentSize = 100;
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestWriteAheadFlowFileRepository.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestWriteAheadFlowFileRepository.java
index 94544e284a..ff652d9539 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestWriteAheadFlowFileRepository.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/repository/TestWriteAheadFlowFileRepository.java
@@ -47,8 +47,8 @@ import org.apache.nifi.util.file.FileUtils;
import org.apache.nifi.wali.SequentialAccessWriteAheadLog;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.mockito.Mockito;
import org.mockito.stubbing.Answer;
import org.slf4j.Logger;
@@ -104,7 +104,8 @@ public class TestWriteAheadFlowFileRepository {
}
@Test
- @Disabled("Intended only for local performance testing before/after making
changes")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "Intended only for local performance testing
before/after making changes")
public void testUpdatePerformance() throws IOException,
InterruptedException {
final FlowFileQueue queue = new FlowFileQueue() {
private LoadBalanceCompression compression =
LoadBalanceCompression.DO_NOT_COMPRESS;
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/swap/TestSchemaSwapSerializerDeserializer.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/swap/TestSchemaSwapSerializerDeserializer.java
index 9b47fcd429..fd33f1714f 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/swap/TestSchemaSwapSerializerDeserializer.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/controller/swap/TestSchemaSwapSerializerDeserializer.java
@@ -28,8 +28,8 @@ import
org.apache.nifi.controller.repository.claim.StandardResourceClaimManager;
import org.apache.nifi.flowfile.FlowFile;
import org.apache.nifi.stream.io.NullOutputStream;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.mockito.Mockito;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -170,7 +170,8 @@ public class TestSchemaSwapSerializerDeserializer {
}
@Test
- @Disabled("For manual testing, in order to ensure that changes do not
negatively impact performance")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "For manual testing, in order to ensure that
changes do not negatively impact performance")
public void testWritePerformance() throws IOException,
InterruptedException {
final ResourceClaimManager resourceClaimManager = new
StandardResourceClaimManager();
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-framework-external-resource-utils/src/test/java/org/apache/nifi/flow/resource/CollisionAwareResourceProviderWorkerTest.java
b/nifi-framework-bundle/nifi-framework/nifi-framework-external-resource-utils/src/test/java/org/apache/nifi/flow/resource/CollisionAwareResourceProviderWorkerTest.java
index ec10352049..df90737fcb 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-framework-external-resource-utils/src/test/java/org/apache/nifi/flow/resource/CollisionAwareResourceProviderWorkerTest.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-framework-external-resource-utils/src/test/java/org/apache/nifi/flow/resource/CollisionAwareResourceProviderWorkerTest.java
@@ -20,8 +20,8 @@ import org.apache.nifi.util.FileUtils;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.Mockito;
@@ -184,7 +184,8 @@ public class CollisionAwareResourceProviderWorkerTest {
}
@Test
- @Disabled("This test needs human interaction and should not part of a
build")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "This test needs human interaction and should not
part of a build")
public void testExistingFileCannotBeDeleted() throws InterruptedException,
IOException {
setActions(Action.LIST, Action.FETCH);
ensureTargetDirectoryExists(true);
@@ -201,7 +202,8 @@ public class CollisionAwareResourceProviderWorkerTest {
}
@Test
- @Disabled("This test needs human interaction and should not part of a
build")
+ @EnabledIfSystemProperty(named = "nifi.test.performance", matches = "true",
+ disabledReason = "This test needs human interaction and should not
part of a build")
public void testExistingTemporaryFileCannotBeDeleted() throws
InterruptedException, IOException {
setActions(Action.LIST, Action.FETCH);
ensureTargetDirectoryExists(true);