expectAuth(ROLE, true);
control.replay();
TaskConfig task = nonProductionTask();
task.addToConstraints(dedicatedConstraint(ImmutableSet.of("mesos", "test")));
assertResponse(INVALID_REQUEST, thrift.createJob(makeJob(task), DEFAULT_LOCK, SESSION));
}
private IScheduledTask buildScheduledTask(int instanceId, long ramMb) {
return IScheduledTask.build(new ScheduledTask()