Skip to content

Commit

Permalink
NIFI-12959: Renamed test processor to accurately represent what it does
Browse files Browse the repository at this point in the history
  • Loading branch information
markap14 committed Apr 2, 2024
1 parent 7c206fe commit 4957cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from nifiapi.flowfiletransform import FlowFileTransform, FlowFileTransformResult


# A simple processor that demonstrates the ability to import and use a third-party library that is not defined as a dependency
# but that is bundled with the nar file. This processor uses the bech32 library to return the bech32.CHARSET value.
class WriteJson5VersionBundledDependency(FlowFileTransform):
class Java:
implements = ['org.apache.nifi.python.processor.FlowFileTransform']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testRunProcessorWithBundledDependencies() throws IOException, NiFiCl

// Create instance of the WriteNumpyVersionBundledDependency processor, and connect a GenerateFlowFile to it
final ProcessorEntity generate = getClientUtil().createProcessor("GenerateFlowFile");
ProcessorEntity writeVersion = getClientUtil().createPythonProcessor("WriteJson5VersionBundledDependency");
ProcessorEntity writeVersion = getClientUtil().createPythonProcessor("WriteBech32Charset");
writeVersion = getClientUtil().setAutoTerminatedRelationships(writeVersion, "failure");
final ConnectionEntity generateToWriteVersion = getClientUtil().createConnection(generate, writeVersion, "success");

Expand Down

0 comments on commit 4957cf9

Please sign in to comment.