The Eventing Publisher Proxy uses the following testing activities:
To run the unit and integration tests, you must run the following command:
make generate-and-test
The command ensures that all necessary tooling is executed if the source code changed, or if this is your first time to execute the tests
Because E2E tests need a Kubernetes cluster to run on, they are separate from the remaining tests. The E2E tests are executed on any PR using GithubActions. For local execution, follow the steps in the action.
As prerequisites, you need:
- Docker to build the EPP image.
make docker-build docker-push IMG=<container-registry>/eventing-publisher-proxy:<tag> export EPP_IMAGE=$IMG
- kubectl
- Access to a Kubernetes cluster (like k3d or k8s)
- Eventing Manager to execute commands in its MAKEFILE.