MikeThomsen commented on a change in pull request #4570:
URL: https://github.com/apache/nifi/pull/4570#discussion_r520601275
##########
File path:
nifi-commons/nifi-record-path/src/test/java/org/apache/nifi/record/path/TestRecordPath.java
##########
@@ -1644,6 +1646,48 @@ public void testPadRight() {
assertEquals("MyStringfewfewfewfew",
RecordPath.compile("padRight(/someString, 20,
\"few\")").evaluate(record).getSelectedFields().findFirst().get().getValue());
}
+ @Test
+ public void testUuidV5() {
+ final List<RecordField> fields = new ArrayList<>();
+ fields.add(new RecordField("input",
RecordFieldType.STRING.getDataType()));
+ fields.add(new RecordField("name",
RecordFieldType.STRING.getDataType(), true));
+ final RecordSchema schema = new SimpleRecordSchema(fields);
+ final UUID name =
UUID.fromString("67eb2232-f06e-406a-b934-e17f5fa31ae4");
+ final String input = "testing NiFi functionality";
+ final Map<String, Object> values = new HashMap<>();
+ values.put("input", input);
+ values.put("name", name.toString());
Review comment:
I changed `name` to `namespace`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]