Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61283

Tests fail for certificate expiration

XMLWordPrintable

      shouldSuccessfullyUpdateWithWorkingUC – jp.ikedam.jenkins.plugins.updatesitesmanager.ManagedUpdateSiteJenkinsTest2s
      shouldAddCustomCertToTrustAnchors – jp.ikedam.jenkins.plugins.updatesitesmanager.internal.ExtendedCertJsonSignValidatorTest<1s

      Should be redirect
      Expected: an instance of org.kohsuke.stapler.HttpResponses$5
           but: <ERROR: Signature verification failed in Update site with own cert for test <a href='#' class='showDetails'>(show details)</a><pre style='display:none'>java.security.cert.CertPathValidatorException: validity check failed<br> at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)<br> at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:223)<br> at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)<br> at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)<br> at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)<br> at org.jvnet.hudson.crypto.CertificateUtil.validatePath(CertificateUtil.java:93)<br> at jenkins.util.JSONSignatureValidator.verifySignature(JSONSignatureValidator.java:76)<br> at hudson.model.UpdateSite.verifySignature(UpdateSite.java:219)<br> at hudson.model.UpdateSite.updateData(UpdateSite.java:198)<br> at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:170)<br> at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:890)<br> at jp.ikedam.jenkins.plugins.updatesitesmanager.ManagedUpdateSiteJenkinsTest.shouldSuccessfullyUpdateWithWorkingUC(ManagedUpdateSiteJenkinsTest.java:127)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:498)<br> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)<br> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)<br> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)<br> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)<br> at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:523)<br> at org.junit.rules.RunRules.evaluate(RunRules.java:20)<br> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)<br> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)<br> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)<br> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)<br> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)<br> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)<br> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)<br> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)<br> at com.tngtech.java.junit.dataprovider.DataProviderRunner$1.evaluate(DataProviderRunner.java:170)<br> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)<br> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)<br> at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)<br> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)<br> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)<br> at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)<br> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)<br> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)<br>Caused by: java.security.cert.CertificateExpiredException: NotAfter: Wed Jan 30 04:03:59 UTC 2019<br> at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:274)<br> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)<br> at sun.security.provider.certpath.BasicChecker.verifyValidity(BasicChecker.java:190)<br> at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144)<br> at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)<br> ... 38 more<br></pre>> is a hudson.util.FormValidation$1
      

            ikedam ikedam
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: