Migrate from embedded DynamoDBLocal to Testcontainers

This commit is contained in:
Chris Eager
2025-07-18 11:54:17 -05:00
committed by Chris Eager
parent 96f6e75702
commit 5f77d7f582
10 changed files with 203 additions and 65 deletions

View File

@@ -0,0 +1,30 @@
/*
* Copyright 2025 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.util;
public class TestcontainersImages {
private static final String DYNAMO_DB = "${dynamodb.image}";
private static final String LOCAL_STACK = "${localstack.image}";
private static final String REDIS = "${redis.image}";
private static final String REDIS_CLUSTER = "${redis-cluster.image}";
public static String getDynamoDb() {
return DYNAMO_DB;
}
public static String getLocalStack() {
return LOCAL_STACK;
}
public static String getRedis() {
return REDIS;
}
public static String getRedisCluster() {
return REDIS_CLUSTER;
}
}