Adela Jaworowska-Nowak created NIFI-15297:
---------------------------------------------
Summary: Enable 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
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:
testRunner.setIsConfiguredForClustering(true);
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)