clusterNode3 = clusterManagementService.createNode(clusterGroup.getId(), "10.2.0.3", "Node 3", false);
}
@Test
public void testNormalAutomaticAllExecution() throws Exception {
ScheduleJobCreateParameters jobParameters = new ScheduleJobCreateParameters();
jobParameters.setName("Test Job");
jobParameters.setDescription("Nothing to do");
jobParameters.setTimezone("UTC");
jobParameters.setCron("0 0 0 * * ?");
jobParameters.setEnabled(true);
jobParameters.setAllNodes(true);
jobParameters.setAllNodesPool(2);
jobParameters.setClusterGroupId(clusterGroup.getId());
jobParameters.setScheduleGroupId(scheduleGroup.getId());
jobParameters.setStrategy(ScheduleExecutionStrategy.CIRCULAR);
jobParameters.setNotifyOnFailure(true);
jobParameters.setActionIdentifier("action.type");
jobParameters.setActionDefinition("action.data".getBytes());
scheduleJob = scheduleJobManagementService.createJob(jobParameters);
quartzManagementService.disableJob(scheduleJob.getId());
control.reset();