aboutsummaryrefslogtreecommitdiffstats
path: root/infra-healthcheck
diff options
context:
space:
mode:
Diffstat (limited to 'infra-healthcheck')
-rw-r--r--infra-healthcheck/docker/Dockerfile4
-rw-r--r--infra-healthcheck/infra_healthcheck/k8stest.py7
2 files changed, 8 insertions, 3 deletions
diff --git a/infra-healthcheck/docker/Dockerfile b/infra-healthcheck/docker/Dockerfile
index 07b417b..87d177c 100644
--- a/infra-healthcheck/docker/Dockerfile
+++ b/infra-healthcheck/docker/Dockerfile
@@ -1,7 +1,7 @@
FROM opnfv/xtesting
-ARG KUBERNETES_VERSION="v1.15.2"
-ARG HELM_VERSION="v2.14.1"
+ARG KUBERNETES_VERSION="v1.15.11"
+ARG HELM_VERSION="v2.16.6"
ARG ONAP_TESTS_TAG=master
ARG ONAP_TAG=master
diff --git a/infra-healthcheck/infra_healthcheck/k8stest.py b/infra-healthcheck/infra_healthcheck/k8stest.py
index f8d618f..da1d764 100644
--- a/infra-healthcheck/infra_healthcheck/k8stest.py
+++ b/infra-healthcheck/infra_healthcheck/k8stest.py
@@ -57,10 +57,13 @@ class K8sTesting(testcase.TestCase):
details = {}
lines = output.split('\n')
success = False
+ str_remarks = ""
for log in lines:
if log.startswith(">>>"):
remarks.append(log.replace('>', ''))
+ else:
+ remarks.append(log)
for remark in remarks:
if ':' in remark:
# 2 possible Results
@@ -78,6 +81,8 @@ class K8sTesting(testcase.TestCase):
# if 1 pod/helm chart if Failed, the testcase is failed
if int(details[self.criteria_string]) < 1:
success = True
+ elif("failed" not in str_remarks.join(remarks).lower()):
+ success = True
self.details = details
self.__logger.info("details: %s", details)
@@ -119,4 +124,4 @@ class OnapSecurityNodePortsIngress(K8sTesting):
super(OnapSecurityNodePortsIngress, self).__init__(**kwargs)
self.cmd = ['python3', '/check_for_ingress_and_nodeports.py',
'--conf', '/root/.kube/config']
- self.error_string = "NodePort without corresponding Ingress found"
+ self.criteria_string = "NodePort without corresponding Ingress found"