Skip to content

Commit a166fbd

Browse files
committed
Upgrade to Cassandra 5.0.6.
Closes #712
1 parent e42fd0d commit a166fbd

2 files changed

Lines changed: 2287 additions & 2 deletions

File tree

cassandra/util/src/main/java/example/springdata/cassandra/util/CassandraExtension.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2025 the original author or authors.
2+
* Copyright 2026 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,6 +27,7 @@
2727
import org.springframework.util.StringUtils;
2828

2929
import org.testcontainers.cassandra.CassandraContainer;
30+
import org.testcontainers.utility.MountableFile;
3031

3132
import com.datastax.oss.driver.api.core.CqlSession;
3233

@@ -101,6 +102,8 @@ private CassandraContainer runTestcontainer() {
101102

102103
container = new CassandraContainer(getCassandraDockerImageName());
103104
container.withReuse(true);
105+
container.withCopyFileToContainer(MountableFile.forClasspathResource("/cassandra.yml"),
106+
"/etc/cassandra/cassandra.yaml");
104107

105108
container.start();
106109

@@ -110,6 +113,6 @@ private CassandraContainer runTestcontainer() {
110113
private String getCassandraDockerImageName() {
111114

112115
return String.format("cassandra:%s",
113-
Optional.ofNullable(System.getenv("CASSANDRA_VERSION")).filter(StringUtils::hasText).orElse("5.0.4"));
116+
Optional.ofNullable(System.getenv("CASSANDRA_VERSION")).filter(StringUtils::hasText).orElse("5.0.6"));
114117
}
115118
}

0 commit comments

Comments
 (0)