Make CanBeExposed and CanBeAutoscaled composable

This commit is contained in:
kargakis
2015-10-20 17:50:20 +02:00
parent e05819f36a
commit 4befdf5b49
2 changed files with 14 additions and 7 deletions

View File

@@ -766,8 +766,8 @@ __EOF__
# Pre-condition: don't need
# Command
output_message=$(! kubectl expose nodes 127.0.0.1 2>&1 "${kube_flags[@]}")
# Post-condition: the error message has "invalid resource" string
kube::test::if_has_string "${output_message}" 'invalid resource'
# Post-condition: the error message has "cannot expose" string
kube::test::if_has_string "${output_message}" 'cannot expose'
### Try to generate a service with invalid name (exceeding maximum valid size)
# Pre-condition: use --name flag