Add detect-master to local provider to get e2e working

go run hack/e2e.go -v -test --check_node_count=false --test_args="--ginkgo.focus=\[Feature:Volumes\]"
This commit is contained in:
Angus Salkeld 2016-07-12 09:29:49 +02:00
parent eecbfb1a28
commit 71a9487f70
2 changed files with 9 additions and 2 deletions

View File

@ -18,3 +18,10 @@ function prepare-e2e() {
echo "Local doesn't need special preparations for e2e tests" 1>&2 echo "Local doesn't need special preparations for e2e tests" 1>&2
} }
detect-master() {
KUBE_MASTER=localhost
KUBE_MASTER_IP=127.0.0.1
KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"
echo "Using master: $KUBE_MASTER (external IP: $KUBE_MASTER_IP)"
}

View File

@ -397,13 +397,13 @@ at a custom host directly:
```sh ```sh
export KUBECONFIG=/path/to/kubeconfig export KUBECONFIG=/path/to/kubeconfig
go run hack/e2e.go -v --test --check_node_count=false --test_args="--host=http://127.0.0.1:8080" go run hack/e2e.go -v --test --check_node_count=false
``` ```
To control the tests that are run: To control the tests that are run:
```sh ```sh
go run hack/e2e.go -v --test --check_node_count=false --test_args="--host=http://127.0.0.1:8080" --ginkgo.focus="Secrets" go run hack/e2e.go -v --test --check_node_count=false --test_args="--ginkgo.focus="Secrets"
``` ```
## Kinds of tests ## Kinds of tests