You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joseph Gresock (Jira)" <ji...@apache.org> on 2021/05/26 15:22:00 UTC

[jira] [Created] (NIFI-8632) StandardOidcIdentityProviderGroovyTest hits localhost:443

Joseph Gresock created NIFI-8632:
------------------------------------

             Summary: StandardOidcIdentityProviderGroovyTest hits localhost:443
                 Key: NIFI-8632
                 URL: https://issues.apache.org/jira/browse/NIFI-8632
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.14.0
            Reporter: Joseph Gresock
            Assignee: Joseph Gresock


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.

{code:bash}
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)
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)