Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-9203] Added integration test case that fails under 1.398 but…
… not under 1.397
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/test/java/hudson/plugins/build_timeout/BuildTimeoutWrapperIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package hudson.plugins.build_timeout; | ||
|
||
import hudson.model.FreeStyleBuild; | ||
import hudson.model.FreeStyleProject; | ||
import hudson.model.Result; | ||
import hudson.tasks.BuildWrapper; | ||
import hudson.tasks.test.AbstractTestResultAction; | ||
|
||
import org.jvnet.hudson.test.Bug; | ||
import org.jvnet.hudson.test.HudsonTestCase; | ||
import org.jvnet.hudson.test.recipes.LocalData; | ||
|
||
public class BuildTimeoutWrapperIntegrationTest extends HudsonTestCase { | ||
|
||
@Bug(9203) | ||
@LocalData | ||
public void testIssue9203() throws Exception { | ||
FreeStyleProject project = (FreeStyleProject) hudson.getItem("9203"); | ||
|
||
// Force a timeout of 1, plugin will not accept less than 3 minutes. | ||
BuildTimeoutWrapper buildWrapper = (BuildTimeoutWrapper) project.getBuildWrappersList().get(0); | ||
buildWrapper.timeoutMinutes = 1; | ||
|
||
FreeStyleBuild build = project.scheduleBuild2(0).get(); | ||
assertBuildStatus(Result.FAILURE, build); | ||
} | ||
} |
Binary file added
BIN
+1.09 KB
...sources/hudson/plugins/build_timeout/BuildTimeoutWrapperIntegrationTest/testIssue9203.zip
Binary file not shown.