Skip to content

Commit

Permalink
Merge pull request #2194 from jarrpa/e2e-tests-local
Browse files Browse the repository at this point in the history
Update e2e testing against local clusters
  • Loading branch information
k8s-ci-robot authored Jun 11, 2018
2 parents df0c07a + 28dd7b9 commit 2b01089
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions contributors/devel/e2e-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2b01089

Please sign in to comment.