This repository has been archived by the owner on Sep 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scala 2.13 * SBT 1.3.13 * better-files instead of scala-arm * Library updates
- Loading branch information
Lukas Sembera
committed
Jul 26, 2020
1 parent
ad79784
commit b6d07e8
Showing
13 changed files
with
147 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
object Versions { | ||
val scala = "2.12.11" | ||
val akka = "2.5.30" | ||
val scala = "2.13.3" | ||
val akka = "2.6.8" | ||
val scalaLogging = "3.9.2" | ||
val snakeYaml = "1.26" | ||
val scalaArm = "2.0" | ||
val betterFiles = "3.9.1" | ||
val scalaCsv = "1.3.6" | ||
val commonsMath = "3.6.1" | ||
val scopt = "3.7.1" | ||
val commonsLang3 = "3.10" | ||
val commonsLang3 = "3.11" | ||
val logbackClassic = "1.2.3" | ||
val scalatest = "3.0.8" | ||
val postgres = "42.2.11" | ||
val scalatest = "3.2.0" | ||
val postgres = "42.2.14" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
sbt.version=1.3.8 | ||
sbt.version=1.3.13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.12") | ||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.2") | ||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
src/it/scala/eu/semberal/dbstress/integration/OrchestratorIntegrationTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
package eu.semberal.dbstress.integration | ||
|
||
import akka.testkit.ImplicitSender | ||
import org.scalatest.{FlatSpecLike, Matchers} | ||
import resource.managed | ||
import org.scalatest.flatspec.AnyFlatSpecLike | ||
|
||
import scala.io.Source | ||
|
||
class OrchestratorIntegrationTest extends FlatSpecLike with Matchers with ImplicitSender with AbstractDbstressIntegrationTest { | ||
class OrchestratorIntegrationTest extends AnyFlatSpecLike with ImplicitSender with AbstractDbstressIntegrationTest { | ||
|
||
"Orchestrator" should "successfully launch the test of PostgreSQL and verify results" in { | ||
val tmpDir = executeTest("config.postgres.yaml") | ||
|
||
/* Test generated CSV file*/ | ||
val csvFiles = tmpDir.listFiles(csvFilter) | ||
csvFiles should have size 1 | ||
managed(Source.fromFile(csvFiles.head)) foreach { source => | ||
val lines = source.getLines().toList | ||
lines should have size 3 | ||
lines.tail.foreach { line => | ||
line should startWith regex "unit[1-2]{1}".r | ||
} | ||
val csvFiles = tmpDir.glob("*.csv").toList | ||
assert(csvFiles.length === 1) | ||
|
||
val lines = csvFiles.head.lines | ||
assert(lines.size === 3) | ||
|
||
lines.tail.foreach { line => | ||
assert(line.matches("^unit[1-2].*$")) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.