From cd1210cbbecb046d7fb6fdba6240d911872b5850 Mon Sep 17 00:00:00 2001 From: mrichomme Date: Wed, 2 Feb 2022 15:20:15 +0100 Subject: [CERT] Update check_certificate test The test was not working since the update of the kubernetes version nobody remarked it.. In fact Ingress have been promoted and the kubernetes client API changed accordinggly Issue-ID: TEST-381 Signed-off-by: mrichomme Change-Id: I3a4691be7c9ffbf385e851d905181e4b5ec1f2f8 --- .../check_certificates/check_certificates_validity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/security/check_certificates') 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 948783d8f..e0c0848df 100644 --- a/test/security/check_certificates/check_certificates/check_certificates_validity.py +++ b/test/security/check_certificates/check_certificates/check_certificates_validity.py @@ -129,7 +129,7 @@ else: k8s_config = config.load_kube_config() core = client.CoreV1Api() -api_instance = client.ExtensionsV1beta1Api( +api_instance = client.NetworkingV1Api( client.ApiClient(k8s_config)) k8s_services = core.list_namespaced_service(onap_namespace).items k8s_ingress = api_instance.list_namespaced_ingress(onap_namespace).items -- cgit 1.2.3-korg