fix typos in pkg/validation and test/cmd

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2022-09-20 18:34:12 +05:30
parent 6ee3cbd931
commit 6621db7dd1
6 changed files with 8 additions and 8 deletions

View File

@@ -306,7 +306,7 @@ __EOF__
kubectl delete --kustomize hack/testdata/kustomize
## kubectl apply multiple resources with one failure during apply phase.
# Pre-Condition: namepace does not exist and no POD exists
# Pre-Condition: namespace does not exist and no POD exists
output_message=$(! kubectl get namespace multi-resource-ns 2>&1 "${kube_flags[@]:?}")
kube::test::if_has_string "${output_message}" 'namespaces "multi-resource-ns" not found'
kube::test::wait_object_assert pods "{{range.items}}{{${id_field:?}}}:{{end}}" ''

View File

@@ -27,7 +27,7 @@ run_RESTMapper_evaluation_tests() {
RESTMAPPER_ERROR_FILE="${KUBE_TEMP}/restmapper-error"
### Non-existent resource type should give a recognizeable error
### Non-existent resource type should give a recognizable error
# Pre-condition: None
# Command
kubectl get "${kube_flags[@]:?}" unknownresourcetype 2>"${RESTMAPPER_ERROR_FILE}" || true

View File

@@ -201,7 +201,7 @@ EOF
output_message=$(kubectl "${kube_flags[@]:?}" create service nodeport foo --dry-run=client --tcp=8080 --template="{{ .metadata.name }}:")
kube::test::if_has_string "${output_message}" 'foo:'
# check that "config view" ouputs "yaml" as its default output format
# check that "config view" outputs "yaml" as its default output format
output_message=$(kubectl "${kube_flags[@]:?}" config view)
kube::test::if_has_string "${output_message}" 'kind: Config'