[
https://issues.apache.org/jira/browse/NIFI-7898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210189#comment-17210189
]
ASF subversion and git services commented on NIFI-7898:
-------------------------------------------------------
Commit 82d3fd6cd628a6045b4fb87007190abd7ba8dbe5 in nifi's branch
refs/heads/main from Andy LoPresto
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=82d3fd6 ]
NIFI-7898 Fixed unit test which failed with simultaneous services running on
localhost:80.
> Unit tests fail if alternative service is running on localhost
> --------------------------------------------------------------
>
> Key: NIFI-7898
> URL: https://issues.apache.org/jira/browse/NIFI-7898
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework, Tools and Build
> Affects Versions: 1.12.1
> Reporter: Andy LoPresto
> Assignee: Andy LoPresto
> Priority: Major
> Labels: docker, exception, security, unit-test
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The unit test
> {{testConvertOIDCTokenToNiFiTokenShouldHandleBlankIdentityAndNoEmailClaim(org.apache.nifi.web.security.oidc.StandardOidcIdentityProviderGroovyTest}}
> fails if an unexpected service is running on {{localhost:80}} which responds
> to an HTTP request but does not support TLS because the expected exception is
> {{java.net.ConnectException}} but in this scenario the service (e.g. a Docker
> container) causes {{javax.net.ssl.SSLHandshakeException: Remote host
> terminated the handshake}}.
> The unit test should be updated to be more accepting of reasonable
> exceptions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)