*: run kubernetes tests in travis

This commit is contained in:
Eric Chiang
2017-09-19 15:31:58 -07:00
parent 64c97c7308
commit 3d2d92b31b
5 changed files with 122 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
## Kubernetes
Kubernetes tests will only run if the `DEX_KUBECONFIG` environment variable is set.
Kubernetes tests run against a Kubernetes API server, and are enabled by the `DEX_KUBECONFIG` environment variable:
```
$ export DEX_KUBECONFIG=~/.kube/config
@@ -10,7 +10,11 @@ $ go test -v -i ./storage/kubernetes
$ go test -v ./storage/kubernetes
```
Because third party resources creation isn't synchronized it's expected that the tests fail the first time. Fear not, and just run them again.
These tests can be executed locally using docker by running the following script:
```
$ ./scripts/test-k8s.sh
```
## Postgres