mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
add test for getting componentstatuses
This commit is contained in:
parent
c9e14c85f5
commit
bdd17d4ca6
@ -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() {
|
framework.KubeDescribe("Kubectl apply", func() {
|
||||||
It("should apply a new configuration to an existing RC", func() {
|
It("should apply a new configuration to an existing RC", func() {
|
||||||
controllerJson := commonutils.SubstituteImageName(string(readTestFileOrDie(redisControllerFilename)))
|
controllerJson := commonutils.SubstituteImageName(string(readTestFileOrDie(redisControllerFilename)))
|
||||||
|
Loading…
Reference in New Issue
Block a user