diff options
-rw-r--r-- | infra-healthcheck/docker/testcases.yaml | 11 | ||||
-rw-r--r-- | infra-healthcheck/infra_healthcheck/k8stest.py | 10 | ||||
-rw-r--r-- | infra-healthcheck/setup.cfg | 2 |
3 files changed, 22 insertions, 1 deletions
diff --git a/infra-healthcheck/docker/testcases.yaml b/infra-healthcheck/docker/testcases.yaml index 3710901..0cd8fe8 100644 --- a/infra-healthcheck/docker/testcases.yaml +++ b/infra-healthcheck/docker/testcases.yaml @@ -61,3 +61,14 @@ tiers: - DEPLOY_ENVIRONMENT: 'gating_component' run: name: 'onap_chart' + - + case_name: internal_check_certs + project_name: integration + criteria: 100 + blocking: false + description: >- + Check certificates associated with internal ports + dependencies: + - TEST_ENVIRONMENT: 'internal_job' + run: + name: 'internal_check_certs' 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" diff --git a/infra-healthcheck/setup.cfg b/infra-healthcheck/setup.cfg index 7730106..4eb4770 100644 --- a/infra-healthcheck/setup.cfg +++ b/infra-healthcheck/setup.cfg @@ -12,4 +12,4 @@ xtesting.testcase = onap_chart = chart_status.status:Status nodeport_ingress = infra_healthcheck.k8stest:OnapSecurityNodePortsIngress nodeport_check_certs = infra_healthcheck.k8stest:OnapSecurityNodePortsCerts - + internal_check_certs = infra_healthcheck.k8stest:OnapSecurityInternalPortsCerts |