Add kubectl-convert tests

This commit is contained in:
Maciej Szulik
2021-02-19 15:51:39 +01:00
parent 0a0c80c553
commit 5681a58ef7
2 changed files with 62 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ source "${KUBE_ROOT}/test/cmd/authentication.sh"
source "${KUBE_ROOT}/test/cmd/authorization.sh"
source "${KUBE_ROOT}/test/cmd/batch.sh"
source "${KUBE_ROOT}/test/cmd/certificate.sh"
source "${KUBE_ROOT}/test/cmd/convert.sh"
source "${KUBE_ROOT}/test/cmd/core.sh"
source "${KUBE_ROOT}/test/cmd/crd.sh"
source "${KUBE_ROOT}/test/cmd/create.sh"
@@ -298,7 +299,7 @@ setup() {
kube::util::ensure-gnu-sed
kube::log::status "Building kubectl"
make -C "${KUBE_ROOT}" WHAT="cmd/kubectl"
make -C "${KUBE_ROOT}" WHAT="cmd/kubectl cmd/kubectl-convert"
# Check kubectl
kube::log::status "Running kubectl with no options"
@@ -561,6 +562,13 @@ runTests() {
record_command run_kubectl_create_kustomization_directory_tests
fi
######################
# Convert #
######################
if kube::test::if_supports_resource "${deployments}"; then
record_command run_convert_tests
fi
######################
# Delete #
######################