summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork8s-ci-robot <k8s-ci-robot@users.noreply.github.com>2018-06-11 11:01:29 -0700
committerGitHub <noreply@github.com>2018-06-11 11:01:29 -0700
commit2b010899411d5bee6ca0fdf621d6ace1bfaf8782 (patch)
tree36631dee8d20f1538a575d2fd09bd8a887973ae5
parentdf0c07a4c4a735c96a1b40887dd5577e201f27fb (diff)
parent28dd7b935c59f603c434e1146a90a7630668bcb2 (diff)
Merge pull request #2194 from jarrpa/e2e-tests-local
Update e2e testing against local clusters
-rw-r--r--contributors/devel/e2e-tests.md18
1 files 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