From 28dd7b935c59f603c434e1146a90a7630668bcb2 Mon Sep 17 00:00:00 2001 From: "Jose A. Rivera" Date: Fri, 25 May 2018 19:06:41 -0500 Subject: Update e2e testing against local clusters Signed-off-by: Jose A. Rivera --- contributors/devel/e2e-tests.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/contributors/devel/e2e-tests.md b/contributors/devel/e2e-tests.md index bd20ee4e..67453ba5 100644 --- a/contributors/devel/e2e-tests.md +++ b/contributors/devel/e2e-tests.md @@ -414,8 +414,14 @@ end of aforementioned script. #### Testing against local clusters -In order to run an E2E test against a locally running cluster, point the tests -at a custom host directly: +In order to run an E2E test against a locally running cluster, first make sure +to have a local build of the tests: + +```sh +go run hack/e2e.go -- --build +``` + +Then point the tests at a custom host directly: ```sh export KUBECONFIG=/path/to/kubeconfig @@ -430,6 +436,14 @@ To control the tests that are run: go run hack/e2e.go -- --provider=local --test --test_args="--ginkgo.focus=Secrets" ``` +You will also likely need to specify `minStartupPods` to match the number of +nodes in your cluster. If you're testing against a cluster set up by +`local-up-cluster.sh`, you will need to do the following: + +```sh +go run hack/e2e.go -- --provider=local --test --test_args="--minStartupPods=1 --ginkgo.focus=Secrets" +``` + ### Version-skewed and upgrade testing We run version-skewed tests to check that newer versions of Kubernetes work -- cgit v1.2.3