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

StandardOidcIdentityProviderGroovyTest hits localhost:443

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:
      None

      Description

      The following test tries to contact https://localhost:443 and fails if something is actually running on that port. It should be changed to an Integration Test instead.

      Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.867 sec <<< FAILURE! - in org.apache.nifi.registry.web.security.authentication.oidc.StandardOidcIdentityProviderGroovyTest
      testConvertOIDCTokenToNiFiTokenShouldHandleBlankIdentityAndNoEmailClaim(org.apache.nifi.registry.web.security.authentication.oidc.StandardOidcIdentityProviderGroovyTest)  Time elapsed: 0.926 sec  <<< FAILURE!
      java.lang.AssertionError: Closure org.apache.nifi.registry.web.security.authentication.oidc.StandardOidcIdentityProviderGroovyTest$_testConvertOIDCTokenToNiFiTokenShouldHandleBlankIdentityAndNoEmailClaim_closure5@27b2faa6 should have failed with an exception of type java.net.ConnectException, instead got Exception javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      	at org.junit.Assert.fail(Assert.java:89)
      	at groovy.test.GroovyAssert.shouldFail(GroovyAssert.java:129)
      	at groovy.util.GroovyTestCase.shouldFail(GroovyTestCase.java:221)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:176)
      	at org.apache.nifi.registry.web.security.authentication.oidc.StandardOidcIdentityProviderGroovyTest.testConvertOIDCTokenToNiFiTokenShouldHandleBlankIdentityAndNoEmailClaim(StandardOidcIdentityProviderGroovyTest.groovy:428)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgresock Joseph Gresock
                Reporter:
                jgresock Joseph Gresock
              • 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 - 1h
                  1h