Skip to content

Commit

Permalink
Update Yugabyte CQL driver to 4.15.0-yb-1 (#7822)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshDaryani896 committed Nov 20, 2023
1 parent f1f79dc commit 696481e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/yugabytedb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public void testSmoke() {
final YugabyteDBYCQLContainer ycqlContainer = new YugabyteDBYCQLContainer(
"yugabytedb/yugabyte:2.14.4.0-b26"
)
.withUsername("cassandra")
.withPassword("cassandra")
// }
) {
// startingYCQLContainer {
Expand All @@ -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(
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 696481e

Please sign in to comment.