@Test public void isChaosSnapshot () { assertFalse("Should not pick up a normal snapshot", AwsRDSUtils.isChaosSnapshot("Just-another-everyday-snapshot")); assertTrue("Should pick up a snapshot named correctly", AwsRDSUtils.isChaosSnapshot("ChaosSnapshot-ASJKLFJAK-2018-01-01T12-34-56-123Z")); }
public static boolean isChaosSnapshot (String snapshotIdentifier) { Matcher matcher = chaosSnapshotPattern.matcher(snapshotIdentifier); if (matcher.find()) { log.debug("{} appears to be generated from Chaos. Deleting is allowed.", snapshotIdentifier); return true; } return false; }
AwsRDSUtils { public static boolean isChaosSnapshot (String snapshotIdentifier) { Matcher matcher = chaosSnapshotPattern.matcher(snapshotIdentifier); if (matcher.find()) { log.debug("{} appears to be generated from Chaos. Deleting is allowed.", snapshotIdentifier); return true; } return false; } }
AwsRDSUtils { public static boolean isChaosSnapshot (String snapshotIdentifier) { Matcher matcher = chaosSnapshotPattern.matcher(snapshotIdentifier); if (matcher.find()) { log.debug("{} appears to be generated from Chaos. Deleting is allowed.", snapshotIdentifier); return true; } return false; } private  AwsRDSUtils(); }
AwsRDSUtils { public static boolean isChaosSnapshot (String snapshotIdentifier) { Matcher matcher = chaosSnapshotPattern.matcher(snapshotIdentifier); if (matcher.find()) { log.debug("{} appears to be generated from Chaos. Deleting is allowed.", snapshotIdentifier); return true; } return false; } private  AwsRDSUtils(); static String generateSnapshotName(@NotNull String identifier); static boolean isChaosSnapshot(String snapshotIdentifier); static Instant getInstantFromNameSegment(String segment); }
AwsRDSUtils { public static boolean isChaosSnapshot (String snapshotIdentifier) { Matcher matcher = chaosSnapshotPattern.matcher(snapshotIdentifier); if (matcher.find()) { log.debug("{} appears to be generated from Chaos. Deleting is allowed.", snapshotIdentifier); return true; } return false; } private  AwsRDSUtils(); static String generateSnapshotName(@NotNull String identifier); static boolean isChaosSnapshot(String snapshotIdentifier); static Instant getInstantFromNameSegment(String segment);  }