fix typos in pkg/validation and test/cmd
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
@@ -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}}" ''
|
||||
|
@@ -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
|
||||
|
@@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user