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/28 00:50:00 UTC

[jira] [Resolved] (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 resolved NIFI-8178.
----------------------------
    Resolution: Fixed

> 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: 0.5h
>  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)