1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00
Files
prometheus-operator/test/e2e
dongjiang 4f2b3121a8 feat: update probe status subresource on Prometheus reconciliations (#7934)
---------

Signed-off-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: Simon Pasquier <spasquie@redhat.com>
2025-09-24 10:41:43 +02:00
..
2025-03-14 15:02:51 +01:00

E2E Testing

End-to-end (e2e) testing is automated testing for real user scenarios.

Build and run test

Prerequisites:

  • a running k8s cluster and kube config. We will need to pass kube config as arguments.
  • Have kubeconfig file ready.
  • Have prometheus operator image ready.

e2e tests are written as Go test. All go test techniques apply, e.g. picking what to run, timeout length. Let's say I want to run all tests in "test/e2e/":

$ go test -v ./test/e2e/ --kubeconfig "$HOME/.kube/config" --operator-image=quay.io/prometheus-operator/prometheus-operator