diff --git a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/mysql/WithMySQLEngine.scala b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/mysql/WithMySQLEngine.scala index db4549fc07a..39d2e0a59ec 100644 --- a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/mysql/WithMySQLEngine.scala +++ b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/mysql/WithMySQLEngine.scala @@ -25,8 +25,10 @@ import org.apache.kyuubi.engine.jdbc.WithJdbcEngine trait WithMySQLEngine extends WithJdbcEngine with TestContainerForAll { - override val containerDef = MySQLContainer.Def( - dockerImageName = DockerImageName.parse("mysql:8.0.32"), + private val mysqlDockerImage = "mysql:8.0.32" + + override val containerDef: MySQLContainer.Def = MySQLContainer.Def( + dockerImageName = DockerImageName.parse(mysqlDockerImage), username = "root", password = "kyuubi") @@ -38,6 +40,6 @@ trait WithMySQLEngine extends WithJdbcEngine with TestContainerForAll { ENGINE_JDBC_CONNECTION_PASSWORD.key -> mysqlContainer.password, ENGINE_TYPE.key -> "jdbc", ENGINE_JDBC_SHORT_NAME.key -> "mysql", - ENGINE_JDBC_DRIVER_CLASS.key -> mysqlContainer.driverClassName) + ENGINE_JDBC_DRIVER_CLASS.key -> "com.mysql.cj.jdbc.Driver") } } diff --git a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/phoenix/WithPhoenixContainer.scala b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/phoenix/WithPhoenixContainer.scala index 2eba14d5593..614261e840f 100644 --- a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/phoenix/WithPhoenixContainer.scala +++ b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/phoenix/WithPhoenixContainer.scala @@ -27,7 +27,7 @@ trait WithPhoenixContainer extends WithJdbcServerContainer { private val phoenixDockerImage = "iteblog/hbase-phoenix-docker:1.0" - override val containerDef = GenericContainer.Def( + override val containerDef: GenericContainer.Def[GenericContainer] = GenericContainer.Def( dockerImage = phoenixDockerImage, exposedPorts = Seq(PHOENIX_PORT), waitStrategy = Wait.forListeningPort) diff --git a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/postgresql/WithPostgreSQLContainer.scala b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/postgresql/WithPostgreSQLContainer.scala index 5021fef92f9..45f85831d7b 100644 --- a/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/postgresql/WithPostgreSQLContainer.scala +++ b/externals/kyuubi-jdbc-engine/src/test/scala/org/apache/kyuubi/engine/jdbc/postgresql/WithPostgreSQLContainer.scala @@ -23,8 +23,10 @@ import org.apache.kyuubi.engine.jdbc.WithJdbcServerContainer trait WithPostgreSQLContainer extends WithJdbcServerContainer { - val containerDef = PostgreSQLContainer.Def( - dockerImageName = DockerImageName.parse(s"postgres:16"), + private val postgreSQLDockerImage = "postgres:16.1" + + val containerDef: PostgreSQLContainer.Def = PostgreSQLContainer.Def( + dockerImageName = DockerImageName.parse(postgreSQLDockerImage), databaseName = "postgres", username = "kyuubi", password = "postgres")