You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2021/01/27 18:11:00 UTC

[jira] [Created] (NIFI-8178) Optimize Initialization of SSLContext in Unit Tests

David Handermann created NIFI-8178:
--------------------------------------

             Summary: 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


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)