diff --git a/src/test/java/io/floci/aws/services/cloudformation/CloudFormationDeletionPolicyIntegrationTest.java b/src/test/java/io/floci/aws/services/cloudformation/CloudFormationDeletionPolicyIntegrationTest.java
index 9d68d9100a..c900f8c891 100644
--- a/src/test/java/io/floci/aws/services/cloudformation/CloudFormationDeletionPolicyIntegrationTest.java
+++ b/src/test/java/io/floci/aws/services/cloudformation/CloudFormationDeletionPolicyIntegrationTest.java
@@ -160,7 +160,7 @@ class CloudFormationDeletionPolicyIntegrationTest {
}
@Test
- void rollingBackAFailedCreateDeletesRetainExceptOnCreateButKeepsRetain() {
+ void rollingBackAFailedCreateDeletesRetainExceptOnCreateButKeepsRetain() throws InterruptedException {
String suffix = Long.toString(System.nanoTime(), 36);
String keptBucket = "cfn-rollback-retain-bucket-" + suffix;
String rolledBackBucket = "cfn-rollback-reoc-bucket-" + suffix;
@@ -197,7 +197,7 @@ class CloudFormationDeletionPolicyIntegrationTest {
String stackId = createStack(stackName, template);
- assertThat(describeStacks(stackId), containsString("ROLLBACK_COMPLETE"));
+ awaitStackStatus(stackId, "ROLLBACK_COMPLETE");
assertBucketExists(keptBucket);
assertBucketDeleted(rolledBackBucket);
}
@@ -732,7 +732,7 @@ class CloudFormationDeletionPolicyIntegrationTest {
String parentStackId = createStack(stackName, template);
try {
- assertThat(describeStacks(parentStackId), containsString("ROLLBACK_COMPLETE"));
+ awaitStackStatus(parentStackId, "ROLLBACK_COMPLETE");
assertBucketDeleted(bucketName);
} finally {
deleteStack(stackName);
@@ -1479,7 +1479,10 @@ class CloudFormationDeletionPolicyIntegrationTest {
.statusCode(200);
}
- /** DeleteStack runs asynchronously, and a deleted stack stays describable by its stack ID. */
+ /**
+ * CreateStack, UpdateStack and DeleteStack answer before their execution ends, and a deleted stack
+ * stays describable by its stack ID.
+ */
private static void awaitStackStatus(String stackId, String status) throws InterruptedException {
awaitStackStatus(stackId, status, null);
}
diff --git a/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java
index 419bfafdf1..b142dda286 100644
--- a/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java
+++ b/src/test/java/io/floci/aws/services/rds/RdsEngineVersionDockerIntegrationTest.java
@@ -32,8 +32,11 @@ class RdsEngineVersionDockerIntegrationTest {
private static final String PASSWORD = "Passw0rd12345";
@BeforeEach
- void checkDocker() throws InterruptedException {
+ void checkDocker() throws InterruptedException, ClassNotFoundException {
assumeDocker();
+ // DriverManager hands out only a driver this test's class loader can see, and after a Quarkus
+ // restart the one registered earlier belongs to another loader.
+ Class.forName("org.postgresql.Driver");
}
@Test