Merge pull request #1072 from ericchiang/k8s-test

*: run kubernetes tests in travis
This commit is contained in:
rithu leena john
2017-10-31 10:34:26 -07:00
committed by GitHub
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