Commit 30c78c7e authored by Thomas Runyon's avatar Thomas Runyon

Feedback from review

parent 6770fa7b
# Kubernetes Command-Line Integration Test Suite # Kubernetes Command-Line Integration Test Suite
This document describes how Kubernetes should interact with the Kubernetes command-line integration test suite. This document describes how you can use the Kubernetes command-line integration test-suite.
## Running Tests ## Running Tests
...@@ -27,7 +27,7 @@ if kube::test::if_supports_resource "${replicasets}" ; then ...@@ -27,7 +27,7 @@ if kube::test::if_supports_resource "${replicasets}" ; then
fi fi
``` ```
Be sure to validate any supported resouces required for the test by using the `kue::test::if_supports_resource` function. Be sure to validate any supported resouces required for the test by using the `kube::test::if_supports_resource` function.
### New File ### New File
......
...@@ -386,12 +386,23 @@ runTests() { ...@@ -386,12 +386,23 @@ runTests() {
kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml
fi fi
cleanup(){
kube::test::clear_all
if [[ -n "${foundError}" ]]; then
echo "FAILED TESTS: ""${foundError}"
exit 1
fi
}
if [[ -n "${WHAT-}" ]]; then if [[ -n "${WHAT-}" ]]; then
for pkg in ${WHAT} for pkg in ${WHAT}
do do
record_command run_${pkg}_tests record_command run_${pkg}_tests
done done
else cleanup
return
fi
######################### #########################
# Kubectl version # # Kubectl version #
######################### #########################
...@@ -854,11 +865,6 @@ runTests() { ...@@ -854,11 +865,6 @@ runTests() {
#################### ####################
record_command run_wait_tests record_command run_wait_tests
fi
kube::test::clear_all
if [[ -n "${foundError}" ]]; then cleanup
echo "FAILED TESTS: ""${foundError}"
exit 1
fi
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment