-
Notifications
You must be signed in to change notification settings - Fork 238
HOWTO run the e2e test suite locally
Casey Callendrello edited this page Nov 8, 2019
·
4 revisions
Running the OpenShift / Kubernetes e2e test suite against a "local" cluster is easy. All you need to do is:
- Check out https://github.com/openshift/origin/
make WHAT=cmd/openshift-tests
- Ensure the
KUBECONFIG
environment variable is set. Then, you can run a test or a suite
use the run-test
subcommand. Pass it the full test name, with all the brackets. e.g.
KUBE_SSH_USER=core KUBE_SSH_KEY_PATH=~/.ssh/WHATEVER \
_output/local/bin/linux/amd64/openshift-tests run-test \
"[Conformance][Area:Networking][Feature:Router] The HAProxy router should expose prometheus metrics for a route [Suite:openshift/conformance/parallel/minimal]"
use the run
subcommand
KUBE_SSH_USER=core KUBE_SSH_KEY_PATH=~/.ssh/WHATEVER \
_output/local/bin/linux/amd64/openshift-tests\
run kubernetes/conformance
You can get the list of test-suites with --help
. If you're doing network hacking, then the most useful suites are kubernetes/conformance
and openshift/conformance
.