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

Unit tests fail if alternative service is running on localhost

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Issue Links

          Activity

            People

              alopresto Andy LoPresto
              alopresto Andy LoPresto
              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 - 50m
                  50m