diff options
author | mrichomme <morgan.richomme@orange.com> | 2020-04-20 14:50:27 +0200 |
---|---|---|
committer | mrichomme <morgan.richomme@orange.com> | 2020-04-20 14:50:27 +0200 |
commit | 5de622a8247c4cf4fc2bd4e5f8a947e60a8c4bfb (patch) | |
tree | 2038bfaa94413367fd46e8bcd38600f2e49dac05 /infra-healthcheck/infra_healthcheck | |
parent | 3c64be99c3c24930674e9fa657993d95cbd2fe6d (diff) |
Resync integration/xtesting repo
Issue-ID: INT-1366
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: I3af9c4697f0e67d3ce5b6d2fceeb978aeb20a0ff
Diffstat (limited to 'infra-healthcheck/infra_healthcheck')
-rw-r--r-- | infra-healthcheck/infra_healthcheck/k8stest.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/infra-healthcheck/infra_healthcheck/k8stest.py b/infra-healthcheck/infra_healthcheck/k8stest.py index 8bb7dde..f8d618f 100644 --- a/infra-healthcheck/infra_healthcheck/k8stest.py +++ b/infra-healthcheck/infra_healthcheck/k8stest.py @@ -101,16 +101,6 @@ class K8sTesting(testcase.TestCase): return res -class OnapK8sTest(K8sTesting): - """Kubernetes smoke test suite""" - def __init__(self, **kwargs): - if "case_name" not in kwargs: - kwargs.get("case_name", 'onap-k8s') - super(OnapK8sTest, self).__init__(**kwargs) - self.cmd = ['/check_onap_k8s.sh'] - self.criteria_string = "Nb Failed Pods" - - class OnapHelmTest(K8sTesting): """Kubernetes conformance test suite""" def __init__(self, **kwargs): @@ -119,3 +109,14 @@ class OnapHelmTest(K8sTesting): super(OnapHelmTest, self).__init__(**kwargs) self.cmd = ['/check_onap_helm.sh'] self.criteria_string = "Nb Failed Helm Charts" + + +class OnapSecurityNodePortsIngress(K8sTesting): + """Check that there is no NodePort without corresponding Ingress port.""" + def __init__(self, **kwargs): + if "case_name" not in kwargs: + kwargs.get("case_name", 'nodeport_ingress') + 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" |