use of org.jenkinsci.test.acceptance.slave.LocalSlaveController in project acceptance-test-harness by jenkinsci.
the class AuditTrailPluginTest method trail_should_contain_logged_events.
@Test
public void trail_should_contain_logged_events() throws Exception {
FreeStyleJob freeStyleJob = jenkins.jobs.create(FreeStyleJob.class);
// purpose of this is to just go through the motion of creating a new slave,
// so this one can bypass SlaveController.
Slave slave = new LocalSlaveController().install(jenkins).get();
List<String> events = auditTrail.getEvents();
assertThat(events, hasItem("/createItem (" + freeStyleJob.name + ")"));
assertThat(events, hasItem("/computer/createItem (" + slave.getName() + ")"));
}
use of org.jenkinsci.test.acceptance.slave.LocalSlaveController in project acceptance-test-harness by jenkinsci.
the class ExternalWorkspaceManagerPluginTest method setUpNode.
private void setUpNode(String label, String fakeMountingPoint) throws ExecutionException, InterruptedException {
SlaveController controller = new LocalSlaveController();
Slave linuxSlave = controller.install(jenkins).get();
linuxSlave.configure();
linuxSlave.setLabels(label);
ExternalNodeConfig nodeConfig = new ExternalNodeConfig(linuxSlave);
nodeConfig.setConfig(DISK_POOL_ID, DISK_ONE, DISK_TWO, fakeMountingPoint);
linuxSlave.save();
}
Aggregations