Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Dec 18, 2023
1 parent e3bda5f commit fe48bd0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fe48bd0

Please sign in to comment.