Merge pull request #73508 from k-toyoda-pi/add_test_conmponentstatuses

Add e2e test for getting componentstatuses by kubectl
pull/564/head
Kubernetes Prow Robot 2019-02-26 01:55:20 -08:00 committed by GitHub
commit 0d98463f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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)))