Skip to content

Commit 0d98463

Browse files
authored
Merge pull request kubernetes#73508 from k-toyoda-pi/add_test_conmponentstatuses
Add e2e test for getting componentstatuses by kubectl
2 parents b3ca826 + bdd17d4 commit 0d98463

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,19 @@ metadata:
724724
})
725725
})
726726

727+
framework.KubeDescribe("Kubectl get componentstatuses", func() {
728+
It("should get componentstatuses", func() {
729+
By("getting list of componentstatuses")
730+
output := framework.RunKubectlOrDie("get", "componentstatuses", "-o", "jsonpath={.items[*].metadata.name}")
731+
components := strings.Split(output, " ")
732+
By("getting details of componentstatuses")
733+
for _, component := range components {
734+
By("getting status of " + component)
735+
framework.RunKubectlOrDie("get", "componentstatuses", component)
736+
}
737+
})
738+
})
739+
727740
framework.KubeDescribe("Kubectl apply", func() {
728741
It("should apply a new configuration to an existing RC", func() {
729742
controllerJson := commonutils.SubstituteImageName(string(readTestFileOrDie(redisControllerFilename)))

0 commit comments

Comments
 (0)