Rely on the official ENV var for Docker repo
* Remove obsolete `TestUtils.dockerRegistryFromEnv()` * Upgrade to Spring GraphQL `1.0.0`
This commit is contained in:
@@ -100,7 +100,7 @@ ext {
|
||||
smackVersion = '4.4.5'
|
||||
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '3.0.0-M3'
|
||||
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2022.0.0-M4'
|
||||
springGraphqlVersion = '1.0.0-SNAPSHOT'
|
||||
springGraphqlVersion = '1.0.0'
|
||||
springKafkaVersion = '3.0.0-M4'
|
||||
springRetryVersion = '1.3.3'
|
||||
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '6.0.0-M4'
|
||||
|
||||
@@ -34,11 +34,7 @@ import org.springframework.integration.test.util.TestUtils;
|
||||
public interface MySqlContainerTest {
|
||||
|
||||
@Container
|
||||
MySQLContainer<?> MY_SQL_CONTAINER =
|
||||
new MySQLContainer<>(
|
||||
DockerImageName.parse(TestUtils.dockerRegistryFromEnv() + "mysql")
|
||||
.asCompatibleSubstituteFor("mysql"))
|
||||
.withReuse(true);
|
||||
MySQLContainer<?> MY_SQL_CONTAINER = new MySQLContainer<>("mysql").withReuse(true);
|
||||
|
||||
|
||||
static String getDriverClassName() {
|
||||
|
||||
@@ -33,7 +33,7 @@ public interface MosquittoContainerTest {
|
||||
|
||||
@Container
|
||||
GenericContainer<?> MOSQUITTO_CONTAINER =
|
||||
new GenericContainer<>(TestUtils.dockerRegistryFromEnv() + "eclipse-mosquitto:2.0.12")
|
||||
new GenericContainer<>("eclipse-mosquitto:2.0.12")
|
||||
.withCommand("mosquitto -c /mosquitto-no-auth.conf")
|
||||
.withReuse(true)
|
||||
.withExposedPorts(1883);
|
||||
|
||||
@@ -375,10 +375,6 @@ public abstract class TestUtils {
|
||||
ctx.updateLoggers();
|
||||
}
|
||||
|
||||
public static String dockerRegistryFromEnv() {
|
||||
return Optional.ofNullable(System.getenv("DOCKER_REGISTRY_URL")).orElse("");
|
||||
}
|
||||
|
||||
public static class LevelsContainer {
|
||||
|
||||
private final Map<Class<?>, Level> classLevels;
|
||||
|
||||
Reference in New Issue
Block a user