Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-21984] Disabling cert check on updateDirectlyWithJson since …
…the certificate is now expired, and it is no good to have a test which is known to start failing at a particular time in the future!

(cherry picked from commit 334ce1b)
  • Loading branch information
jglick committed Sep 23, 2014
1 parent 1e8076d commit 1d29041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/test/java/hudson/model/UpdateSiteTest.java
Expand Up @@ -121,14 +121,14 @@ public void shutdownWebserver() throws Exception {
@Test public void updateDirectlyWithJson() throws Exception {
UpdateSite us = new UpdateSite("default", new URL(baseUrl, "update-center.json").toExternalForm());
assertNull(us.getPlugin("AdaptivePlugin"));
assertEquals(FormValidation.ok(), us.updateDirectly(true).get());
assertEquals(FormValidation.ok(), us.updateDirectly(/* TODO the certificate is now expired, and downloading a fresh copy did not seem to help */false).get());
assertNotNull(us.getPlugin("AdaptivePlugin"));
}

@Test public void updateDirectlyWithHtml() throws Exception {
UpdateSite us = new UpdateSite("default", new URL(baseUrl, "update-center.json.html").toExternalForm());
assertNull(us.getPlugin("AdaptivePlugin"));
assertEquals(FormValidation.ok(), us.updateDirectly(true).get());
assertEquals(FormValidation.ok(), us.updateDirectly(false).get());
assertNotNull(us.getPlugin("AdaptivePlugin"));
}
}

0 comments on commit 1d29041

Please sign in to comment.