[
https://issues.apache.org/jira/browse/NIFI-8178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273223#comment-17273223
]
ASF subversion and git services commented on NIFI-8178:
-------------------------------------------------------
Commit 11e9ff377333784974fa55f41483c4281d80da50 in nifi's branch
refs/heads/main from exceptionfactory
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=11e9ff3 ]
NIFI-8178 This closes #4787. Replaced StandardSSLContextService in unit tests
with SslContextUtils
- Removed references to StandardSSLContextService from nifi-standard-processors
- Removed TestGetHTTPGroovy and TestPostHTTPGroovy since these are testing
deprecated processors
- Optimized HandleHttpRequest, GetHTTP, PostHTTP to use
SSLContextService.createContext()
NIFI-8178 Changed TestGetHTTP to ITGetHTTP since GetHTTP is deprecated
NIFI-8178 Changed TestPostHTTP to ITPostHTTP since PostHTTP is deprecated
Signed-off-by: Joe Witt <[email protected]>
> Optimize Initialization of SSLContext in Unit Tests
> ---------------------------------------------------
>
> Key: NIFI-8178
> URL: https://issues.apache.org/jira/browse/NIFI-8178
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Tools and Build
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
> Labels: TLS, github-actions, security
> Fix For: 1.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Multiple unit tests use the {{StandardSSLContextService}} implementation
> class in order to support TLS communication. As a result of this approach,
> each test method creates and initializes a new instance of {{SSLContext}},
> which causes poor performance and intermittent timeouts.
> Following the changes implemented in NIFI-8171, other unit tests should be
> modified to initialize an {{SSLContext}} in a method annotated with
> {{@BeforeClass}} and provide that {{SSLContext}} using a mock of the
> {{SSLContextService}} interface.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)