You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Andrew Grande (JIRA)" <ji...@apache.org> on 2016/06/06 19:43:21 UTC

[jira] [Created] (NIFI-1977) Property descriptors without explicit validators are not recognized

Andrew Grande created NIFI-1977:
-----------------------------------

             Summary: Property descriptors without explicit validators are not recognized
                 Key: NIFI-1977
                 URL: https://issues.apache.org/jira/browse/NIFI-1977
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 0.6.1
            Reporter: Andrew Grande


Looks like a bug in a testing framework.

I have a simple test case like this one: https://github.com/aperepel/nifi-csv-bundle/blob/master/nifi-csv-processors/src/test/java/org/apache/nifi/processors/csv/ParseCSVRecordTest.java#L113

When a property is declared without an explicit validator, the test runner fails complaining that Custom Header is not a supported property (yes, I've added it to the descriptors list).

{code:java}
public static final PropertyDescriptor PROP_CUSTOM_HEADER = new PropertyDescriptor.Builder()
.name("Custom Header")
.description("Use this header (delimited according to set rules) instead of auto-discovering it from schema")
.required(false)                                                                            .expressionLanguageSupported(true)
.build();
{code}

The intent here is to not have a validator declared, but rather implement more complex logic in the customValidate() callback, but the test never gets to that point.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)