[ 
https://issues.apache.org/jira/browse/NIFI-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adela Jaworowska-Nowak updated NIFI-15297:
------------------------------------------
    Summary: Make MockControllerServiceInitializationContext to get 
isConfiguredForClustering flag from MockProcessContext  (was: Enable 
MockControllerServiceInitializationContext to get isConfiguredForClustering 
flag from MockProcessContext)

> Make MockControllerServiceInitializationContext to get 
> isConfiguredForClustering flag from MockProcessContext
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15297
>                 URL: https://issues.apache.org/jira/browse/NIFI-15297
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Adela Jaworowska-Nowak
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Right now when the _MockControllerServiceInitializationContext_ is used in 
> tests it calls the default implementation of _isConfiguredForClustering()_ 
> method from _NodeTypeProvider_ interface which always returns false.
> Because of that it is not possible to simulate clustered environment when 
> testing Services. 
> For processors it is possible to do:  
> {code:java}
> testRunner.setIsConfiguredForClustering(true);{code}
> I think it would be good improvement to set the _isConfiguredForClustering_
> flag for _MockControllerServiceInitializationContext_ with the the value from 
> _MockProcessContext_ when adding controller service. 
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to