[CERT] Update check_certificate test 31/126931/1
authormrichomme <morgan.richomme@orange.com>
Wed, 2 Feb 2022 14:20:15 +0000 (15:20 +0100)
committermrichomme <morgan.richomme@orange.com>
Wed, 2 Feb 2022 14:20:15 +0000 (15:20 +0100)
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 <morgan.richomme@orange.com>
Change-Id: I3a4691be7c9ffbf385e851d905181e4b5ec1f2f8

test/security/check_certificates/check_certificates/check_certificates_validity.py

index 948783d..e0c0848 100644 (file)
@@ -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