Don't print reason or message if they are empty on pods

For running pods they are typically empty and convey no value. Don't
print images twice.
This commit is contained in:
Clayton Coleman
2016-02-16 18:43:59 -05:00
parent 3616b4bfec
commit 778fb1798b
3 changed files with 13 additions and 9 deletions

View File

@@ -567,14 +567,15 @@ var _ = Describe("Kubectl client", func() {
requiredStrings := [][]string{
{"Name:", "redis-master-"},
{"Namespace:", ns},
{"Image(s):", "redis"},
{"Node:"},
{"Labels:", "app=redis", "role=master"},
{"Status:", "Running"},
{"Reason:"},
{"Message:"},
{"IP:"},
{"Controllers:", "ReplicationController/redis-master"}}
{"Controllers:", "ReplicationController/redis-master"},
{"Image:", "redis"},
{"cpu:", "BestEffort"},
{"State:", "Running"},
}
checkOutput(output, requiredStrings)
})