use of com.spotify.helios.common.protocol.RollingUpdateRequest in project helios by spotify.
the class DeploymentGroupResourceTest method testRollingUpdateDeploymentGroupDoesNotExist.
@Test
public void testRollingUpdateDeploymentGroupDoesNotExist() throws Exception {
doThrow(new DeploymentGroupDoesNotExistException("")).when(model).rollingUpdate(any(DeploymentGroup.class), any(JobId.class), any(RolloutOptions.class));
final Response response = resource.rollingUpdate("foo", new RollingUpdateRequest(new JobId("foo", "0.3", "1234"), RolloutOptions.newBuilder().build()));
assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
assertEquals(new RollingUpdateResponse(RollingUpdateResponse.Status.DEPLOYMENT_GROUP_NOT_FOUND), response.getEntity());
}
use of com.spotify.helios.common.protocol.RollingUpdateRequest in project helios by spotify.
the class DeploymentGroupResourceTest method testRollingUpdateJobDoesNotExist.
@Test
public void testRollingUpdateJobDoesNotExist() throws Exception {
doThrow(new JobDoesNotExistException("")).when(model).rollingUpdate(any(DeploymentGroup.class), any(JobId.class), any(RolloutOptions.class));
final Response response = resource.rollingUpdate("foo", new RollingUpdateRequest(new JobId("foo", "0.3", "1234"), RolloutOptions.newBuilder().build()));
assertEquals(Response.Status.OK.getStatusCode(), response.getStatus());
assertEquals(new RollingUpdateResponse(RollingUpdateResponse.Status.JOB_NOT_FOUND), response.getEntity());
}
Aggregations