[CVP] Additional assert for test_k8s_dashboard_available
Change-Id: I54507def1b003b4daaaad4cb59ff5e6430d61b06
Related-PROD: PROD-30657
diff --git a/test_set/cvp-sanity/tests/test_k8s.py b/test_set/cvp-sanity/tests/test_k8s.py
index 1404225..24b53e4 100644
--- a/test_set/cvp-sanity/tests/test_k8s.py
+++ b/test_set/cvp-sanity/tests/test_k8s.py
@@ -145,6 +145,7 @@
logging.error('{} IS NOT AVAILABLE'.format(hostname))
+@pytest.mark.xfail
def test_k8s_dashboard_available(local_salt_client):
"""
# Check is kubernetes enabled on the cluster with command `salt -C 'etcd:server' cmd.run 'kubectl get svc -n kube-system'`
@@ -172,6 +173,7 @@
tgt='etcd:server',
param='kubernetes:common:addons:dashboard:public_ip')
+ assert external_ip, "Kubernetes dashboard public ip is not found in pillars"
assert external_ip.__len__() > 0, "Kubernetes dashboard is enabled but not defined in pillars"
# dashboard port 8443 is hardcoded in kubernetes formula
url = "https://{}:8443".format(external_ip)