use of org.jenkinsci.test.acceptance.po.LabelExpressionAxis in project acceptance-test-harness by jenkinsci.
the class ForemanNodeSharingPluginTest method testMatrixJob.
/**
* Test a matrix job
*/
@Test
@WithPlugins("matrix-project")
public void testMatrixJob() {
jenkins.save();
MatrixProject job = jenkins.jobs.create(MatrixProject.class);
job.configure();
LabelExpressionAxis a = job.addAxis(LabelExpressionAxis.class);
a.values.set("label1");
job.addUserAxis("X", "1 2 3 4 5");
job.save();
MatrixBuild b = job.startBuild().as(MatrixBuild.class);
b.waitUntilFinished(EXTENDED_PROVISION_TIMEOUT);
for (MatrixRun config : b.getConfigurations()) {
config.shouldSucceed();
}
}
Aggregations