Skip to content

Commit 696481e

Browse files
Update Yugabyte CQL driver to 4.15.0-yb-1 (#7822)
1 parent f1f79dc commit 696481e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

modules/yugabytedb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dependencies {
44
api project(':jdbc')
55
testImplementation project(':jdbc-test')
66
// YCQL driver
7-
testImplementation 'com.yugabyte:java-driver-core:4.6.0-yb-12'
7+
testImplementation 'com.yugabyte:java-driver-core:4.15.0-yb-1'
88
// YSQL driver
99
testRuntimeOnly 'com.yugabyte:jdbc-yugabytedb:42.3.5-yb-3'
1010
}

modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public void testSmoke() {
2626
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(
2727
"yugabytedb/yugabyte:2.14.4.0-b26"
2828
)
29+
.withUsername("cassandra")
30+
.withPassword("cassandra")
2931
// }
3032
) {
3133
// startingYCQLContainer {
@@ -43,6 +45,8 @@ public void testCustomKeyspace() {
4345
try (
4446
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE)
4547
.withKeyspaceName(key)
48+
.withUsername("cassandra")
49+
.withPassword("cassandra")
4650
) {
4751
ycqlContainer.start();
4852
assertThat(
@@ -81,8 +85,8 @@ public void testAuthenticationEnabled() {
8185
public void testAuthenticationDisabled() {
8286
try (
8387
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE)
84-
.withPassword("")
85-
.withUsername("")
88+
.withPassword("cassandra")
89+
.withUsername("cassandra")
8690
) {
8791
ycqlContainer.start();
8892
assertThat(performQuery(ycqlContainer, "SELECT release_version FROM system.local").wasApplied())
@@ -110,7 +114,11 @@ public void testInitScript() {
110114

111115
@Test
112116
public void shouldStartWhenContainerIpIsUsedInWaitStrategy() {
113-
try (final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME_2_18)) {
117+
try (
118+
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME_2_18)
119+
.withUsername("cassandra")
120+
.withPassword("cassandra")
121+
) {
114122
ycqlContainer.start();
115123
boolean isQueryExecuted = performQuery(ycqlContainer, "SELECT release_version FROM system.local")
116124
.wasApplied();

0 commit comments

Comments
 (0)