This is an automated email from the ASF dual-hosted git repository.
turcsanyi pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
new a3e7998139 NIFI-12105: remove unnecessary checking of compressed
content from testAdditionalNarDirectoriesSpecified test case
a3e7998139 is described below
commit a3e7998139f3c943339b05987ca568f5ff38723f
Author: Peter Gyori <[email protected]>
AuthorDate: Mon Dec 11 16:07:26 2023 +0100
NIFI-12105: remove unnecessary checking of compressed content from
testAdditionalNarDirectoriesSpecified test case
This closes #8150.
Signed-off-by: Peter Turcsanyi <[email protected]>
(cherry picked from commit 78b822c4520ff59653ffca1ca464a6919d000b03)
---
.../org/apache/nifi/processors/stateless/TestExecuteStateless.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/nifi-nar-bundles/nifi-stateless-processor-bundle/nifi-stateless-processor-tests/src/test/java/org/apache/nifi/processors/stateless/TestExecuteStateless.java
b/nifi-nar-bundles/nifi-stateless-processor-bundle/nifi-stateless-processor-tests/src/test/java/org/apache/nifi/processors/stateless/TestExecuteStateless.java
index d7f184810c..c37b626b09 100644
---
a/nifi-nar-bundles/nifi-stateless-processor-bundle/nifi-stateless-processor-tests/src/test/java/org/apache/nifi/processors/stateless/TestExecuteStateless.java
+++
b/nifi-nar-bundles/nifi-stateless-processor-bundle/nifi-stateless-processor-tests/src/test/java/org/apache/nifi/processors/stateless/TestExecuteStateless.java
@@ -29,7 +29,6 @@ import java.util.Collections;
import java.util.List;
import java.util.function.Function;
-import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -227,7 +226,6 @@ public class TestExecuteStateless {
runner.setProperty(ExecuteStateless.ADDITIONAL_LIB_DIRECTORIES,
JSLT_DIR + "," + COMPRESS_DIR);
runner.setProperty(ExecuteStateless.INPUT_PORT, "input");
runner.setProperty(ExecuteStateless.FAILURE_PORTS, "failure");
- byte[] expectedContents = new byte[] {31, -117, 8, 0, 0, 0, 0, 0, 0,
-1, 83, -14, -54, -49, -56, 83, 2, 0, 118, 63, 122, -30, 6, 0, 0, 0};
runner.enqueue(JSON_OBJECT.getBytes(), Collections.singletonMap("abc",
"xyz"));
runner.run();
@@ -235,7 +233,6 @@ public class TestExecuteStateless {
runner.assertTransferCount(ExecuteStateless.REL_OUTPUT, 1);
final List<MockFlowFile> output =
runner.getFlowFilesForRelationship(ExecuteStateless.REL_OUTPUT);
output.get(0).assertAttributeEquals("mime.type", "application/gzip");
- assertArrayEquals(output.get(0).getData(), expectedContents);
}
private void testBulletinSurfaced(final String logLevel, final boolean
shouldBeSurfaced, final Function<MockComponentLog, List<LogMessage>>
getMessageFunction) {