mirror of https://github.com/k3s-io/k3s
Feedback from review
parent
6770fa7ba5
commit
30c78c7e1c
|
@ -1,6 +1,6 @@
|
|||
# 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
|
||||
|
||||
|
@ -27,7 +27,7 @@ if kube::test::if_supports_resource "${replicasets}" ; then
|
|||
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
|
||||
|
|
|
@ -386,12 +386,23 @@ runTests() {
|
|||
kubectl get "${kube_flags[@]}" -f hack/testdata/kubernetes-service.yaml
|
||||
fi
|
||||
|
||||
cleanup(){
|
||||
kube::test::clear_all
|
||||
if [[ -n "${foundError}" ]]; then
|
||||
echo "FAILED TESTS: ""${foundError}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ -n "${WHAT-}" ]]; then
|
||||
for pkg in ${WHAT}
|
||||
do
|
||||
record_command run_${pkg}_tests
|
||||
done
|
||||
else
|
||||
cleanup
|
||||
return
|
||||
fi
|
||||
|
||||
#########################
|
||||
# Kubectl version #
|
||||
#########################
|
||||
|
@ -854,11 +865,6 @@ runTests() {
|
|||
####################
|
||||
|
||||
record_command run_wait_tests
|
||||
fi
|
||||
kube::test::clear_all
|
||||
|
||||
if [[ -n "${foundError}" ]]; then
|
||||
echo "FAILED TESTS: ""${foundError}"
|
||||
exit 1
|
||||
fi
|
||||
cleanup
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue