File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 5858import hudson .model .Label ;
5959import hudson .model .Run ;
6060import hudson .slaves .SlaveComputer ;
61- import hudson .util .VersionNumber ;
6261import io .fabric8 .kubernetes .api .model .ObjectMeta ;
6362import io .fabric8 .kubernetes .api .model .Pod ;
6463import 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
You can’t perform that action at this time.
0 commit comments