Skip to content

Commit f4488d5

Browse files
authored
Merge pull request #1429 from basil/test
2 parents a5d57b5 + aeba0a9 commit f4488d5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import hudson.model.Label;
5959
import hudson.model.Run;
6060
import hudson.slaves.SlaveComputer;
61-
import hudson.util.VersionNumber;
6261
import io.fabric8.kubernetes.api.model.ObjectMeta;
6362
import io.fabric8.kubernetes.api.model.Pod;
6463
import io.fabric8.kubernetes.api.model.PodList;
@@ -566,11 +565,7 @@ public void computerCantBeConfigured() throws Exception {
566565

567566
HtmlPage nodeIndex = wc.getPage(node);
568567
assertNotXPath(nodeIndex, "//*[text() = 'configure']");
569-
if (Jenkins.get().getVersion().isNewerThanOrEqualTo(new VersionNumber("2.238"))) {
570-
r.assertXPath(nodeIndex, "//*[text() = 'View Configuration']");
571-
} else {
572-
wc.assertFails(node.toComputer().getUrl()+"configure", 403);
573-
}
568+
r.assertXPath(nodeIndex, "//*[text() = 'View Configuration']");
574569
SemaphoreStep.success("pod/1", null);
575570
}
576571

0 commit comments

Comments
 (0)