diff --git a/test/e2e/kubectl.go b/test/e2e/kubectl.go index b141ce0b314..d52eb64a3cb 100644 --- a/test/e2e/kubectl.go +++ b/test/e2e/kubectl.go @@ -348,6 +348,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) {