@Test public void restageApplication () throws Exception { RestageApplicationRequest restageApplicationRequest = RestageApplicationRequest.builder().name(name).build(); cloudFoundryApplication.restageApplication(experiment); verify(experiment, times(1)).setCheckContainerHealth(ArgumentMatchers.any()); verify(experiment, times(1)).setSelfHealingMethod(ArgumentMatchers.any()); Mockito.verify(cloudFoundryApplicationPlatform, times(1)).restageApplication(restageApplicationRequest); experiment.getSelfHealingMethod().run(); }
@ChaosExperiment(experimentType = ExperimentType.STATE) public void restageApplication (Experiment experiment) { experiment.setCheckContainerHealth(isAppHealthy); experiment.setSelfHealingMethod(noRecovery); cloudFoundryApplicationPlatform.restageApplication(getRestageApplicationRequest()); }
CloudFoundryApplication extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restageApplication (Experiment experiment) { experiment.setCheckContainerHealth(isAppHealthy); experiment.setSelfHealingMethod(noRecovery); cloudFoundryApplicationPlatform.restageApplication(getRestageApplicationRequest()); } }
CloudFoundryApplication extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restageApplication (Experiment experiment) { experiment.setCheckContainerHealth(isAppHealthy); experiment.setSelfHealingMethod(noRecovery); cloudFoundryApplicationPlatform.restageApplication(getRestageApplicationRequest()); } CloudFoundryApplication(); }
CloudFoundryApplication extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restageApplication (Experiment experiment) { experiment.setCheckContainerHealth(isAppHealthy); experiment.setSelfHealingMethod(noRecovery); cloudFoundryApplicationPlatform.restageApplication(getRestageApplicationRequest()); } CloudFoundryApplication(); List<CloudFoundryApplicationRoute> getApplicationRoutes(); static CloudFoundryApplicationBuilder builder(); Integer getOriginalContainerInstances(); Integer getActualContainerInstances(); String getApplicationID(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.RESOURCE) void scaleApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restageApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.NETWORK) void unmapRoute(Experiment experiment); }
CloudFoundryApplication extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restageApplication (Experiment experiment) { experiment.setCheckContainerHealth(isAppHealthy); experiment.setSelfHealingMethod(noRecovery); cloudFoundryApplicationPlatform.restageApplication(getRestageApplicationRequest()); } CloudFoundryApplication(); List<CloudFoundryApplicationRoute> getApplicationRoutes(); static CloudFoundryApplicationBuilder builder(); Integer getOriginalContainerInstances(); Integer getActualContainerInstances(); String getApplicationID(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.RESOURCE) void scaleApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restageApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.NETWORK) void unmapRoute(Experiment experiment);  }