Skip to content

Commit

Permalink
rolling-update-kubernetes/it now in integration-test/rolling-update-k…
Browse files Browse the repository at this point in the history
…ubernetes-cr
  • Loading branch information
johanandren committed Dec 15, 2023
1 parent 6a49c2c commit 3ff9a3a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-rollingupdate-cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
echo 'Adding proxy port'
kubectl proxy --port=8080 &
echo 'Running tests'
sbt "rolling-update-kubernetes/IntegrationTest/test"
sbt "integration-tests-rolling-update-kubernetes-cr/test"
./integration-test/rollingupdate-kubernetes/test-cr.sh
- name: Print logs on failure
Expand Down
13 changes: 10 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,18 @@ lazy val `rolling-update-kubernetes` = project
libraryDependencies := Dependencies.RollingUpdateKubernetes,
mimaPreviousArtifacts := Set.empty
)
.dependsOn(`akka-management-pki`)

lazy val `integration-tests-rolling-update-kubernetes-cr` = project
.in(file("integration-tests/rolling-update-kubernetes-cr"))
.enablePlugins(AutomateHeaderPlugin)
.disablePlugins(com.geirsson.CiReleasePlugin, MimaPlugin)
.settings(
Defaults.itSettings
name := "integration-tests-rolling-update-kubernetes-cr",
libraryDependencies := Dependencies.RollingUpdateKubernetesCrIntegration,
publish / skip := true
)
.configs(IntegrationTest)
.dependsOn(`akka-management-pki`)
.dependsOn(`rolling-update-kubernetes`)

lazy val `lease-kubernetes` = project
.in(file("lease-kubernetes"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import akka.http.scaladsl.Http
import akka.http.scaladsl.server.Directives._
import akka.management.cluster.bootstrap.ClusterBootstrap
import akka.management.scaladsl.AkkaManagement
import akka.rollingupdate.kubernetes.{ AppVersionRevision, PodDeletionCost }
import akka.rollingupdate.kubernetes.AppVersionRevision
import akka.rollingupdate.kubernetes.PodDeletionCost

object PodDeletionCostDemoApp extends App {

Expand Down
13 changes: 10 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,19 @@ object Dependencies {
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % Test,
"org.scalatest" %% "scalatest" % ScalaTestVersion % "it,test",
"org.scalatest" %% "scalatest" % ScalaTestVersion % Test,
"com.github.tomakehurst" % "wiremock-jre8" % "2.34.0" % Test,
"org.scalatestplus" %% "junit-4-13" % ScalaTestPlusJUnitVersion % "test",
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % "it,test"
"org.scalatestplus" %% "junit-4-13" % ScalaTestPlusJUnitVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % Test
)

val RollingUpdateKubernetesCrIntegration = RollingUpdateKubernetes ++ Seq(
"org.scalatest" %% "scalatest" % ScalaTestVersion % Test,
"com.github.tomakehurst" % "wiremock-jre8" % "2.34.0" % Test,
"org.scalatestplus" %% "junit-4-13" % ScalaTestPlusJUnitVersion % Test,
"com.typesafe.akka" %% "akka-testkit" % AkkaVersion % Test
)

val LeaseKubernetes = Seq(
"com.typesafe.akka" %% "akka-actor" % AkkaVersion,
"com.typesafe.akka" %% "akka-coordination" % AkkaVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package doc.akka.rollingupdate.kubernetes

import akka.actor.ActorSystem
import akka.rollingupdate.kubernetes.{ AppVersionRevision }
import akka.rollingupdate.kubernetes.AppVersionRevision

object AppVersionRevisionCompileOnly {

Expand Down

0 comments on commit 3ff9a3a

Please sign in to comment.