Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating prerequisites for integration tests. #131

Merged
merged 2 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-lease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}
Expand Down
4 changes: 2 additions & 2 deletions .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down