diff --git a/build.sbt b/build.sbt index aba4e48..0e8ed38 100644 --- a/build.sbt +++ b/build.sbt @@ -65,9 +65,9 @@ "junit" % "junit" % "4.13" % "test", "org.scalatra" %% "scalatra-scalatest" % ScalatraVersion % "test", "org.mockito" % "mockito-core" % "3.3.3" % "test", - "com.dimafeng" %% "testcontainers-scala" % "0.37.0" % "test", - "org.testcontainers" % "mysql" % "1.14.3" % "test", - "org.testcontainers" % "postgresql" % "1.14.3" % "test", + "com.dimafeng" %% "testcontainers-scala" % "0.38.8" % "test", + "org.testcontainers" % "mysql" % "1.15.1" % "test", + "org.testcontainers" % "postgresql" % "1.15.1" % "test", "net.i2p.crypto" % "eddsa" % "0.3.0", "is.tagomor.woothee" % "woothee-java" % "1.11.0", "org.ec4j.core" % "ec4j-core" % "0.0.3", diff --git a/src/test/scala/gitbucket/core/GitBucketCoreModuleSpec.scala b/src/test/scala/gitbucket/core/GitBucketCoreModuleSpec.scala index 1937379..eba373d 100644 --- a/src/test/scala/gitbucket/core/GitBucketCoreModuleSpec.scala +++ b/src/test/scala/gitbucket/core/GitBucketCoreModuleSpec.scala @@ -9,6 +9,7 @@ import org.junit.runner.Description import org.scalatest.funsuite.AnyFunSuite import org.scalatest.Tag +import org.testcontainers.utility.DockerImageName object ExternalDBTest extends Tag("ExternalDBTest") @@ -50,7 +51,7 @@ Seq("11", "10").foreach { tag => test(s"Migration PostgreSQL $tag", ExternalDBTest) { - val container = PostgreSQLContainer(s"postgres:$tag") + val container = PostgreSQLContainer(DockerImageName.parse(s"postgres:$tag")) container.start() try {