use of com.netflix.titus.api.jobmanager.model.job.JobFunctions.changeServiceJobCapacity in project titus-control-plane by Netflix.
the class ServiceJobSchedulingTest method testJobCapacityUpdateToIdenticalAsCurrentCapacityIsNoOp.
@Test
public void testJobCapacityUpdateToIdenticalAsCurrentCapacityIsNoOp() {
Capacity fixedCapacity = Capacity.newBuilder().withMin(1).withDesired(1).withMax(1).build();
JobDescriptor<ServiceJobExt> job = JobFunctions.changeServiceJobCapacity(oneTaskServiceJobDescriptor(), fixedCapacity);
jobsScenarioBuilder.scheduleJob(job, jobScenario -> jobScenario.template(ScenarioTemplates.acceptJobWithOneTask(0, 0)).changeCapacity(fixedCapacity).advance().advance().expectNoStoreUpdate().expectNoJobStateChangeEvent().expectNoTaskStateChangeEvent());
}
Aggregations