[ https://issues.apache.org/jira/browse/NIFI-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15438340#comment-15438340 ]
ASF GitHub Bot commented on NIFI-2618: -------------------------------------- GitHub user alopresto opened a pull request: https://github.com/apache/nifi/pull/955 NIFI-2618 Added logic to unit test to handle default TLS version for … …Java <= 7. Maven uses `JAVA_HOME` to detect the Java version, so just using `jenv` to change the local Java version won't affect Maven. To do this, use `jenv exec mvn ...`. ```bash hw12203:...rkspace/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors (NIFI-2618) alopresto 🔒 472s @ 19:10:14 $ jenv exec mvn clean test -Dtest=TestPostHTTPGroovy#testDefaultShouldPreferTLSv1_2 ... [INFO] --- maven-surefire-plugin:2.18:test (default-test) @ nifi-standard-processors --- [INFO] Surefire report directory: /Users/alopresto/Workspace/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/target/surefire-reports [INFO] Using configured provider org.apache.maven.surefire.junit4.JUnit4Provider ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.nifi.processors.standard.TestPostHTTPGroovy Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.529 sec - in org.apache.nifi.processors.standard.TestPostHTTPGroovy Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.815 s [INFO] Finished at: 2016-08-25T19:10:39-07:00 [INFO] Final Memory: 32M/1238M [INFO] ------------------------------------------------------------------------ ``` The log output is: ``` [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - System Java Version: 1.7.0_79 [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Implementation version: 1.7.0_79 [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Specification version: 1.7 [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Java 7 or below; default TLS version is TLSv1 [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Created server with supported protocols: [TLSv1, TLSv1.1, TLSv1.2] [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.11.v20150529 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6f580ca{/,file:/Users/alopresto/Workspace/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestPostHTTP/,AVAILABLE} [main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@203ddacf{SSL-http/1.1}{localhost:8456} [main] INFO org.eclipse.jetty.server.Server - Started @2645ms [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Enabled protocols: [TLSv1] [main] INFO org.apache.nifi.processors.standard.TestPostHTTPGroovy - Selected protocol: TLSv1 ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/alopresto/nifi NIFI-2618 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/955.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #955 ---- ---- > TestPostHTTPGroovy test in 0.x branch fails using Java 7 > -------------------------------------------------------- > > Key: NIFI-2618 > URL: https://issues.apache.org/jira/browse/NIFI-2618 > Project: Apache NiFi > Issue Type: Task > Components: Core Framework > Affects Versions: 0.7.0 > Reporter: Michael Moser > Assignee: Joe Skora > Priority: Trivial > > The TestPostHTTPGroovy unit test testDefaultShouldPreferTLSv1_2 fails on the > 0.x branch when using Java 7 to build. The default TLS in Java 7 is TLSv1. -- This message was sent by Atlassian JIRA (v6.3.4#6332)