Skip to content

Commit

Permalink
[JENKINS-27162] Reproduce in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Mar 7, 2015
1 parent 1ad1c98 commit 0bbc068
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/hudson/matrix/MatrixTest.java
Expand Up @@ -83,6 +83,21 @@ public void testApi() throws Exception {
assertEquals(4, xml.getByXPath("//matrixProject/activeConfiguration").size());
}

@Issue("JENKINS-27162")
public void testCompletedLogging() throws Exception {
MatrixProject project = createMatrixProject();
project.setAxes(new AxisList(
new Axis("axis", "a", "b")
));
((DefaultMatrixExecutionStrategyImpl) project.getExecutionStrategy())
.setTouchStoneCombinationFilter("axis == 'a'")
;

MatrixBuild build = project.scheduleBuild2(0).get();
assertLogContains("test0 » a completed with result SUCCESS", build);
assertLogContains("test0 » b completed with result SUCCESS", build);
}

@Issue("SECURITY-125")
public void testCombinationFilterSecurity() throws Exception {
MatrixProject project = createMatrixProject();
Expand Down

0 comments on commit 0bbc068

Please sign in to comment.