Some improvements and changed from Docker container to Pod
- Improved Sanity tests (timeouts, assertion details)
- Changed the YAML of the toolset pod to run the tests
from instead of the Docker container approach
- Deleted some obsolete scripts from the MOS testing
Related-PROD: K0RQA-15
Change-Id: I9d6482324c75db8e667c6d17ab948bdba4a05bcc
diff --git a/k8s/sanity-checks/test_sanity_checks.py b/k8s/sanity-checks/test_sanity_checks.py
index 8f52604..2ad5267 100644
--- a/k8s/sanity-checks/test_sanity_checks.py
+++ b/k8s/sanity-checks/test_sanity_checks.py
@@ -181,9 +181,11 @@
for feature in summaries:
feature_id = feature.get("featureID")
status = feature.get("status")
+ failureMessage = feature.get("failureMessage")
if status != "Provisioned":
not_provisioned.append(
- f"{namespace}/{name} → {feature_id}: {status}")
+ f"{namespace}/{name} -> {feature_id}: {status}"
+ f" -> failureMessage: {failureMessage}")
assert not not_provisioned, (
"Some ClusterSummaries have non-Provisioned features:\n"
@@ -200,9 +202,9 @@
pytest.skip(f"Target cluster deployment '{cld.name}' is not found in "
f"namespace '{settings.TARGET_NAMESPACE}'. Please check "
f"TARGET_NAMESPACE and TARGET_CLD env vars.")
- cld.check.check_cluster_readiness(timeout=600)
- cld.check.check_k8s_pods()
- cld.check.check_k8s_nodes()
+ cld.check.check_cluster_readiness(timeout=30)
+ cld.check.check_k8s_pods(timeout=30)
+ cld.check.check_k8s_nodes(timeout=30)
@pytest.mark.sanity
@@ -216,6 +218,6 @@
ns = kcm_manager.get_namespace(namespace)
cld = ns.get_cluster_deployment(cld_name)
- cld.check.check_cluster_readiness(timeout=600)
- cld.check.check_k8s_pods()
- cld.check.check_k8s_nodes()
+ cld.check.check_cluster_readiness(timeout=30)
+ cld.check.check_k8s_pods(timeout=30)
+ cld.check.check_k8s_nodes(timeout=30)