forked from Praqma/pretested-integration-plugin
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit dc3b25f Author: Mads Nielsen <man@praqma.net> Date: Thu Jan 11 10:30:27 2018 +0100 Fix for Praqma#97 commit 034d32e Author: Mads Nielsen <man@praqma.net> Date: Thu Jan 11 09:59:48 2018 +0100 Fixed merge conflict. For Praqma#97 commit 15cd353 Author: Mads Nielsen <man@praqma.net> Date: Thu Jan 11 09:09:40 2018 +0100 Implemented Praqma#97. Close issue Praqma#97 commit a06d856 Author: Mads Nielsen <man@praqma.net> Date: Thu Jan 11 08:49:12 2018 +0100 Rename to IT to be picked up in integration test. For Praqma#97 commit 6768dfc Author: Mads Nielsen <man@praqma.net> Date: Thu Jan 11 08:34:15 2018 +0100 Implemented Praqma#97. Close
- Loading branch information
1 parent
573c6b8
commit 2562658
Showing
5 changed files
with
92 additions
and
26 deletions.
There are no files selected for viewing
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
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
3 changes: 3 additions & 0 deletions
3
.../org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPostCheckout/config.jelly
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,3 @@ | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
</j:jelly> |
28 changes: 28 additions & 0 deletions
28
...org/jenkinsci/plugins/pretestedintegration/integration/scm/git/GHI97_SupportChecksIT.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,28 @@ | ||
package org.jenkinsci.plugins.pretestedintegration.integration.scm.git; | ||
|
||
import com.tikal.jenkins.plugins.multijob.MultiJobProject; | ||
import hudson.matrix.MatrixProject; | ||
import hudson.model.FreeStyleProject; | ||
import hudson.model.ItemGroup; | ||
import org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout; | ||
import org.junit.Test; | ||
|
||
import static junit.framework.Assert.assertFalse; | ||
import static junit.framework.Assert.assertTrue; | ||
|
||
public class GHI97_SupportChecksIT { | ||
|
||
/** | ||
* See GitHub issue #97 | ||
*/ | ||
@Test | ||
public void validateReturnsFromSupportedChecks_ValidatesGHI97() { | ||
PretestedIntegrationPostCheckout pipPost = new PretestedIntegrationPostCheckout(); | ||
MultiJobProject multiJobProject = new MultiJobProject(null, "MultiJobMustNotBeSupported"); | ||
FreeStyleProject freeStyleProject = new FreeStyleProject((ItemGroup)null, "FreeStyleProjectMustBeSupported"); | ||
MatrixProject matrix = new MatrixProject(null,"MatrixJobsMustBeSupported"); | ||
assertFalse(pipPost.isSupported(multiJobProject.getClass())); | ||
assertTrue(pipPost.isSupported(freeStyleProject.getClass())); | ||
assertTrue(pipPost.isSupported(matrix.getClass())); | ||
} | ||
} |
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