Skip to content

Commit

Permalink
[JENKINS-32376] Jenkins < 1.600 have a problem with the server-side d…
Browse files Browse the repository at this point in the history
…ownload feature (Downloadable refers URLs without signatures) and cannot test the behavior. I decided to target 1.609.
  • Loading branch information
ikedam committed Jan 16, 2016
1 parent a4e9b85 commit cf71b46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.596</version><!-- which version of Jenkins is this plugin built against? -->
<version>1.609</version><!-- which version of Jenkins is this plugin built against? -->
</parent>

<groupId>jp.ikedam.jenkins.plugins</groupId>
Expand Down
Expand Up @@ -247,8 +247,21 @@ public void testDoCheckUpdateServer() throws Exception {
false
);
jenkins.getUpdateCenter().getSites().clear();

{
target.setCaCertificate(null);
HttpResponse rsp = jenkins.getPluginManager().doCheckUpdatesServer();
if (rsp instanceof FormValidation) {
// this fails with Jenkins < 1.600, Jenkins < 1.596.1
assertEquals(
"Accessing update center without any update sites should succeed",
FormValidation.Kind.OK,
((FormValidation)rsp).kind
);
}
}

jenkins.getUpdateCenter().getSites().add(target);
jenkins.getUpdateCenter().save();

{
target.setCaCertificate(null);
Expand Down

0 comments on commit cf71b46

Please sign in to comment.