@Test public void restartInstance () { awsRDSInstanceContainer.restartInstance(experiment); verify(experiment, times(1)).setCheckContainerHealth(any()); verify(awsRDSPlatform, times(1)).restartInstance(dbInstanceIdentifier); }
@ChaosExperiment(experimentType = ExperimentType.STATE) public void restartInstance (Experiment experiment) { experiment.setCheckContainerHealth(() -> awsRDSPlatform.getInstanceStatus(dbInstanceIdentifier)); awsRDSPlatform.restartInstance(dbInstanceIdentifier); }
AwsRDSInstanceContainer extends AwsContainer { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartInstance (Experiment experiment) { experiment.setCheckContainerHealth(() -> awsRDSPlatform.getInstanceStatus(dbInstanceIdentifier)); awsRDSPlatform.restartInstance(dbInstanceIdentifier); } }
AwsRDSInstanceContainer extends AwsContainer { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartInstance (Experiment experiment) { experiment.setCheckContainerHealth(() -> awsRDSPlatform.getInstanceStatus(dbInstanceIdentifier)); awsRDSPlatform.restartInstance(dbInstanceIdentifier); }  }
AwsRDSInstanceContainer extends AwsContainer { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartInstance (Experiment experiment) { experiment.setCheckContainerHealth(() -> awsRDSPlatform.getInstanceStatus(dbInstanceIdentifier)); awsRDSPlatform.restartInstance(dbInstanceIdentifier); }  String getDbInstanceIdentifier(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartInstance(Experiment experiment); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.NETWORK) void removeSecurityGroups(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void startSnapshot(Experiment experiment); static AwsRDSInstanceContainerBuilder builder(); }
AwsRDSInstanceContainer extends AwsContainer { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartInstance (Experiment experiment) { experiment.setCheckContainerHealth(() -> awsRDSPlatform.getInstanceStatus(dbInstanceIdentifier)); awsRDSPlatform.restartInstance(dbInstanceIdentifier); }  String getDbInstanceIdentifier(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartInstance(Experiment experiment); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.NETWORK) void removeSecurityGroups(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void startSnapshot(Experiment experiment); static AwsRDSInstanceContainerBuilder builder();  }