Skip to content

Commit c26868d

Browse files
authored
Fix CustomEndpointTest initialization (#1163)
1 parent 195b930 commit c26868d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

wrapper/src/test/java/integration/container/tests/CustomEndpointTest.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import java.util.Map;
4747
import java.util.Properties;
4848
import java.util.Set;
49+
import java.util.UUID;
4950
import java.util.concurrent.TimeUnit;
5051
import java.util.logging.Logger;
5152
import java.util.stream.Collectors;
@@ -69,7 +70,7 @@
6970

7071
@TestMethodOrder(MethodOrderer.MethodName.class)
7172
@ExtendWith(TestDriverProvider.class)
72-
@EnableOnDatabaseEngineDeployment({DatabaseEngineDeployment.AURORA, DatabaseEngineDeployment.RDS_MULTI_AZ_CLUSTER})
73+
@EnableOnDatabaseEngineDeployment({DatabaseEngineDeployment.AURORA})
7374
@DisableOnTestFeature({
7475
TestEnvironmentFeatures.PERFORMANCE,
7576
TestEnvironmentFeatures.RUN_HIBERNATE_TESTS_ONLY,
@@ -79,8 +80,8 @@
7980
@Order(16)
8081
public class CustomEndpointTest {
8182
private static final Logger LOGGER = Logger.getLogger(CustomEndpointTest.class.getName());
82-
protected static final String oneInstanceEndpointId = "test-endpoint-1";
83-
protected static final String twoInstanceEndpointId = "test-endpoint-2";
83+
protected static final String oneInstanceEndpointId = "test-endpoint-1-" + UUID.randomUUID();
84+
protected static final String twoInstanceEndpointId = "test-endpoint-2-" + UUID.randomUUID();
8485
protected static final Map<String, DBClusterEndpoint> endpoints = new HashMap<String, DBClusterEndpoint>() {{
8586
put(oneInstanceEndpointId, null);
8687
put(twoInstanceEndpointId, null);
@@ -103,9 +104,6 @@ public static void createEndpoints() {
103104
return;
104105
}
105106

106-
// Delete pre-existing custom endpoints in case they weren't cleaned up in a previous run.
107-
deleteEndpoints(client);
108-
109107
List<TestInstanceInfo> instances = envInfo.getDatabaseInfo().getInstances();
110108
createEndpoint(client, clusterId, oneInstanceEndpointId, instances.subList(0, 1));
111109
createEndpoint(client, clusterId, twoInstanceEndpointId, instances.subList(0, 2));

0 commit comments

Comments
 (0)