Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8178

Optimize Initialization of SSLContext in Unit Tests

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                exceptionfactory David Handermann
                Reporter:
                exceptionfactory David Handermann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h