diff --git a/modules/yugabytedb/build.gradle b/modules/yugabytedb/build.gradle index 2f04334ecb2..01c8b8d1928 100644 --- a/modules/yugabytedb/build.gradle +++ b/modules/yugabytedb/build.gradle @@ -4,7 +4,7 @@ dependencies { api project(':jdbc') testImplementation project(':jdbc-test') // YCQL driver - testImplementation 'com.yugabyte:java-driver-core:4.6.0-yb-12' + testImplementation 'com.yugabyte:java-driver-core:4.15.0-yb-1' // YSQL driver testRuntimeOnly 'com.yugabyte:jdbc-yugabytedb:42.3.5-yb-3' } diff --git a/modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java b/modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java index 62b299edea8..fe4723b409f 100644 --- a/modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java +++ b/modules/yugabytedb/src/test/java/org/testcontainers/junit/yugabytedb/YugabyteDBYCQLTest.java @@ -26,6 +26,8 @@ public void testSmoke() { final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer( "yugabytedb/yugabyte:2.14.4.0-b26" ) + .withUsername("cassandra") + .withPassword("cassandra") // } ) { // startingYCQLContainer { @@ -43,6 +45,8 @@ public void testCustomKeyspace() { try ( final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE) .withKeyspaceName(key) + .withUsername("cassandra") + .withPassword("cassandra") ) { ycqlContainer.start(); assertThat( @@ -81,8 +85,8 @@ public void testAuthenticationEnabled() { public void testAuthenticationDisabled() { try ( final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(YBDB_TEST_IMAGE) - .withPassword("") - .withUsername("") + .withPassword("cassandra") + .withUsername("cassandra") ) { ycqlContainer.start(); assertThat(performQuery(ycqlContainer, "SELECT release_version FROM system.local").wasApplied()) @@ -110,7 +114,11 @@ public void testInitScript() { @Test public void shouldStartWhenContainerIpIsUsedInWaitStrategy() { - try (final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME_2_18)) { + try ( + final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(IMAGE_NAME_2_18) + .withUsername("cassandra") + .withPassword("cassandra") + ) { ycqlContainer.start(); boolean isQueryExecuted = performQuery(ycqlContainer, "SELECT release_version FROM system.local") .wasApplied();