Add jenkins charts
[it/dep.git] / smo-install / test / pythonsdk / src / orantests / smo / onap.py
index 879a3fd..e79cbe7 100644 (file)
@@ -43,8 +43,8 @@ class Onap():
         run(cmd, shell=True, check=False)
         cmd = "kubectl get pods --field-selector status.phase!=Running -n onap | wc -l"
         result = check_output(cmd, shell=True).decode('utf-8')
-        logger.info("Number of Onap pods not in Running state (expected <= 8): %s", result)
-        if int(result) <= 8:
+        logger.info("Number of Onap pods not in Running state (expected <= %s): %s", settings.ONAP_PODS_WHEN_READY, result)
+        if int(result) <= settings.ONAP_PODS_WHEN_READY:
             logger.info("ONAP is Up")
             return True
         logger.info("ONAP is Down")