Skip to content
Permalink
Browse files
[JENKINS-27162] Reproduce in unittest
  • Loading branch information
olivergondza committed Mar 7, 2015
1 parent 1ad1c98 commit 0bbc0680942cf5ed26b23dcc620f14af2848e4c3
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/test/java/hudson/matrix/MatrixTest.java
@@ -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();

0 comments on commit 0bbc068

Please sign in to comment.