Examples of UpdateStateException


Examples of org.apache.aurora.scheduler.updater.UpdateStateException

    expect(taskIdGenerator.generate(ITaskConfig.build(populatedTask()), 1))
        .andReturn(TASK_ID);
    expect(quotaManager.checkJobUpdate(update)).andReturn(ENOUGH_QUOTA);
    storageUtil.expectTaskFetch(Query.unscoped().byJob(JOB_KEY).active(), oldTask);
    jobUpdateController.start(update, USER);
    expectLastCall().andThrow(new UpdateStateException("failed"));

    control.replay();

    assertResponse(INVALID_REQUEST, thrift.startJobUpdate(buildJobUpdateRequest(update), SESSION));
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.updater.UpdateStateException

  @Test
  public void testPauseJobUpdateFailsInController() throws Exception {
    expectAuth(ROLE, true);
    jobUpdateController.pause(JOB_KEY, USER);
    expectLastCall().andThrow(new UpdateStateException("failed"));

    control.replay();

    assertResponse(INVALID_REQUEST, thrift.pauseJobUpdate(JOB_KEY.newBuilder(), SESSION));
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.updater.UpdateStateException

  @Test
  public void testResumeJobUpdateFailsInController() throws Exception {
    expectAuth(ROLE, true);
    jobUpdateController.resume(JOB_KEY, USER);
    expectLastCall().andThrow(new UpdateStateException("failed"));

    control.replay();

    assertResponse(INVALID_REQUEST, thrift.resumeJobUpdate(JOB_KEY.newBuilder(), SESSION));
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.updater.UpdateStateException

  @Test
  public void testAbortJobUpdateFailsInController() throws Exception {
    expectAuth(ROLE, true);
    jobUpdateController.abort(JOB_KEY, USER);
    expectLastCall().andThrow(new UpdateStateException("failed"));

    control.replay();

    assertResponse(INVALID_REQUEST, thrift.abortJobUpdate(JOB_KEY.newBuilder(), SESSION));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.