Don't print the "filtered" message on generic output

Unify the various output displays and make them simpler. Don't write to
glog, but only output the info when `-v 2` to stderr.
This commit is contained in:
Clayton Coleman
2017-03-01 18:34:47 -05:00
parent 4e7c10a520
commit 34e4337e57
3 changed files with 27 additions and 35 deletions

View File

@@ -1106,6 +1106,10 @@ run_kubectl_get_tests() {
# Post-condition: The text "No resources found" should be part of the output
kube::test::if_has_string "${output_message}" 'No resources found'
# Command
output_message=$(kubectl get pods --ignore-not-found 2>&1 "${kube_flags[@]}")
# Post-condition: The text "No resources found" should not be part of the output
kube::test::if_has_not_string "${output_message}" 'No resources found'
# Command
output_message=$(kubectl get pods 2>&1 "${kube_flags[@]}" -o wide)
# Post-condition: The text "No resources found" should be part of the output
kube::test::if_has_string "${output_message}" 'No resources found'