Re-enable ClientServerHazelcastIndexedSessionRepositoryITests
Issue gh-1958
This commit is contained in:
@@ -21,9 +21,9 @@ import com.hazelcast.client.config.ClientConfig;
|
||||
import com.hazelcast.core.HazelcastInstance;
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.testcontainers.containers.GenericContainer;
|
||||
import org.testcontainers.images.builder.ImageFromDockerfile;
|
||||
import org.testcontainers.utility.MountableFile;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -45,13 +45,20 @@ import org.springframework.test.context.web.WebAppConfiguration;
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration
|
||||
@WebAppConfiguration
|
||||
@Disabled("Re-enable when Hazelcast image uses JDK 17")
|
||||
class ClientServerHazelcastIndexedSessionRepositoryITests extends AbstractHazelcastIndexedSessionRepositoryITests {
|
||||
|
||||
private static GenericContainer container = new GenericContainer<>("hazelcast/hazelcast:5.0.3-slim")
|
||||
// @formatter:off
|
||||
private static GenericContainer container = new GenericContainer<>(new ImageFromDockerfile()
|
||||
.withDockerfileFromBuilder((builder) -> builder
|
||||
.from("hazelcast/hazelcast:5.3.2-slim")
|
||||
.user("root")
|
||||
.run("apk del --no-cache openjdk11-jre-headless")
|
||||
.run("apk add --no-cache openjdk17-jre-headless")
|
||||
.user("hazelcast")))
|
||||
.withExposedPorts(5701).withCopyFileToContainer(MountableFile.forClasspathResource("/hazelcast-server.xml"),
|
||||
"/opt/hazelcast/hazelcast.xml")
|
||||
.withEnv("HAZELCAST_CONFIG", "hazelcast.xml");
|
||||
// @formatter:on
|
||||
|
||||
@BeforeAll
|
||||
static void setUpClass() {
|
||||
|
||||
Reference in New Issue
Block a user