You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2021/01/27 23:51:00 UTC
[jira] [Updated] (NIFI-8178) Optimize Initialization of SSLContext
in Unit Tests
[ https://issues.apache.org/jira/browse/NIFI-8178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Witt updated NIFI-8178:
---------------------------
Fix Version/s: 1.13.0
> 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)