Skip to content

Commit

Permalink
Fix naming of variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
conniey committed Jul 3, 2024
1 parent 6a9cead commit bda722f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ public class AzureRedisAutoConfigurationTestContainerTest {
/**
* Pulling Docker registry name from testcontainers.properties file as prefix.
*/
private final static GenericContainer<?> redis =
private static final GenericContainer<?> REDIS =
new GenericContainer<>(DockerImageName.parse("redis:6"))
.withCommand("--requirepass", REDIS_PASSWORD)
.withExposedPorts(6379);

@BeforeAll
public static void beforeAll() {
redis.start();
REDIS.start();
}

@AfterAll
public static void afterAll() {
redis.stop();
REDIS.stop();
}

@DynamicPropertySource
static void redisProperties(DynamicPropertyRegistry registry) {
registry.add("spring.redis.host", redis::getHost);
registry.add("spring.redis.port", redis::getFirstMappedPort);
registry.add("spring.redis.host", REDIS::getHost);
registry.add("spring.redis.port", REDIS::getFirstMappedPort);
registry.add("spring.redis.ssl", () -> false);
registry.add("spring.redis.azure.passwordless-enabled", () -> true);
}
Expand Down

0 comments on commit bda722f

Please sign in to comment.