The e2e tests leverages on go testing package to run tests. In these tests,
we execute kedge create on Kubernetes and OpenShift cluster with examples provided under docs/examples.
Pre-requisites
kubectl
Both kubernetes and OpenShift tests rely on kubectl
for validation. You need to have kubectl installed before running the tests.
Running Kubernetes tests
For running the Kubernetes tests, you need a kubernetes cluster up and running.
Minikube is a simplest way to do that.
Run make test-e2e to execute the test.
You can also provide the following options while running the tests:
PARALLEL=<value>: no of tests to run in parallel
TIMEOUT=<value> : the maximum time for which the tests could run after which the tests timeout
VERBOSE=yes : verbose mode
Example usage: PARALLEL=3 TIMEOUT=10m VERBOSE=yes make test-e2e
Run the binary against the Kubernetes cluster using a specified command against a specific namespace
requirement: your binary must have a --namespace parameter to specify a namespace location as well as
-f to specific a file. Ex: command --namespace foobar -f foo.yaml -f bar.yaml