aboutsummaryrefslogtreecommitdiffstats
path: root/infra-healthcheck/infra_healthcheck/k8stest.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra-healthcheck/infra_healthcheck/k8stest.py')
-rw-r--r--infra-healthcheck/infra_healthcheck/k8stest.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/infra-healthcheck/infra_healthcheck/k8stest.py b/infra-healthcheck/infra_healthcheck/k8stest.py
index e1c4213..1d69fac 100644
--- a/infra-healthcheck/infra_healthcheck/k8stest.py
+++ b/infra-healthcheck/infra_healthcheck/k8stest.py
@@ -108,3 +108,13 @@ class OnapSecurityNodePortsCerts(K8sTesting):
'--mode','nodeport','--namespace','onap','--dir',
'/var/lib/xtesting/results/nodeport_check_certs']
self.criteria_string = ">>> Test Check certificates PASS"
+
+class OnapSecurityInternalPortsCerts(K8sTesting):
+ """Check the cerfificates for the internal ports."""
+ def __init__(self, **kwargs):
+ super(OnapSecurityInternalPortsCerts, self).__init__(**kwargs)
+ os.chdir('/usr/lib/python3.8/site-packages/check_certificates')
+ self.cmd = ['python3', 'check_certificates_validity.py',
+ '--mode','internal','--namespace','onap','--dir',
+ '/var/lib/xtesting/results/internal_check_certs']
+ self.criteria_string = ">>> Test Check certificates PASS"