[ 
https://issues.apache.org/jira/browse/NIFI-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266393#comment-15266393
 ] 

Pierre Villard commented on NIFI-1832:
--------------------------------------

In fact I just realized that it won't work since, on GUI, properties with a set 
of allowable values are represented using a panel list (it is not possible to 
manually set a value). So I guess that if we want a property with expression 
language enabled, it must be a classic property or use the first solution I 
mentioned.

> Testing EL properties with AllowableValues
> ------------------------------------------
>
>                 Key: NIFI-1832
>                 URL: https://issues.apache.org/jira/browse/NIFI-1832
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 0.6.1
>         Environment: Testing
>            Reporter: Simon Elliston Ball
>            Assignee: Pierre Villard
>            Priority: Minor
>
> I’ve come across an interesting problem with MockFlowFile while testing a 
> custom processor. My property has an AllowableValue list, and supports 
> expression language. The test uses:
> runner.setProperty(PROPERTY_REF, "${attribute.name}”);
> However, the test fails on validation of in the MockFlowFile with the 
> unevaluated version of the EL invalid against the allowed values list. 
> 'Property' validated against '${attribute.name}' is invalid because Given 
> value is not found in allowed set ...



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

Reply via email to