use of com.spotify.docker.client.exceptions.ImageNotFoundException in project helios by spotify.
the class TaskMonitorTest method verifyImageMissingTrumpsFlappingState.
@Test
public void verifyImageMissingTrumpsFlappingState() throws Exception {
when(flapController.isFlapping()).thenReturn(true);
sut.failed(new ImageNotFoundException("foobar", "not found"), "container error");
verify(statusUpdater).setThrottleState(IMAGE_MISSING);
verify(statusUpdater).setState(FAILED);
verify(statusUpdater).setContainerError("container error");
verify(statusUpdater).update();
}
Aggregations