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

Matt Gilman commented on NIFI-454:
----------------------------------

[~markap14] Thoughts on reverting the changes to the PropertyDescriptor and 
simply overriding the getSupportPropertyDescriptors in your unit test to 
replacement the port property with one that will accept a port of 0. That way 
the end user will not be able to ever select 0 (random port) at runtime.

> Distributed cache server unit tests should use random ports
> -----------------------------------------------------------
>
>                 Key: NIFI-454
>                 URL: https://issues.apache.org/jira/browse/NIFI-454
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions, Tools and Build
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>              Labels: beginner
>             Fix For: 0.2.0
>
>         Attachments: 
> 0001-NIFI-454-Use-random-ports-instead-of-specific-ports-.patch
>
>
> the distributed-map-cache-server (and maybe the distributed-set-cache-server) 
> have unit tests that start the servers but don't set the port. The tests 
> should be updated to set the port to 0 so that it will use a random port. 
> This means that the service implementation will also need to expose the port 
> that it's listening on so that the unit tests can know the port.



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

Reply via email to