Skip to content

Commit

Permalink
updating instance not required for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlamz committed Mar 26, 2024
1 parent 89efa7e commit adb82b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
TestEnvironmentFeatures.RUN_AUTOSCALING_TESTS_ONLY})
public class TopologyQueryTests {
private static final Logger LOGGER = Logger.getLogger(TopologyQueryTests.class.getName());
private final AuroraTestUtility util = new AuroraTestUtility();
private String query = null;

@TestTemplate
Expand Down Expand Up @@ -175,15 +174,6 @@ public void testAuroraTimestamp(TestDriver testDriver) throws SQLException, Pars
props.setProperty("permitMysqlScheme", "1");
}

String dbInstanceIdentifier = TestEnvironment.getCurrent().getInfo()
.getDatabaseInfo()
.getInstances()
.get(0)
.getInstanceId();
// Update the cluster to force timestamp to appear
// assertDoesNotThrow(() -> util.updateInstanceCertificateIdentifier(
// dbInstanceIdentifier, "rds-ca-rsa4096-g1"));

SimpleDateFormat format;
if (TestEnvironment.getCurrent().getCurrentDriver() == TestDriver.PG) {
AuroraPgDialect dialect = new AuroraPgDialect();
Expand Down
17 changes: 0 additions & 17 deletions wrapper/src/test/java/integration/util/AuroraTestUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -957,21 +957,4 @@ public String getLTSVersion(String engine) {
}
throw new RuntimeException("Failed to find LTS version");
}

public void updateInstanceCertificateIdentifier(
String dbInstanceIdentifier, String certificateIdentifier) {
try {
ModifyDbInstanceRequest modifyDbInstanceRequest = ModifyDbInstanceRequest.builder()
.dbInstanceIdentifier(dbInstanceIdentifier)
.publiclyAccessible(true)
.applyImmediately(true)
.caCertificateIdentifier(certificateIdentifier)
.build();
rdsClient.modifyDBInstance(modifyDbInstanceRequest);
} catch (Exception e) {
LOGGER.finest("Error updating certificate identifier on "
+ dbInstanceIdentifier + ": " + e.getMessage());
throw e;
}
}
}

0 comments on commit adb82b3

Please sign in to comment.