@Test public void deletePod () throws Exception { kubernetesPodContainer.deletePod(experiment); verify(experiment, times(1)).setCheckContainerHealth(ArgumentMatchers.any()); verify(experiment, never()).setSelfHealingMethod(ArgumentMatchers.any()); Mockito.verify(kubernetesPlatform, times(1)).deletePod(kubernetesPodContainer); experiment.getCheckContainerHealth().call(); Mockito.verify(kubernetesPlatform, times(1)).replicaSetRecovered(kubernetesPodContainer); }
@ChaosExperiment(experimentType = ExperimentType.STATE) public void deletePod (Experiment experiment) { experiment.setCheckContainerHealth(replicaSetRecovered); kubernetesPlatform.deletePod(this); }
KubernetesPodContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void deletePod (Experiment experiment) { experiment.setCheckContainerHealth(replicaSetRecovered); kubernetesPlatform.deletePod(this); } }
KubernetesPodContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void deletePod (Experiment experiment) { experiment.setCheckContainerHealth(replicaSetRecovered); kubernetesPlatform.deletePod(this); } private  KubernetesPodContainer(); }
KubernetesPodContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void deletePod (Experiment experiment) { experiment.setCheckContainerHealth(replicaSetRecovered); kubernetesPlatform.deletePod(this); } private  KubernetesPodContainer(); static KubernetesPodContainerBuilder builder(); String getUuid(); String getPodName(); String getNamespace(); ControllerKind getOwnerKind(); String getOwnerName(); @Override void startExperiment(Experiment experiment); @Override boolean isCattle(); String getTargetedSubcontainer(); @Override boolean canExperiment(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.STATE) void deletePod(Experiment experiment); }
KubernetesPodContainer extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void deletePod (Experiment experiment) { experiment.setCheckContainerHealth(replicaSetRecovered); kubernetesPlatform.deletePod(this); } private  KubernetesPodContainer(); static KubernetesPodContainerBuilder builder(); String getUuid(); String getPodName(); String getNamespace(); ControllerKind getOwnerKind(); String getOwnerName(); @Override void startExperiment(Experiment experiment); @Override boolean isCattle(); String getTargetedSubcontainer(); @Override boolean canExperiment(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.STATE) void deletePod(Experiment experiment);  }