Use a more generic kubectl command to check status 99/1899/3
authorvalentin.radulescu <valentin.radulescu@enea.com>
Fri, 1 Nov 2019 15:14:26 +0000 (08:14 -0700)
committervalentin.radulescu <valentin.radulescu@enea.com>
Tue, 5 Nov 2019 18:58:25 +0000 (10:58 -0800)
VAL-73:
Use "kubectl version" instead of "kubectl get pods
--all-namespaces" to check status.

Signed-off-by: valentin.radulescu <valentin.radulescu@enea.com>
Change-Id: Ie7549f9af0060aa7e13e363f0a3b289e290a0bdf

tests/k8s/conformance/conformance.robot

index 2c9d3ee..dbf66be 100644 (file)
@@ -78,9 +78,9 @@ Check that k8s cluster is reachable
 
         # Make sure the pod is reachable with the local k8s client
         ${rc}  ${output}=       Run And Return Rc And Output
-                                ...  kubectl get pods --all-namespaces
+                                ...  kubectl version
         Append To File          ${LOG}  ${output}${\n}
-        Should Contain          ${output}      kube-system
+        Should Contain          ${output}      Server Version: version.Info
 
 Cleanup Sonobuoy
         ${rc}  ${output}=       Run And Return Rc And Output