diff options
author | efiacor <fiachra.corcoran@est.tech> | 2022-03-28 11:03:22 +0100 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2022-03-29 09:41:49 +0100 |
commit | d1b8d4ddd590a49e37c485386a60573db78c1cc0 (patch) | |
tree | 71b2baac091ac82259b87df5b68a79d3d8e62962 | |
parent | 3faa47c04cc54b21d32876debb88bd22e667547e (diff) |
[STRIMZI_CA] Add strimzi ca to cert check
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I246820e8d101834cbee43300a818c68dc03b2f14
Issue-ID: INT-2097
-rw-r--r-- | test/security/check_certificates/check_certificates/check_certificates_validity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/security/check_certificates/check_certificates/check_certificates_validity.py b/test/security/check_certificates/check_certificates/check_certificates_validity.py index e0c0848df..5d19a7390 100644 --- a/test/security/check_certificates/check_certificates/check_certificates_validity.py +++ b/test/security/check_certificates/check_certificates/check_certificates_validity.py @@ -60,6 +60,7 @@ CERT_MODES = ['nodeport', 'ingress', 'internal'] EXP_CRITERIA_MIN = 30 EXP_CRITERIA_MAX = 389 EXPECTED_CERT_STRING = "C=US;O=ONAP;OU=OSAAF;CN=intermediateCA_9" +EXPECTED_STRIMZI_CA_CERT_STRING = "O=io.strimzi;CN=cluster-ca v0" RESULT_PATH = "." @@ -156,7 +157,7 @@ def get_certifificate_info(host, port): issuer_info += (issuer_info_key.decode('utf-8') + "=" + issuer_info_val.decode('utf-8') + ";") cert_validity = False - if issuer_info[:-1] == EXPECTED_CERT_STRING: + if issuer_info[:-1] in [EXPECTED_CERT_STRING, EXPECTED_STRIMZI_CA_CERT_STRING]: cert_validity = True return {'expiration_date': exp_date, |