add singular resource names to discovery

This commit is contained in:
deads2k
2017-03-17 13:28:11 -04:00
parent 0a6d82d8e7
commit 36cb9ed640
54 changed files with 800 additions and 382 deletions

View File

@@ -2955,7 +2955,7 @@ runTests() {
output_message=$(kubectl get --raw=/api/v1)
## test if a short name is exported during discovery
kube::test::if_has_string "${output_message}" '{"name":"configmaps","namespaced":true,"kind":"ConfigMap","verbs":\["create","delete","deletecollection","get","list","patch","update","watch"\],"shortNames":\["cm"\]}'
kube::test::if_has_string "${output_message}" '{"name":"configmaps","singularName":"","namespaced":true,"kind":"ConfigMap","verbs":\["create","delete","deletecollection","get","list","patch","update","watch"\],"shortNames":\["cm"\]}'
###########################
# POD creation / deletion #