Commit 0a9a8aa4 authored by Marcin Wielgus's avatar Marcin Wielgus

E2E test for kubectl version

parent 8f3c3108
......@@ -283,6 +283,18 @@ var _ = Describe("Kubectl client", func() {
})
})
})
Describe("Kubectl version", func() {
It("should check is all data is printed", func() {
version := runKubectl("version")
requiredItems := []string{"Client Version:", "Server Version:", "Major:", "Minor:", "GitCommit:"}
for _, item := range requiredItems {
if !strings.Contains(version, item) {
Failf("Required item %s not found in %s", item, version)
}
}
})
})
})
func curl(addr string) (string, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment