Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YCQL driver update #7822

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading