@Test public void restartContainer () throws Exception { cloudFoundryContainer.restartContainer(experiment); verify(experiment, times(1)).setCheckContainerHealth(ArgumentMatchers.any()); verify(experiment, times(1)).setSelfHealingMethod(ArgumentMatchers.any()); Mockito.verify(cloudFoundryContainerPlatform, times(1)).restartInstance(any(RestartApplicationInstanceRequest.class)); experiment.getSelfHealingMethod().run(); }
@ChaosExperiment(experimentType = ExperimentType.STATE) public void restartContainer (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isInstanceRunning); cloudFoundryContainerPlatform.restartInstance(getRestartApplicationInstanceRequest()); }
CloudFoundryContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartContainer (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isInstanceRunning); cloudFoundryContainerPlatform.restartInstance(getRestartApplicationInstanceRequest()); } }
CloudFoundryContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartContainer (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isInstanceRunning); cloudFoundryContainerPlatform.restartInstance(getRestartApplicationInstanceRequest()); } private  CloudFoundryContainer();   CloudFoundryContainer(String applicationId, String name, Integer instance); }
CloudFoundryContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartContainer (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isInstanceRunning); cloudFoundryContainerPlatform.restartInstance(getRestartApplicationInstanceRequest()); } private  CloudFoundryContainer();   CloudFoundryContainer(String applicationId, String name, Integer instance); static CloudFoundryContainerBuilder builder(); @Override Platform getPlatform(); @Override String getSimpleName(); String getName(); @Override DataDogIdentifier getDataDogIdentifier(); @Override boolean isCattle(); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartContainer(Experiment experiment); String getApplicationId(); @Override String getAggregationIdentifier(); Integer getInstance(); }
CloudFoundryContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartContainer (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isInstanceRunning); cloudFoundryContainerPlatform.restartInstance(getRestartApplicationInstanceRequest()); } private  CloudFoundryContainer();   CloudFoundryContainer(String applicationId, String name, Integer instance); static CloudFoundryContainerBuilder builder(); @Override Platform getPlatform(); @Override String getSimpleName(); String getName(); @Override DataDogIdentifier getDataDogIdentifier(); @Override boolean isCattle(); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartContainer(Experiment experiment); String getApplicationId(); @Override String getAggregationIdentifier(); Integer getInstance();  }