Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Dec 16, 2023
1 parent 2e0cc28 commit e3bda5f
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@ import org.apache.kyuubi.engine.jdbc.WithJdbcEngine

trait WithMySQLEngine extends WithJdbcEngine with TestContainerForAll {

private val mysqlDockerImage = "mysql:8.0.32"

override val containerDef = MySQLContainer.Def(
dockerImageName = DockerImageName.parse(mysqlDockerImage),
dockerImageName = DockerImageName.parse("mysql:8.0.32"),
username = "root",
password = "kyuubi")

override def withKyuubiConf: Map[String, String] = withContainers { mysqlContainer =>
Map(
ENGINE_SHARE_LEVEL.key -> "SERVER",
ENGINE_JDBC_CONNECTION_URL.key -> mysqlContainer.jdbcUrl,
ENGINE_JDBC_CONNECTION_USER.key -> "root",
ENGINE_JDBC_CONNECTION_PASSWORD.key -> "kyuubi",
ENGINE_JDBC_CONNECTION_USER.key -> mysqlContainer.username,
ENGINE_JDBC_CONNECTION_PASSWORD.key -> mysqlContainer.password,
ENGINE_TYPE.key -> "jdbc",
ENGINE_JDBC_SHORT_NAME.key -> "mysql",
ENGINE_JDBC_DRIVER_CLASS.key -> "com.mysql.cj.jdbc.Driver")
ENGINE_JDBC_DRIVER_CLASS.key -> mysqlContainer.driverClassName)
}
}

0 comments on commit e3bda5f

Please sign in to comment.