From 20a4dbdd5a44966c582504d1e981c5291e180357 Mon Sep 17 00:00:00 2001 From: mrichomme Date: Wed, 8 Jul 2020 17:52:13 +0200 Subject: Update release notes for Frankfurt Maintenance release update testsuite 1.6.4 fix foc links (submodules lead to broken links) Issue-ID: INT-1652 Signed-off-by: mrichomme Change-Id: Id83b1b589216317cd755f9d2eb844c6dfb1029c9 --- .../check_certificates/check_certificates_validity.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'test/security') 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 a6fd9cd1b..c38a7dc67 100644 --- a/test/security/check_certificates/check_certificates/check_certificates_validity.py +++ b/test/security/check_certificates/check_certificates/check_certificates_validity.py @@ -186,8 +186,15 @@ def test_services(k8s_services, mode): if test_port in nodeports_xfail_list: error_waiver = True else: # internal mode - test_url = service.spec.selector.app test_port = port.port + test_url = '' + # in Internal mode there are 2 types + # app + # app.kubernetes.io/name + try: + test_url = service.spec.selector['app'] + except KeyError: + test_url = service.spec.selector['app.kubernetes.io/name'] if test_port is not None: LOGGER.info( @@ -259,6 +266,15 @@ def test_services(k8s_services, mode): node_ports_type_error_list=node_ports_type_error_list, node_ports_reset_error_list=node_ports_reset_error_list).dump( '{}/certificates.html'.format(args.dir)) + else: + jinja_env.get_template('cert-internal.html.j2').stream( + node_ports_list=node_ports_list, + node_ports_ssl_error_list=node_ports_ssl_error_list, + node_ports_connection_error_list=node_ports_connection_error_list, + node_ports_type_error_list=node_ports_type_error_list, + node_ports_reset_error_list=node_ports_reset_error_list).dump( + '{}/certificates.html'.format(args.dir)) + return success_criteria -- cgit 1.2.3-korg