From bdd17d4ca67894cc1f49bae2ca733046b294f399 Mon Sep 17 00:00:00 2001 From: toyoda Date: Wed, 30 Jan 2019 11:46:14 +0900 Subject: [PATCH] add test for getting componentstatuses --- test/e2e/kubectl/kubectl.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/e2e/kubectl/kubectl.go b/test/e2e/kubectl/kubectl.go index 4c8320e951..ca09707401 100644 --- a/test/e2e/kubectl/kubectl.go +++ b/test/e2e/kubectl/kubectl.go @@ -724,6 +724,19 @@ metadata: }) }) + framework.KubeDescribe("Kubectl get componentstatuses", func() { + It("should get componentstatuses", func() { + By("getting list of componentstatuses") + output := framework.RunKubectlOrDie("get", "componentstatuses", "-o", "jsonpath={.items[*].metadata.name}") + components := strings.Split(output, " ") + By("getting details of componentstatuses") + for _, component := range components { + By("getting status of " + component) + framework.RunKubectlOrDie("get", "componentstatuses", component) + } + }) + }) + framework.KubeDescribe("Kubectl apply", func() { It("should apply a new configuration to an existing RC", func() { controllerJson := commonutils.SubstituteImageName(string(readTestFileOrDie(redisControllerFilename)))