[
https://issues.apache.org/jira/browse/NIFI-15297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044230#comment-18044230
]
ASF subversion and git services commented on NIFI-15297:
--------------------------------------------------------
Commit eeec3c4f24222c9dae128c614261604ba92d3205 in nifi's branch
refs/heads/NIFI-15318-1 from Adela Jaworowska-Nowak
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=eeec3c4f24 ]
NIFI-15297 Support setting configuredForClustering in mock contexts
This closes #10615
Signed-off-by: David Handermann <[email protected]>
(cherry picked from commit 40b343ff0876b18f0e66cd701c8db54814aca37e)
> Make MockControllerServiceInitializationContext 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
> Assignee: Adela Jaworowska-Nowak
> Priority: Major
> Fix For: 2.8.0, 2.7.1
>
> Time Spent: 40m
> 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 value from
> _MockProcessContext_ when adding controller service.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)