You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andy LoPresto (Jira)" <ji...@apache.org> on 2020/10/07 22:10:00 UTC
[jira] [Updated] (NIFI-7898) Unit tests fail if alternative service
is running on localhost
[ https://issues.apache.org/jira/browse/NIFI-7898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy LoPresto updated NIFI-7898:
--------------------------------
Description:
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.
was:
The unit test {{testConvertOIDCTokenToNiFiTokenShouldHandleBlankIdentityAndNoEmailClaim(org.apache.nifi.web.security.oidc.StandardOidcIdentityProviderGroovyTest}} fails if an unexpected service is running on {{localhost:8080}} 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.
> 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
>
> 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)