From f840f347d2dc7b1b9fb07c610e410bf08245d4d8 Mon Sep 17 00:00:00 2001 From: Samuele Resca Date: Mon, 16 Oct 2023 22:08:00 +0100 Subject: [PATCH 1/2] Updating prerequisites for integration tests. --- .github/workflows/integration-tests-lease.yml | 2 +- README.md | 12 ++++++++++++ .../{minikube-test.sh => test.sh} | 0 3 files changed, 13 insertions(+), 1 deletion(-) rename lease-kubernetes-int-test/{minikube-test.sh => test.sh} (100%) diff --git a/.github/workflows/integration-tests-lease.yml b/.github/workflows/integration-tests-lease.yml index f4afc6ed..de3f75b0 100644 --- a/.github/workflows/integration-tests-lease.yml +++ b/.github/workflows/integration-tests-lease.yml @@ -57,7 +57,7 @@ jobs: kubectl proxy --port=8080 & echo 'Running tests' sbt ";lease-kubernetes/it:test" - ./lease-kubernetes-int-test/minikube-test.sh + ./lease-kubernetes-int-test/test.sh - name: Print logs on failure if: ${{ failure() }} diff --git a/README.md b/README.md index 8c2b994b..0eb1bdbf 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,18 @@ The documentation is available at - Or you can add a file called `version.sbt` to the same directory that has the `build.sbt` containing something like - `ThisBuild / version := "1.0.0"` +### Running integration tests + +The integration tests requires an Kubernetes API server running on `localhost:8080`. You can run a local Kubernetes cluster using [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/). +You can bind the API server on `localhost:8080` using `kubectl proxy --port=8080`. + +The following scripts can be used to run the integration tests: + +- `./integration-test/kubernetes-api/test.sh` run the integration tests for the Kubernetes API. +- `./integration-test/kubernetes-dns/test.sh` run the integration tests related to the Kubernetes DNS-based discovery using the service name. +- `./integration-test/kubernetes-dns/test.sh` run the integration tests for the Kubernetes DNS-based discovery using the service name. +- `./lease-kubernetes-int-test/test.sh` run the integration tests for the Kubernetes lease implementation. + ## Community There are several ways to interact with the Apache Pekko community: diff --git a/lease-kubernetes-int-test/minikube-test.sh b/lease-kubernetes-int-test/test.sh similarity index 100% rename from lease-kubernetes-int-test/minikube-test.sh rename to lease-kubernetes-int-test/test.sh From bc3fb3ea40f43fd0b62039a68f504aea210ae380 Mon Sep 17 00:00:00 2001 From: Samuele Resca Date: Mon, 16 Oct 2023 22:08:23 +0100 Subject: [PATCH 2/2] Updating scala-steward.conf --- .scala-steward.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scala-steward.conf b/.scala-steward.conf index bfe4189e..b5f3bf25 100644 --- a/.scala-steward.conf +++ b/.scala-steward.conf @@ -1,13 +1,13 @@ pullRequests.frequency = "@monthly" updates.pin = [ - # To be updated in tandem with upstream Akka + # To be updated in tandem with upstream Pekko {groupId = "com.fasterxml.jackson.core", version = "2.11."} {groupId = "org.scalatest", artifactId = "scalatest", version = "3.1."} ] updates.ignore = [ - {groupId = "com.typesafe.akka"} + {groupId = "org.apache.pekko"} {groupId = "org.scalameta", artifactId = "scalafmt-core"} // these will get updated along with jackson-core, so no need to update them // separately